/external/openssl/apps/ |
D | testdsa.h | 41 DSA *dsa; in get_dsa512() local 43 if ((dsa=DSA_new()) == NULL) return(NULL); in get_dsa512() 44 dsa->priv_key=BN_bin2bn(dsa512_priv,sizeof(dsa512_priv),NULL); in get_dsa512() 45 dsa->pub_key=BN_bin2bn(dsa512_pub,sizeof(dsa512_pub),NULL); in get_dsa512() 46 dsa->p=BN_bin2bn(dsa512_p,sizeof(dsa512_p),NULL); in get_dsa512() 47 dsa->q=BN_bin2bn(dsa512_q,sizeof(dsa512_q),NULL); in get_dsa512() 48 dsa->g=BN_bin2bn(dsa512_g,sizeof(dsa512_g),NULL); in get_dsa512() 49 if ((dsa->priv_key == NULL) || (dsa->pub_key == NULL) || (dsa->p == NULL) || in get_dsa512() 50 (dsa->q == NULL) || (dsa->g == NULL)) in get_dsa512() 52 return(dsa); in get_dsa512() [all …]
|
/external/chromium_org/third_party/openssl/openssl/apps/ |
D | testdsa.h | 41 DSA *dsa; in get_dsa512() local 43 if ((dsa=DSA_new()) == NULL) return(NULL); in get_dsa512() 44 dsa->priv_key=BN_bin2bn(dsa512_priv,sizeof(dsa512_priv),NULL); in get_dsa512() 45 dsa->pub_key=BN_bin2bn(dsa512_pub,sizeof(dsa512_pub),NULL); in get_dsa512() 46 dsa->p=BN_bin2bn(dsa512_p,sizeof(dsa512_p),NULL); in get_dsa512() 47 dsa->q=BN_bin2bn(dsa512_q,sizeof(dsa512_q),NULL); in get_dsa512() 48 dsa->g=BN_bin2bn(dsa512_g,sizeof(dsa512_g),NULL); in get_dsa512() 49 if ((dsa->priv_key == NULL) || (dsa->pub_key == NULL) || (dsa->p == NULL) || in get_dsa512() 50 (dsa->q == NULL) || (dsa->g == NULL)) in get_dsa512() 52 return(dsa); in get_dsa512() [all …]
|
D | dsaparam.c | 114 DSA *dsa=NULL; in MAIN() local 294 dsa = DSA_new(); in MAIN() 295 if(!dsa) in MAIN() 318 if(!DSA_generate_parameters_ex(dsa,num,NULL,0,NULL,NULL, &cb)) in MAIN() 335 dsa=d2i_DSAparams_bio(in,NULL); in MAIN() 337 dsa=PEM_read_bio_DSAparams(in,NULL,NULL,NULL); in MAIN() 343 if (dsa == NULL) in MAIN() 352 DSAparams_print(out,dsa); in MAIN() 360 len=BN_num_bytes(dsa->p); in MAIN() 361 bits_p=BN_num_bits(dsa->p); in MAIN() [all …]
|
/external/chromium_org/third_party/openssl/openssl/crypto/dsa/ |
D | dsa_ossl.c | 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, BIGNUM **kinvp, BIGNUM **rp); 72 DSA *dsa); 73 static int dsa_init(DSA *dsa); 74 static int dsa_finish(DSA *dsa); 104 #define DSA_MOD_EXP(err_instr,dsa,rr,a1,p1,a2,p2,m,ctx,in_mont) \ argument 107 if((dsa)->meth->dsa_mod_exp) \ 108 _tmp_res53 = (dsa)->meth->dsa_mod_exp((dsa), (rr), (a1), (p1), \ 115 #define DSA_BN_MOD_EXP(err_instr,dsa,r,a,p,m,ctx,m_ctx) \ argument 118 if((dsa)->meth->bn_mod_exp) \ [all …]
|
D | dsa_key.c | 71 static int dsa_builtin_keygen(DSA *dsa); 73 int DSA_generate_key(DSA *dsa) in DSA_generate_key() argument 76 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) in DSA_generate_key() 77 && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW)) in DSA_generate_key() 83 if(dsa->meth->dsa_keygen) in DSA_generate_key() 84 return dsa->meth->dsa_keygen(dsa); in DSA_generate_key() 87 return FIPS_dsa_generate_key(dsa); in DSA_generate_key() 89 return dsa_builtin_keygen(dsa); in DSA_generate_key() 92 static int dsa_builtin_keygen(DSA *dsa) in dsa_builtin_keygen() argument 100 if (dsa->priv_key == NULL) in dsa_builtin_keygen() [all …]
|
D | dsa_ameth.c | 79 DSA *dsa = NULL; in dsa_pub_decode() local 92 if (!(dsa = d2i_DSAparams(NULL, &pm, pmlen))) in dsa_pub_decode() 101 if (!(dsa = DSA_new())) in dsa_pub_decode() 119 if (!(dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) in dsa_pub_decode() 126 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_pub_decode() 132 if (dsa) in dsa_pub_decode() 133 DSA_free(dsa); in dsa_pub_decode() 140 DSA *dsa; in dsa_pub_encode() local 146 dsa=pkey->pkey.dsa; in dsa_pub_encode() 147 if (pkey->save_parameters && dsa->p && dsa->q && dsa->g) in dsa_pub_encode() [all …]
|
D | dsatest.c | 140 DSA *dsa=NULL; in main() local 160 if(((dsa = DSA_new()) == NULL) || !DSA_generate_parameters_ex(dsa, 512, in main() 172 DSA_print(bio_err,dsa,0); in main() 184 i=BN_bn2bin(dsa->q,buf); in main() 192 i=BN_bn2bin(dsa->p,buf); in main() 200 i=BN_bn2bin(dsa->g,buf); in main() 208 dsa->flags |= DSA_FLAG_NO_EXP_CONSTTIME; in main() 209 DSA_generate_key(dsa); in main() 210 DSA_sign(0, str1, 20, sig, &siglen, dsa); in main() 211 if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1) in main() [all …]
|
D | dsa_sign.c | 66 DSA_SIG * DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in DSA_do_sign() argument 69 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) in DSA_do_sign() 70 && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW)) in DSA_do_sign() 76 return dsa->meth->dsa_do_sign(dgst, dlen, dsa); in DSA_do_sign() 79 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) in DSA_sign_setup() argument 82 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) in DSA_sign_setup() 83 && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW)) in DSA_sign_setup() 89 return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp); in DSA_sign_setup()
|
D | dsa_pmeth.c | 126 DSA *dsa = ctx->pkey->pkey.dsa; in pkey_dsa_sign() local 133 ret = DSA_sign(type, tbs, tbslen, sig, &sltmp, dsa); in pkey_dsa_sign() 147 DSA *dsa = ctx->pkey->pkey.dsa; in pkey_dsa_verify() local 154 ret = DSA_verify(type, tbs, tbslen, sig, siglen, dsa); in pkey_dsa_verify() 243 DSA *dsa = NULL; in pkey_dsa_paramgen() local 254 dsa = DSA_new(); in pkey_dsa_paramgen() 255 if (!dsa) in pkey_dsa_paramgen() 257 ret = dsa_builtin_paramgen(dsa, dctx->nbits, dctx->qbits, dctx->pmd, in pkey_dsa_paramgen() 260 EVP_PKEY_assign_DSA(pkey, dsa); in pkey_dsa_paramgen() 262 DSA_free(dsa); in pkey_dsa_paramgen() [all …]
|
D | dsa.h | 132 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); 133 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 136 DSA_SIG *sig, DSA *dsa); 137 int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, 140 int (*bn_mod_exp)(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p, 143 int (*init)(DSA *dsa); 144 int (*finish)(DSA *dsa); 148 int (*dsa_paramgen)(DSA *dsa, int bits, 153 int (*dsa_keygen)(DSA *dsa); 197 DSA_SIG * DSA_do_sign(const unsigned char *dgst,int dlen,DSA *dsa); [all …]
|
/external/openssl/crypto/dsa/ |
D | dsa_ossl.c | 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, BIGNUM **kinvp, BIGNUM **rp); 72 DSA *dsa); 73 static int dsa_init(DSA *dsa); 74 static int dsa_finish(DSA *dsa); 104 #define DSA_MOD_EXP(err_instr,dsa,rr,a1,p1,a2,p2,m,ctx,in_mont) \ argument 107 if((dsa)->meth->dsa_mod_exp) \ 108 _tmp_res53 = (dsa)->meth->dsa_mod_exp((dsa), (rr), (a1), (p1), \ 115 #define DSA_BN_MOD_EXP(err_instr,dsa,r,a,p,m,ctx,m_ctx) \ argument 118 if((dsa)->meth->bn_mod_exp) \ [all …]
|
D | dsa_key.c | 71 static int dsa_builtin_keygen(DSA *dsa); 73 int DSA_generate_key(DSA *dsa) in DSA_generate_key() argument 76 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) in DSA_generate_key() 77 && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW)) in DSA_generate_key() 83 if(dsa->meth->dsa_keygen) in DSA_generate_key() 84 return dsa->meth->dsa_keygen(dsa); in DSA_generate_key() 87 return FIPS_dsa_generate_key(dsa); in DSA_generate_key() 89 return dsa_builtin_keygen(dsa); in DSA_generate_key() 92 static int dsa_builtin_keygen(DSA *dsa) in dsa_builtin_keygen() argument 100 if (dsa->priv_key == NULL) in dsa_builtin_keygen() [all …]
|
D | dsa_ameth.c | 79 DSA *dsa = NULL; in dsa_pub_decode() local 92 if (!(dsa = d2i_DSAparams(NULL, &pm, pmlen))) in dsa_pub_decode() 101 if (!(dsa = DSA_new())) in dsa_pub_decode() 119 if (!(dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL))) in dsa_pub_decode() 126 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_pub_decode() 132 if (dsa) in dsa_pub_decode() 133 DSA_free(dsa); in dsa_pub_decode() 140 DSA *dsa; in dsa_pub_encode() local 146 dsa=pkey->pkey.dsa; in dsa_pub_encode() 147 if (pkey->save_parameters && dsa->p && dsa->q && dsa->g) in dsa_pub_encode() [all …]
|
D | dsatest.c | 140 DSA *dsa=NULL; in main() local 160 if(((dsa = DSA_new()) == NULL) || !DSA_generate_parameters_ex(dsa, 512, in main() 172 DSA_print(bio_err,dsa,0); in main() 184 i=BN_bn2bin(dsa->q,buf); in main() 192 i=BN_bn2bin(dsa->p,buf); in main() 200 i=BN_bn2bin(dsa->g,buf); in main() 208 dsa->flags |= DSA_FLAG_NO_EXP_CONSTTIME; in main() 209 DSA_generate_key(dsa); in main() 210 DSA_sign(0, str1, 20, sig, &siglen, dsa); in main() 211 if (DSA_verify(0, str1, 20, sig, siglen, dsa) == 1) in main() [all …]
|
D | dsa_sign.c | 66 DSA_SIG * DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) in DSA_do_sign() argument 69 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) in DSA_do_sign() 70 && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW)) in DSA_do_sign() 76 return dsa->meth->dsa_do_sign(dgst, dlen, dsa); in DSA_do_sign() 79 int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) in DSA_sign_setup() argument 82 if (FIPS_mode() && !(dsa->meth->flags & DSA_FLAG_FIPS_METHOD) in DSA_sign_setup() 83 && !(dsa->flags & DSA_FLAG_NON_FIPS_ALLOW)) in DSA_sign_setup() 89 return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp); in DSA_sign_setup()
|
D | dsa_pmeth.c | 126 DSA *dsa = ctx->pkey->pkey.dsa; in pkey_dsa_sign() local 133 ret = DSA_sign(type, tbs, tbslen, sig, &sltmp, dsa); in pkey_dsa_sign() 147 DSA *dsa = ctx->pkey->pkey.dsa; in pkey_dsa_verify() local 154 ret = DSA_verify(type, tbs, tbslen, sig, siglen, dsa); in pkey_dsa_verify() 243 DSA *dsa = NULL; in pkey_dsa_paramgen() local 254 dsa = DSA_new(); in pkey_dsa_paramgen() 255 if (!dsa) in pkey_dsa_paramgen() 257 ret = dsa_builtin_paramgen(dsa, dctx->nbits, dctx->qbits, dctx->pmd, in pkey_dsa_paramgen() 260 EVP_PKEY_assign_DSA(pkey, dsa); in pkey_dsa_paramgen() 262 DSA_free(dsa); in pkey_dsa_paramgen() [all …]
|
D | dsa.h | 132 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); 133 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 136 DSA_SIG *sig, DSA *dsa); 137 int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, 140 int (*bn_mod_exp)(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p, 143 int (*init)(DSA *dsa); 144 int (*finish)(DSA *dsa); 148 int (*dsa_paramgen)(DSA *dsa, int bits, 153 int (*dsa_keygen)(DSA *dsa); 197 DSA_SIG * DSA_do_sign(const unsigned char *dgst,int dlen,DSA *dsa); [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
D | r300_hyperz.c | 44 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_get_hiz_func() local 46 switch (dsa->dsa.depth.func) { in r300_get_hiz_func() 66 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_get_sc_hz_max() local 67 unsigned func = dsa->dsa.depth.func; in r300_get_sc_hz_max() 74 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_is_hiz_func_valid() local 75 unsigned func = dsa->dsa.depth.func; in r300_is_hiz_func_valid() 101 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_hiz_allowed() local 115 if (r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[0]) || in r300_hiz_allowed() 116 r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[1])) in r300_hiz_allowed() 119 if (dsa->dsa.depth.enabled) { in r300_hiz_allowed() [all …]
|
D | r300_render_stencilref.c | 47 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_needed() local 49 return dsa->two_sided_stencil_ref || in r300_stencilref_needed() 50 (dsa->two_sided && in r300_stencilref_needed() 59 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_begin() local 63 sr->zb_stencilrefmask = dsa->stencil_ref_mask; in r300_stencilref_begin() 77 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_switch_side() local 80 dsa->stencil_ref_mask = dsa->stencil_ref_bf; in r300_stencilref_switch_side() 92 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_end() local 96 dsa->stencil_ref_mask = sr->zb_stencilrefmask; in r300_stencilref_end()
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_hyperz.c | 44 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_get_hiz_func() local 46 switch (dsa->dsa.depth.func) { in r300_get_hiz_func() 66 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_get_sc_hz_max() local 67 unsigned func = dsa->dsa.depth.func; in r300_get_sc_hz_max() 74 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_is_hiz_func_valid() local 75 unsigned func = dsa->dsa.depth.func; in r300_is_hiz_func_valid() 101 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_hiz_allowed() local 115 if (r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[0]) || in r300_hiz_allowed() 116 r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[1])) in r300_hiz_allowed() 119 if (dsa->dsa.depth.enabled) { in r300_hiz_allowed() [all …]
|
D | r300_render_stencilref.c | 47 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_needed() local 49 return dsa->two_sided_stencil_ref || in r300_stencilref_needed() 50 (dsa->two_sided && in r300_stencilref_needed() 59 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_begin() local 63 sr->zb_stencilrefmask = dsa->stencil_ref_mask; in r300_stencilref_begin() 77 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_switch_side() local 80 dsa->stencil_ref_mask = dsa->stencil_ref_bf; in r300_stencilref_switch_side() 92 struct r300_dsa_state *dsa = (struct r300_dsa_state*)r300->dsa_state.state; in r300_stencilref_end() local 96 dsa->stencil_ref_mask = sr->zb_stencilrefmask; in r300_stencilref_end()
|
/external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/ |
D | st_atom_depth.c | 98 struct pipe_depth_stencil_alpha_state *dsa = &st->state.depth_stencil; in update_depth_stencil_alpha() local 102 memset(dsa, 0, sizeof(*dsa)); in update_depth_stencil_alpha() 106 dsa->depth.enabled = 1; in update_depth_stencil_alpha() 107 dsa->depth.writemask = ctx->Depth.Mask; in update_depth_stencil_alpha() 108 dsa->depth.func = st_compare_func_to_pipe(ctx->Depth.Func); in update_depth_stencil_alpha() 112 dsa->stencil[0].enabled = 1; in update_depth_stencil_alpha() 113 dsa->stencil[0].func = st_compare_func_to_pipe(ctx->Stencil.Function[0]); in update_depth_stencil_alpha() 114 dsa->stencil[0].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[0]); in update_depth_stencil_alpha() 115 dsa->stencil[0].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[0]); in update_depth_stencil_alpha() 116 dsa->stencil[0].zpass_op = gl_stencil_op_to_pipe(ctx->Stencil.ZPassFunc[0]); in update_depth_stencil_alpha() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_depth.c | 98 struct pipe_depth_stencil_alpha_state *dsa = &st->state.depth_stencil; in update_depth_stencil_alpha() local 102 memset(dsa, 0, sizeof(*dsa)); in update_depth_stencil_alpha() 106 dsa->depth.enabled = 1; in update_depth_stencil_alpha() 107 dsa->depth.writemask = ctx->Depth.Mask; in update_depth_stencil_alpha() 108 dsa->depth.func = st_compare_func_to_pipe(ctx->Depth.Func); in update_depth_stencil_alpha() 112 dsa->stencil[0].enabled = 1; in update_depth_stencil_alpha() 113 dsa->stencil[0].func = st_compare_func_to_pipe(ctx->Stencil.Function[0]); in update_depth_stencil_alpha() 114 dsa->stencil[0].fail_op = gl_stencil_op_to_pipe(ctx->Stencil.FailFunc[0]); in update_depth_stencil_alpha() 115 dsa->stencil[0].zfail_op = gl_stencil_op_to_pipe(ctx->Stencil.ZFailFunc[0]); in update_depth_stencil_alpha() 116 dsa->stencil[0].zpass_op = gl_stencil_op_to_pipe(ctx->Stencil.ZPassFunc[0]); in update_depth_stencil_alpha() [all …]
|
/external/chromium_org/third_party/openssl/openssl/include/openssl/ |
D | dsa.h | 132 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); 133 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 136 DSA_SIG *sig, DSA *dsa); 137 int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, 140 int (*bn_mod_exp)(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p, 143 int (*init)(DSA *dsa); 144 int (*finish)(DSA *dsa); 148 int (*dsa_paramgen)(DSA *dsa, int bits, 153 int (*dsa_keygen)(DSA *dsa); 197 DSA_SIG * DSA_do_sign(const unsigned char *dgst,int dlen,DSA *dsa); [all …]
|
/external/openssl/include/openssl/ |
D | dsa.h | 132 DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa); 133 int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, 136 DSA_SIG *sig, DSA *dsa); 137 int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, 140 int (*bn_mod_exp)(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p, 143 int (*init)(DSA *dsa); 144 int (*finish)(DSA *dsa); 148 int (*dsa_paramgen)(DSA *dsa, int bits, 153 int (*dsa_keygen)(DSA *dsa); 197 DSA_SIG * DSA_do_sign(const unsigned char *dgst,int dlen,DSA *dsa); [all …]
|