Home
last modified time | relevance | path

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

123

/external/boringssl/src/crypto/dsa/
Ddsa.c89 DSA *dsa = (DSA *)OPENSSL_malloc(sizeof(DSA)); in DSA_new() local
90 if (dsa == NULL) { in DSA_new()
95 memset(dsa, 0, sizeof(DSA)); in DSA_new()
97 dsa->write_params = 1; in DSA_new()
98 dsa->references = 1; in DSA_new()
100 CRYPTO_MUTEX_init(&dsa->method_mont_p_lock); in DSA_new()
101 CRYPTO_new_ex_data(&dsa->ex_data); in DSA_new()
103 return dsa; in DSA_new()
106 void DSA_free(DSA *dsa) { in DSA_free() argument
107 if (dsa == NULL) { in DSA_free()
[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 …]
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/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 …]
Devp.c266 return pkey->pkey.dsa; in EVP_PKEY_get0_DSA()
270 DSA *dsa = EVP_PKEY_get0_DSA(pkey); in EVP_PKEY_get1_DSA() local
271 if (dsa != NULL) { in EVP_PKEY_get1_DSA()
272 DSA_up_ref(dsa); in EVP_PKEY_get1_DSA()
274 return dsa; in EVP_PKEY_get1_DSA()
/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/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.h85 OPENSSL_EXPORT void DSA_free(DSA *dsa);
88 OPENSSL_EXPORT int DSA_up_ref(DSA *dsa);
110 OPENSSL_EXPORT int DSA_generate_parameters_ex(DSA *dsa, unsigned bits,
118 OPENSSL_EXPORT DSA *DSAparams_dup(const DSA *dsa);
126 OPENSSL_EXPORT int DSA_generate_key(DSA *dsa);
146 DSA *dsa);
159 DSA_SIG *sig, const DSA *dsa);
169 const DSA *dsa);
186 DSA *dsa);
202 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.c268 DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) in d2i_DSAPrivateKey_fp() argument
270 return ASN1_d2i_fp_of(DSA,DSA_new,d2i_DSAPrivateKey,fp,dsa); in d2i_DSAPrivateKey_fp()
273 int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa) in i2d_DSAPrivateKey_fp() argument
275 return ASN1_i2d_fp_of_const(DSA,i2d_DSAPrivateKey,fp,dsa); in i2d_DSAPrivateKey_fp()
278 DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa) in d2i_DSA_PUBKEY_fp() argument
280 return ASN1_d2i_fp_of(DSA,DSA_new,d2i_DSA_PUBKEY,fp,dsa); in d2i_DSA_PUBKEY_fp()
283 int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa) in i2d_DSA_PUBKEY_fp() argument
285 return ASN1_i2d_fp_of_const(DSA,i2d_DSA_PUBKEY,fp,dsa); in i2d_DSA_PUBKEY_fp()
289 DSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) in d2i_DSAPrivateKey_bio() argument
291 return ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAPrivateKey,bp,dsa in d2i_DSAPrivateKey_bio()
[all …]
/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 …]
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyAgreementTest.java431 DSAParameterSpec dsa = new DSAParameterSpec(new BigInteger("56"), in testInit02() local
435 kAgs[i].init(privKey, dsa); in testInit02()
441 kAgs[i].init(privKey, dsa, new SecureRandom()); in testInit02()
447 kAgs[i].init(privKey, dsa, random); in testInit02()
/external/skia/src/opts/
DSkXfermode_opts.h92 dsa = (d*sa).div255(); in XFERMODE() local
97 colors = (sda < dsa).thenElse(srcover, dstover); in XFERMODE()
105 dsa = (d*sa).div255(); in XFERMODE() local
110 colors = (dsa < sda).thenElse(srcover, dstover); in XFERMODE()

123