/external/openssl/crypto/dsa/ |
dsa_vrf.c | 1 /* crypto/dsa/dsa_vrf.c */ 62 #include <openssl/dsa.h> 65 DSA *dsa) 68 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) 69 && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW)) 75 return dsa->meth->dsa_do_verify(dgst, dgst_len, sig, dsa);
|
dsa_key.c | 1 /* crypto/dsa/dsa_key.c */ 64 #include <openssl/dsa.h> 71 static int dsa_builtin_keygen(DSA *dsa); 73 int DSA_generate_key(DSA *dsa) 76 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) 77 && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW)) 83 if(dsa->meth->dsa_keygen) 84 return dsa->meth->dsa_keygen(dsa) [all...] |
dsa_ossl.c | 1 /* crypto/dsa/dsa_ossl.c */ 65 #include <openssl/dsa.h> 69 static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); 70 static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, 74 DSA *dsa); 75 static int dsa_init(DSA *dsa); [all...] |
dsa_sign.c | 1 /* crypto/dsa/dsa_sign.c */ 62 #include <openssl/dsa.h> 66 DSA_SIG * DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) 69 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) 70 && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW)) 76 return dsa->meth->dsa_do_sign(dgst, dlen, dsa); 79 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp [all...] |
dsa_ameth.c | 62 #include <openssl/dsa.h> 79 DSA *dsa = NULL; local 92 if (!(dsa = d2i_DSAparams(NULL, &pm, pmlen))) 101 if (!(dsa = DSA_new())) 119 if (!(dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) 126 EVP_PKEY_assign_DSA(pkey, dsa); 132 if (dsa) 133 DSA_free(dsa); 140 DSA *dsa local 202 DSA *dsa = NULL; local 373 DSA *dsa; local 499 DSA *dsa; local 536 DSA *dsa; local [all...] |
dsa_locl.h | 55 #include <openssl/dsa.h> 57 int dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits,
|
dsagen.c | 1 /* crypto/dsa/dsagen.c */ 60 #include <openssl/dsa.h> 98 DSA *dsa; local 106 dsa=DSA_generate_parameters(1024,seed,20,&counter,&h,cb,bio_err); 108 if (dsa == NULL) 109 DSA_print(bio_err,dsa,0);
|
dsatest.c | 1 /* crypto/dsa/dsatest.c */ 82 printf("No DSA support\n"); 86 #include <openssl/dsa.h> 140 DSA *dsa=NULL; local 157 BIO_printf(bio_err,"test generation of DSA parameters\n"); 160 if(((dsa = DSA_new()) == NULL) || !DSA_generate_parameters_ex(dsa, 512, 172 DSA_print(bio_err,dsa,0); 184 i=BN_bn2bin(dsa->q,buf) [all...] |
dsa_pmeth.c | 67 /* DSA pkey context structure */ 126 DSA *dsa = ctx->pkey->pkey.dsa; local 133 ret = DSA_sign(type, tbs, tbslen, sig, &sltmp, dsa); 147 DSA *dsa = ctx->pkey->pkey.dsa; local 154 ret = DSA_verify(type, tbs, tbslen, sig, siglen, dsa); 243 DSA *dsa = NULL local 268 DSA *dsa = NULL; local [all...] |
dsa.h | 1 /* crypto/dsa/dsa.h */ 71 #error DSA is disabled. 92 #define DSA_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DSA 99 #define DSA_FLAG_NONCE_FROM_HASH 0x04 /* Causes the DSA nonce to be calculated 101 random). This strengthens DSA against a 104 /* If this flag is set the DSA method is FIPS compliant and can be used 124 /* typedef struct dsa_st DSA; */ 136 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/dsa/ |
dsa.c | 60 #include <openssl/dsa.h> 73 DSA *DSA_new(void) { return DSA_new_method(NULL); } 75 DSA *DSA_new_method(const ENGINE *engine) { 76 DSA *dsa = (DSA *)OPENSSL_malloc(sizeof(DSA)); local 77 if (dsa == NULL) { 78 OPENSSL_PUT_ERROR(DSA, DSA_new_method, ERR_R_MALLOC_FAILURE); 82 memset(dsa, 0, sizeof(DSA)) [all...] |
dsa_impl.c | 60 #include <openssl/dsa.h> 76 static int sign_setup(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 82 if (!dsa->p || !dsa->q || !dsa->g) { 83 OPENSSL_PUT_ERROR(DSA, sign_setup, DSA_R_MISSING_PARAMETERS); 111 ok = BN_generate_dsa_nonce(&k, dsa->q, dsa->priv_key, digest, digest_len, 114 ok = BN_rand_range(&k, dsa->q) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
st_atom_depth.c | 98 struct pipe_depth_stencil_alpha_state *dsa = &st->state.depth_stencil; local 102 memset(dsa, 0, sizeof(*dsa)); 106 dsa->depth.enabled = 1; 107 dsa->depth.writemask = ctx->Depth.Mask; 108 dsa->depth.func = st_compare_func_to_pipe(ctx->Depth.Func); 112 dsa->stencil[0].enabled = 1; 113 dsa->stencil[0].func = st_compare_func_to_pipe(ctx->Stencil.Function[0]); 114 dsa->stencil[0].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[0]); 115 dsa->stencil[0].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[0]) [all...] |
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_depth.c | 98 struct pipe_depth_stencil_alpha_state *dsa = &st->state.depth_stencil; local 102 memset(dsa, 0, sizeof(*dsa)); 106 dsa->depth.enabled = 1; 107 dsa->depth.writemask = ctx->Depth.Mask; 108 dsa->depth.func = st_compare_func_to_pipe(ctx->Depth.Func); 112 dsa->stencil[0].enabled = 1; 113 dsa->stencil[0].func = st_compare_func_to_pipe(ctx->Stencil.Function[0]); 114 dsa->stencil[0].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[0]); 115 dsa->stencil[0].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[0]) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
r300_hyperz.c | 44 struct r300_dsa_state *dsa = r300->dsa_state.state; local 46 switch (dsa->dsa.depth.func) { 66 struct r300_dsa_state *dsa = r300->dsa_state.state; local 67 unsigned func = dsa->dsa.depth.func; 74 struct r300_dsa_state *dsa = r300->dsa_state.state; local 75 unsigned func = dsa->dsa.depth.func; 101 struct r300_dsa_state *dsa = r300->dsa_state.state local 137 struct r300_dsa_state *dsa = r300->dsa_state.state; local [all...] |
r300_render_stencilref.c | 47 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; local 49 return dsa->two_sided_stencil_ref || 50 (dsa->two_sided && 59 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; local 63 sr->zb_stencilrefmask = dsa->stencil_ref_mask; 77 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; local 80 dsa->stencil_ref_mask = dsa->stencil_ref_bf; 92 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; local 96 dsa->stencil_ref_mask = sr->zb_stencilrefmask [all...] |
/external/mesa3d/src/gallium/drivers/r300/ |
r300_hyperz.c | 44 struct r300_dsa_state *dsa = r300->dsa_state.state; local 46 switch (dsa->dsa.depth.func) { 66 struct r300_dsa_state *dsa = r300->dsa_state.state; local 67 unsigned func = dsa->dsa.depth.func; 74 struct r300_dsa_state *dsa = r300->dsa_state.state; local 75 unsigned func = dsa->dsa.depth.func; 101 struct r300_dsa_state *dsa = r300->dsa_state.state local 137 struct r300_dsa_state *dsa = r300->dsa_state.state; local [all...] |
r300_render_stencilref.c | 47 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; local 49 return dsa->two_sided_stencil_ref || 50 (dsa->two_sided && 59 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; local 63 sr->zb_stencilrefmask = dsa->stencil_ref_mask; 77 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; local 80 dsa->stencil_ref_mask = dsa->stencil_ref_bf; 92 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; local 96 dsa->stencil_ref_mask = sr->zb_stencilrefmask [all...] |
/external/chromium_org/third_party/boringssl/src/include/openssl/ |
dsa.h | 73 /* DSA contains functions for signing and verifing with the Digital Signature 79 /* DSA_new returns a new, empty DSA object or NULL on error. */ 80 OPENSSL_EXPORT DSA *DSA_new(void); 83 OPENSSL_EXPORT DSA *DSA_new_method(const ENGINE *engine); 85 /* DSA_free decrements the reference count of |dsa| and frees it if the 87 OPENSSL_EXPORT void DSA_free(DSA *dsa); 89 /* DSA_up_ref increments the reference count of |dsa|. */ 90 OPENSSL_EXPORT int DSA_up_ref(DSA *dsa); [all...] |
/libcore/luni/src/test/java/tests/security/interfaces/ |
DSAKeyPairGeneratorTest.java | 50 MyDSA dsa = new MyDSA(dsaParams); local 58 dsa.initialize(dsaParams, random); 64 dsa.initialize(dsaParams, null); 72 dsa.initialize(null, random); 89 MyDSA dsa = new MyDSA(null); local 98 dsa.initialize(520, false, random); 112 dsa.initialize(invalidLen[i], true, random); 125 dsa = new MyDSA(dsaParams); 127 dsa.initialize(520, true, random); 134 dsa.initialize(520, false, random) [all...] |
/system/security/keystore-engine/ |
dsa_meth.cpp | 29 #define LOG_TAG "OpenSSL-keystore-dsa" 35 #include <openssl/dsa.h> 50 static DSA_SIG* keystore_dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) { 51 ALOGV("keystore_dsa_do_sign(%p, %d, %p)", dgst, dlen, dsa); 53 uint8_t* key_id = reinterpret_cast<uint8_t*>(DSA_get_ex_data(dsa, dsa_key_handle)); 68 int num = DSA_size(dsa); 96 ALOGV("keystore_dsa_do_sign(%p, %d, %p) => returning %p len %zu", dgst, dlen, dsa, 125 Unique_DSA dsa(EVP_PKEY_get1_DSA(pkey)); 126 if (!DSA_set_ex_data(dsa.get(), dsa_key_handle, reinterpret_cast<void*>(strdup(key_id)))) [all...] |
/external/openssl/crypto/asn1/ |
i2d_pu.c | 68 #include <openssl/dsa.h> 84 return(i2d_DSAPublicKey(a->pkey.dsa,pp));
|
/external/openssl/include/openssl/ |
dsa.h | 1 /* crypto/dsa/dsa.h */ 71 #error DSA is disabled. 92 #define DSA_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DSA 99 #define DSA_FLAG_NONCE_FROM_HASH 0x04 /* Causes the DSA nonce to be calculated 101 random). This strengthens DSA against a 104 /* If this flag is set the DSA method is FIPS compliant and can be used 124 /* typedef struct dsa_st DSA; */ 136 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/pem/ |
pem_all.c | 113 #include <openssl/dsa.h> 122 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa); 134 /* We treat RSA or DSA private keys as a special case. 183 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) 185 DSA *dtmp; 190 if(dsa) { [all...] |
/external/openssl/apps/ |
dsaparam.c | 76 #include <openssl/dsa.h> 114 DSA *dsa=NULL; local 226 BIO_printf(bio_err," -genkey generate a DSA key\n"); 294 dsa = DSA_new(); 295 if(!dsa) 297 BIO_printf(bio_err,"Error allocating DSA object\n"); 300 BIO_printf(bio_err,"Generating DSA parameters, %d bit long prime\n",num); 318 if(!DSA_generate_parameters_ex(dsa,num,NULL,0,NULL,NULL, &cb)) 323 BIO_printf(bio_err,"DSA key generation time-stopped\n") [all...] |