Home
last modified time | relevance | path

Searched refs:dsa (Results 1 – 25 of 73) sorted by relevance

123

/external/boringssl/src/crypto/dsa/
Ddsa.c83 DSA *dsa = (DSA *)OPENSSL_malloc(sizeof(DSA)); in DSA_new_method() local
84 if (dsa == NULL) { in DSA_new_method()
89 memset(dsa, 0, sizeof(DSA)); in DSA_new_method()
92 dsa->meth = ENGINE_get_DSA_method(engine); in DSA_new_method()
95 if (dsa->meth == NULL) { in DSA_new_method()
96 dsa->meth = (DSA_METHOD*) &DSA_default_method; in DSA_new_method()
98 METHOD_ref(dsa->meth); in DSA_new_method()
100 dsa->write_params = 1; in DSA_new_method()
101 dsa->references = 1; in DSA_new_method()
103 CRYPTO_MUTEX_init(&dsa->method_mont_p_lock); in DSA_new_method()
[all …]
Ddsa_test.c169 DSA *dsa = DSA_new(); in get_fips_dsa() local
170 if (!dsa) { in get_fips_dsa()
173 dsa->p = BN_bin2bn(fips_p, sizeof(fips_p), NULL); in get_fips_dsa()
174 dsa->q = BN_bin2bn(fips_q, sizeof(fips_q), NULL); in get_fips_dsa()
175 dsa->g = BN_bin2bn(fips_g, sizeof(fips_g), NULL); in get_fips_dsa()
176 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), NULL); in get_fips_dsa()
177 dsa->priv_key = BN_bin2bn(fips_x, sizeof(fips_x), NULL); in get_fips_dsa()
178 if (dsa->p == NULL || dsa->q == NULL || dsa->g == NULL || in get_fips_dsa()
179 dsa->pub_key == NULL || dsa->priv_key == NULL) { in get_fips_dsa()
180 DSA_free(dsa); in get_fips_dsa()
[all …]
Ddsa_impl.c79 static int sign_setup(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, in sign_setup() argument
85 if (!dsa->p || !dsa->q || !dsa->g) { in sign_setup()
114 ok = BN_generate_dsa_nonce(&k, dsa->q, dsa->priv_key, digest, digest_len, in sign_setup()
117 ok = BN_rand_range(&k, dsa->q); in sign_setup()
126 if (BN_MONT_CTX_set_locked((BN_MONT_CTX **)&dsa->method_mont_p, in sign_setup()
127 (CRYPTO_MUTEX *)&dsa->method_mont_p_lock, dsa->p, in sign_setup()
143 if (!BN_add(&kq, &kq, dsa->q)) { in sign_setup()
146 if (BN_num_bits(&kq) <= BN_num_bits(dsa->q) && !BN_add(&kq, &kq, dsa->q)) { in sign_setup()
152 if (!BN_mod_exp_mont(r, dsa->g, K, dsa->p, ctx, dsa->method_mont_p)) { in sign_setup()
155 if (!BN_mod(r, r, dsa->q, ctx)) { in sign_setup()
[all …]
DCMakeLists.txt4 dsa target
8 dsa.c
Ddsa_asn1.c148 DSA *DSAparams_dup(const DSA *dsa) { in DSAparams_dup() argument
149 return ASN1_item_dup(ASN1_ITEM_rptr(DSAparams), (DSA*) dsa); in DSAparams_dup()
/external/mesa3d/src/gallium/drivers/r300/
Dr300_hyperz.c44 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 …]
Dr300_render_stencilref.c47 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()
Dr300_state.c580 struct r300_dsa_state* dsa = CALLOC_STRUCT(r300_dsa_state); in r300_create_dsa_state() local
583 dsa->dsa = *state; in r300_create_dsa_state()
587 dsa->z_buffer_control |= R300_Z_WRITE_ENABLE; in r300_create_dsa_state()
591 dsa->z_buffer_control |= R300_Z_ENABLE; in r300_create_dsa_state()
593 dsa->z_stencil_control |= in r300_create_dsa_state()
598 dsa->z_buffer_control |= R300_Z_ENABLE; in r300_create_dsa_state()
599 dsa->z_stencil_control |= R300_ZS_ALWAYS; in r300_create_dsa_state()
604 dsa->z_buffer_control |= R300_STENCIL_ENABLE; in r300_create_dsa_state()
605 dsa->z_stencil_control |= in r300_create_dsa_state()
615 dsa->stencil_ref_mask = in r300_create_dsa_state()
[all …]
Dr300_context.c458 struct pipe_depth_stencil_alpha_state dsa; local
459 memset(&dsa, 0, sizeof(dsa));
460 dsa.depth.writemask = 1;
464 &dsa);
/external/boringssl/src/crypto/evp/
Dp_dsa_asn1.c80 DSA *dsa = NULL; in dsa_pub_decode() local
92 dsa = d2i_DSAparams(NULL, &pm, pmlen); in dsa_pub_decode()
93 if (dsa == NULL) { in dsa_pub_decode()
98 dsa = DSA_new(); in dsa_pub_decode()
99 if (dsa == NULL) { in dsa_pub_decode()
114 dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL); in dsa_pub_decode()
115 if (dsa->pub_key == NULL) { in dsa_pub_decode()
121 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_pub_decode()
126 DSA_free(dsa); in dsa_pub_decode()
131 DSA *dsa; in dsa_pub_encode() local
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_depth.c98 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/boringssl/src/include/openssl/
Ddsa.h88 OPENSSL_EXPORT void DSA_free(DSA *dsa);
91 OPENSSL_EXPORT int DSA_up_ref(DSA *dsa);
113 OPENSSL_EXPORT int DSA_generate_parameters_ex(DSA *dsa, unsigned bits,
121 OPENSSL_EXPORT DSA *DSAparams_dup(const DSA *dsa);
129 OPENSSL_EXPORT int DSA_generate_key(DSA *dsa);
149 DSA *dsa);
162 DSA_SIG *sig, const DSA *dsa);
172 const DSA *dsa);
189 DSA *dsa);
205 size_t sig_len, const DSA *dsa);
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Drenderer.c83 struct pipe_depth_stencil_alpha_state dsa; member
125 struct pipe_depth_stencil_alpha_state dsa; member
734 struct pipe_depth_stencil_alpha_state dsa; in renderer_scissor_begin() local
744 memset(&dsa, 0, sizeof(dsa)); in renderer_scissor_begin()
745 dsa.depth.enabled = 1; in renderer_scissor_begin()
746 dsa.depth.writemask = 1; in renderer_scissor_begin()
747 dsa.depth.func = PIPE_FUNC_ALWAYS; in renderer_scissor_begin()
748 cso_set_depth_stencil_alpha(renderer->cso, &dsa); in renderer_scissor_begin()
974 struct pipe_depth_stencil_alpha_state *dsa; in renderer_polygon_stencil_begin() local
989 dsa = &renderer->u.polygon_stencil.dsa; in renderer_polygon_stencil_begin()
[all …]
/external/boringssl/src/crypto/pem/
Dpem_all.c122 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa);
183 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) in IMPLEMENT_PEM_write_cb_const()
190 if(dsa) { in IMPLEMENT_PEM_write_cb_const()
191 DSA_free(*dsa); in IMPLEMENT_PEM_write_cb_const()
192 *dsa = dtmp; in IMPLEMENT_PEM_write_cb_const()
197 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, in PEM_read_bio_DSAPrivateKey() argument
202 return pkey_get_dsa(pktmp, dsa); /* will free pktmp */ in PEM_read_bio_DSAPrivateKey()
212 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, in IMPLEMENT_PEM_write_cb_const()
217 return pkey_get_dsa(pktmp, dsa); /* will free pktmp */ in IMPLEMENT_PEM_write_cb_const()
/external/boringssl/src/crypto/x509/
Dx_all.c306 DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) in d2i_DSAPrivateKey_fp() argument
308 return ASN1_d2i_fp_of(DSA,DSA_new,d2i_DSAPrivateKey,fp,dsa); in d2i_DSAPrivateKey_fp()
311 int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa) in i2d_DSAPrivateKey_fp() argument
313 return ASN1_i2d_fp_of_const(DSA,i2d_DSAPrivateKey,fp,dsa); in i2d_DSAPrivateKey_fp()
316 DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa) in d2i_DSA_PUBKEY_fp() argument
318 return ASN1_d2i_fp_of(DSA,DSA_new,d2i_DSA_PUBKEY,fp,dsa); in d2i_DSA_PUBKEY_fp()
321 int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa) in i2d_DSA_PUBKEY_fp() argument
323 return ASN1_i2d_fp_of_const(DSA,i2d_DSA_PUBKEY,fp,dsa); in i2d_DSA_PUBKEY_fp()
327 DSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) in d2i_DSAPrivateKey_bio() argument
329 return ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAPrivateKey,bp,dsa in d2i_DSAPrivateKey_bio()
[all …]
/external/openssh/
Dsshkey.c281 return BN_num_bits(k->dsa->p); in sshkey_size()
483 DSA *dsa; in sshkey_new() local
491 k->dsa = NULL; in sshkey_new()
515 if ((dsa = DSA_new()) == NULL || in sshkey_new()
516 (dsa->p = BN_new()) == NULL || in sshkey_new()
517 (dsa->q = BN_new()) == NULL || in sshkey_new()
518 (dsa->g = BN_new()) == NULL || in sshkey_new()
519 (dsa->pub_key = BN_new()) == NULL) { in sshkey_new()
520 if (dsa != NULL) in sshkey_new()
521 DSA_free(dsa); in sshkey_new()
[all …]
Dssh-dss.c64 if (key == NULL || key->dsa == NULL || in ssh_dss_sign()
74 if ((sig = DSA_do_sign(digest, dlen, key->dsa)) == NULL) { in ssh_dss_sign()
142 if (key == NULL || key->dsa == NULL || in ssh_dss_verify()
196 switch (DSA_do_verify(digest, dlen, sig, key->dsa)) { in ssh_dss_verify()
/external/boringssl/src/crypto/obj/
Dobj_xref.txt27 dsaWithSHA sha dsa
28 dsaWithSHA1 sha1 dsa
40 dsa_with_SHA224 sha224 dsa
41 dsa_with_SHA256 sha256 dsa
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_mpeg12_decoder.c413 dec->base.context->delete_depth_stencil_alpha_state(dec->base.context, dec->dsa); in vl_mpeg12_destroy()
773 struct pipe_depth_stencil_alpha_state dsa; in init_pipe_state() local
779 memset(&dsa, 0, sizeof dsa); in init_pipe_state()
780 dsa.depth.enabled = 0; in init_pipe_state()
781 dsa.depth.writemask = 0; in init_pipe_state()
782 dsa.depth.func = PIPE_FUNC_ALWAYS; in init_pipe_state()
784 dsa.stencil[i].enabled = 0; in init_pipe_state()
785 dsa.stencil[i].func = PIPE_FUNC_ALWAYS; in init_pipe_state()
786 dsa.stencil[i].fail_op = PIPE_STENCIL_OP_KEEP; in init_pipe_state()
787 dsa.stencil[i].zpass_op = PIPE_STENCIL_OP_KEEP; in init_pipe_state()
[all …]
Dvl_compositor.c400 struct pipe_depth_stencil_alpha_state dsa; in init_pipe_state() local
459 memset(&dsa, 0, sizeof dsa); in init_pipe_state()
460 dsa.depth.enabled = 0; in init_pipe_state()
461 dsa.depth.writemask = 0; in init_pipe_state()
462 dsa.depth.func = PIPE_FUNC_ALWAYS; in init_pipe_state()
464 dsa.stencil[i].enabled = 0; in init_pipe_state()
465 dsa.stencil[i].func = PIPE_FUNC_ALWAYS; in init_pipe_state()
466 dsa.stencil[i].fail_op = PIPE_STENCIL_OP_KEEP; in init_pipe_state()
467 dsa.stencil[i].zpass_op = PIPE_STENCIL_OP_KEEP; in init_pipe_state()
468 dsa.stencil[i].zfail_op = PIPE_STENCIL_OP_KEEP; in init_pipe_state()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.c501 struct si_state_dsa *dsa = rctx->queued.named.dsa; in si_update_dsa_stencil_ref() local
508 S_028430_STENCILMASK(dsa->valuemask[0]) | in si_update_dsa_stencil_ref()
509 S_028430_STENCILWRITEMASK(dsa->writemask[0])); in si_update_dsa_stencil_ref()
512 S_028434_STENCILMASK_BF(dsa->valuemask[1]) | in si_update_dsa_stencil_ref()
513 S_028434_STENCILWRITEMASK_BF(dsa->writemask[1])); in si_update_dsa_stencil_ref()
561 struct si_state_dsa *dsa = CALLOC_STRUCT(si_state_dsa); in si_create_dsa_state() local
562 struct si_pm4_state *pm4 = &dsa->pm4; in si_create_dsa_state()
567 if (dsa == NULL) { in si_create_dsa_state()
571 dsa->valuemask[0] = state->stencil[0].valuemask; in si_create_dsa_state()
572 dsa->valuemask[1] = state->stencil[1].valuemask; in si_create_dsa_state()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_blitter.c131 struct pipe_depth_stencil_alpha_state dsa; in util_blitter_create() local
180 memset(&dsa, 0, sizeof(dsa)); in util_blitter_create()
182 pipe->create_depth_stencil_alpha_state(pipe, &dsa); in util_blitter_create()
184 dsa.depth.enabled = 1; in util_blitter_create()
185 dsa.depth.writemask = 1; in util_blitter_create()
186 dsa.depth.func = PIPE_FUNC_ALWAYS; in util_blitter_create()
188 pipe->create_depth_stencil_alpha_state(pipe, &dsa); in util_blitter_create()
190 dsa.stencil[0].enabled = 1; in util_blitter_create()
191 dsa.stencil[0].func = PIPE_FUNC_ALWAYS; in util_blitter_create()
192 dsa.stencil[0].fail_op = PIPE_STENCIL_OP_REPLACE; in util_blitter_create()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/
DDSA.java4 import org.bouncycastle.jcajce.provider.asymmetric.dsa.DSAUtil;
5 import org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyFactorySpi;
/external/mesa3d/src/gallium/drivers/r600/
Dr600_state_common.c266 struct r600_pipe_dsa *dsa = (struct r600_pipe_dsa*)rctx->states[R600_PIPE_STATE_DSA]; in r600_set_pipe_stencil_ref() local
271 if (!dsa) in r600_set_pipe_stencil_ref()
276 ref.valuemask[0] = dsa->valuemask[0]; in r600_set_pipe_stencil_ref()
277 ref.valuemask[1] = dsa->valuemask[1]; in r600_set_pipe_stencil_ref()
278 ref.writemask[0] = dsa->writemask[0]; in r600_set_pipe_stencil_ref()
279 ref.writemask[1] = dsa->writemask[1]; in r600_set_pipe_stencil_ref()
287 struct r600_pipe_dsa *dsa = state; in r600_bind_dsa_state() local
293 rstate = &dsa->rstate; in r600_bind_dsa_state()
299 ref.valuemask[0] = dsa->valuemask[0]; in r600_bind_dsa_state()
300 ref.valuemask[1] = dsa->valuemask[1]; in r600_bind_dsa_state()
[all …]
Dr600_state.c801 struct r600_pipe_dsa *dsa = CALLOC_STRUCT(r600_pipe_dsa); in r600_create_dsa_state() local
805 if (dsa == NULL) { in r600_create_dsa_state()
809 dsa->valuemask[0] = state->stencil[0].valuemask; in r600_create_dsa_state()
810 dsa->valuemask[1] = state->stencil[1].valuemask; in r600_create_dsa_state()
811 dsa->writemask[0] = state->stencil[0].writemask; in r600_create_dsa_state()
812 dsa->writemask[1] = state->stencil[1].writemask; in r600_create_dsa_state()
814 rstate = &dsa->rstate; in r600_create_dsa_state()
846 dsa->sx_alpha_test_control = alpha_test_control & 0xff; in r600_create_dsa_state()
847 dsa->alpha_ref = alpha_ref; in r600_create_dsa_state()
2692 struct pipe_depth_stencil_alpha_state dsa; in r600_create_db_flush_dsa() local
[all …]

123