/external/boringssl/src/crypto/evp/ |
D | p_dsa_asn1.c | 71 DSA *dsa; in dsa_pub_decode() local 73 dsa = DSA_new(); in dsa_pub_decode() 74 if (dsa == NULL) { in dsa_pub_decode() 78 dsa = DSA_parse_parameters(params); in dsa_pub_decode() 79 if (dsa == NULL || CBS_len(params) != 0) { in dsa_pub_decode() 85 dsa->pub_key = BN_new(); in dsa_pub_decode() 86 if (dsa->pub_key == NULL) { in dsa_pub_decode() 90 if (!BN_parse_asn1_unsigned(key, dsa->pub_key) || in dsa_pub_decode() 96 EVP_PKEY_assign_DSA(out, dsa); in dsa_pub_decode() 100 DSA_free(dsa); in dsa_pub_decode() [all …]
|
D | evp_asn1.c | 211 DSA *dsa = DSA_parse_private_key(cbs); in old_priv_decode() local 212 if (dsa == NULL || !EVP_PKEY_assign_DSA(ret, dsa)) { in old_priv_decode() 213 DSA_free(dsa); in old_priv_decode() 330 return i2d_DSAPublicKey(key->pkey.dsa, outp); in i2d_PublicKey()
|
D | evp.c | 266 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/boringssl/src/crypto/dsa/ |
D | dsa.c | 88 DSA *dsa = OPENSSL_malloc(sizeof(DSA)); in DSA_new() local 89 if (dsa == NULL) { in DSA_new() 94 OPENSSL_memset(dsa, 0, sizeof(DSA)); in DSA_new() 96 dsa->references = 1; in DSA_new() 98 CRYPTO_MUTEX_init(&dsa->method_mont_lock); in DSA_new() 99 CRYPTO_new_ex_data(&dsa->ex_data); in DSA_new() 101 return dsa; in DSA_new() 104 void DSA_free(DSA *dsa) { in DSA_free() argument 105 if (dsa == NULL) { in DSA_free() 109 if (!CRYPTO_refcount_dec_and_test_zero(&dsa->references)) { in DSA_free() [all …]
|
D | dsa_test.cc | 170 bssl::UniquePtr<DSA> dsa(DSA_new()); in GetFIPSDSA() local 171 if (!dsa) { in GetFIPSDSA() 174 dsa->p = BN_bin2bn(fips_p, sizeof(fips_p), nullptr); in GetFIPSDSA() 175 dsa->q = BN_bin2bn(fips_q, sizeof(fips_q), nullptr); in GetFIPSDSA() 176 dsa->g = BN_bin2bn(fips_g, sizeof(fips_g), nullptr); in GetFIPSDSA() 177 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), nullptr); in GetFIPSDSA() 178 dsa->priv_key = BN_bin2bn(fips_x, sizeof(fips_x), nullptr); in GetFIPSDSA() 179 if (dsa->p == nullptr || dsa->q == nullptr || dsa->g == nullptr || in GetFIPSDSA() 180 dsa->pub_key == nullptr || dsa->priv_key == nullptr) { in GetFIPSDSA() 183 return dsa; in GetFIPSDSA() [all …]
|
D | dsa_asn1.c | 133 int DSA_marshal_public_key(CBB *cbb, const DSA *dsa) { in DSA_marshal_public_key() argument 136 !marshal_integer(&child, dsa->pub_key) || in DSA_marshal_public_key() 137 !marshal_integer(&child, dsa->p) || in DSA_marshal_public_key() 138 !marshal_integer(&child, dsa->q) || in DSA_marshal_public_key() 139 !marshal_integer(&child, dsa->g) || in DSA_marshal_public_key() 165 int DSA_marshal_parameters(CBB *cbb, const DSA *dsa) { in DSA_marshal_parameters() argument 168 !marshal_integer(&child, dsa->p) || in DSA_marshal_parameters() 169 !marshal_integer(&child, dsa->q) || in DSA_marshal_parameters() 170 !marshal_integer(&child, dsa->g) || in DSA_marshal_parameters() 213 int DSA_marshal_private_key(CBB *cbb, const DSA *dsa) { in DSA_marshal_private_key() argument [all …]
|
D | CMakeLists.txt | 4 dsa target 8 dsa.c
|
/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()
|
D | r300_state.c | 580 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 …]
|
D | r300_context.c | 458 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/ |
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/boringssl/src/include/openssl/ |
D | dsa.h | 85 OPENSSL_EXPORT void DSA_free(DSA *dsa); 88 OPENSSL_EXPORT int DSA_up_ref(DSA *dsa); 96 OPENSSL_EXPORT void DSA_get0_key(const DSA *dsa, const BIGNUM **out_pub_key, 101 OPENSSL_EXPORT void DSA_get0_pqg(const DSA *dsa, const BIGNUM **out_p, 124 OPENSSL_EXPORT int DSA_generate_parameters_ex(DSA *dsa, unsigned bits, 132 OPENSSL_EXPORT DSA *DSAparams_dup(const DSA *dsa); 140 OPENSSL_EXPORT int DSA_generate_key(DSA *dsa); 160 DSA *dsa); 173 DSA_SIG *sig, const DSA *dsa); 183 const DSA *dsa); [all …]
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | renderer.c | 83 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/ |
D | pem_all.c | 123 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa); 181 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() 210 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write_cb_const() 214 return pkey_get_dsa(pktmp, dsa); /* will free pktmp */ in IMPLEMENT_PEM_write_cb_const()
|
/external/boringssl/src/crypto/x509/ |
D | x_all.c | 267 DSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) in d2i_DSAPrivateKey_fp() argument 269 return ASN1_d2i_fp_of(DSA, DSA_new, d2i_DSAPrivateKey, fp, dsa); in d2i_DSAPrivateKey_fp() 272 int i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa) in i2d_DSAPrivateKey_fp() argument 274 return ASN1_i2d_fp_of_const(DSA, i2d_DSAPrivateKey, fp, dsa); in i2d_DSAPrivateKey_fp() 277 DSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa) in d2i_DSA_PUBKEY_fp() argument 279 return ASN1_d2i_fp_of(DSA, DSA_new, d2i_DSA_PUBKEY, fp, dsa); in d2i_DSA_PUBKEY_fp() 282 int i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa) in i2d_DSA_PUBKEY_fp() argument 284 return ASN1_i2d_fp_of_const(DSA, i2d_DSA_PUBKEY, fp, dsa); in i2d_DSA_PUBKEY_fp() 288 DSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) in d2i_DSAPrivateKey_bio() argument 290 return ASN1_d2i_bio_of(DSA, DSA_new, d2i_DSAPrivateKey, bp, dsa); in d2i_DSAPrivateKey_bio() [all …]
|
/external/openssh/ |
D | sshkey.c | 275 return BN_num_bits(k->dsa->p); in sshkey_size() 463 DSA *dsa; in sshkey_new() local 471 k->dsa = NULL; in sshkey_new() 493 if ((dsa = DSA_new()) == NULL || in sshkey_new() 494 (dsa->p = BN_new()) == NULL || in sshkey_new() 495 (dsa->q = BN_new()) == NULL || in sshkey_new() 496 (dsa->g = BN_new()) == NULL || in sshkey_new() 497 (dsa->pub_key = BN_new()) == NULL) { in sshkey_new() 498 if (dsa != NULL) in sshkey_new() 499 DSA_free(dsa); in sshkey_new() [all …]
|
D | ssh-dss.c | 64 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/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_mpeg12_decoder.c | 413 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 …]
|
D | vl_compositor.c | 400 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/ |
D | si_state.c | 501 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/ |
D | u_blitter.c | 131 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/ |
D | DSA.java | 4 import org.bouncycastle.jcajce.provider.asymmetric.dsa.DSAUtil; 5 import org.bouncycastle.jcajce.provider.asymmetric.dsa.KeyFactorySpi;
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_state_common.c | 266 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 …]
|
/external/boringssl/src/crypto/ |
D | CMakeLists.txt | 94 add_subdirectory(dsa) 160 $<TARGET_OBJECTS:dsa> 209 dsa/dsa_test.cc
|