Home
last modified time | relevance | path

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

12345678

/external/boringssl/src/crypto/evp/
Dp_dsa_asn1.c71 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 …]
Devp_asn1.c222 DSA *dsa = DSA_parse_private_key(cbs); in old_priv_decode() local
223 if (dsa == NULL || !EVP_PKEY_assign_DSA(ret, dsa)) { in old_priv_decode()
224 DSA_free(dsa); in old_priv_decode()
341 return i2d_DSAPublicKey(key->pkey.dsa, outp); in i2d_PublicKey()
475 DSA *dsa = EVP_PKEY_get1_DSA(pkey); in d2i_DSA_PUBKEY() local
477 if (dsa == NULL) { in d2i_DSA_PUBKEY()
482 *out = dsa; in d2i_DSA_PUBKEY()
485 return dsa; in d2i_DSA_PUBKEY()
488 int i2d_DSA_PUBKEY(const DSA *dsa, uint8_t **outp) { in i2d_DSA_PUBKEY() argument
489 if (dsa == NULL) { in i2d_DSA_PUBKEY()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/dsa/
Ddsa.c85 static int dsa_sign_setup(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **out_kinv,
91 DSA *dsa = OPENSSL_malloc(sizeof(DSA)); in DSA_new() local
92 if (dsa == NULL) { in DSA_new()
97 OPENSSL_memset(dsa, 0, sizeof(DSA)); in DSA_new()
99 dsa->references = 1; in DSA_new()
101 CRYPTO_MUTEX_init(&dsa->method_mont_lock); in DSA_new()
102 CRYPTO_new_ex_data(&dsa->ex_data); in DSA_new()
104 return dsa; in DSA_new()
107 void DSA_free(DSA *dsa) { in DSA_free() argument
108 if (dsa == NULL) { in DSA_free()
[all …]
Ddsa_test.cc172 bssl::UniquePtr<DSA> dsa(DSA_new()); in GetFIPSDSA() local
173 if (!dsa) { in GetFIPSDSA()
176 dsa->p = BN_bin2bn(fips_p, sizeof(fips_p), nullptr); in GetFIPSDSA()
177 dsa->q = BN_bin2bn(fips_q, sizeof(fips_q), nullptr); in GetFIPSDSA()
178 dsa->g = BN_bin2bn(fips_g, sizeof(fips_g), nullptr); in GetFIPSDSA()
179 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), nullptr); in GetFIPSDSA()
180 dsa->priv_key = BN_bin2bn(fips_x, sizeof(fips_x), nullptr); in GetFIPSDSA()
181 if (dsa->p == nullptr || dsa->q == nullptr || dsa->g == nullptr || in GetFIPSDSA()
182 dsa->pub_key == nullptr || dsa->priv_key == nullptr) { in GetFIPSDSA()
185 return dsa; in GetFIPSDSA()
[all …]
Ddsa_asn1.c133 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 …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/
Dp_dsa_asn1.c71 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 …]
/external/boringssl/src/crypto/dsa/
Ddsa.c84 static int dsa_sign_setup(const DSA *dsa, BN_CTX *ctx_in, BIGNUM **out_kinv,
90 DSA *dsa = OPENSSL_malloc(sizeof(DSA)); in DSA_new() local
91 if (dsa == NULL) { in DSA_new()
96 OPENSSL_memset(dsa, 0, sizeof(DSA)); in DSA_new()
98 dsa->references = 1; in DSA_new()
100 CRYPTO_MUTEX_init(&dsa->method_mont_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.cc172 bssl::UniquePtr<DSA> dsa(DSA_new()); in GetFIPSDSA() local
173 if (!dsa) { in GetFIPSDSA()
176 dsa->p = BN_bin2bn(fips_p, sizeof(fips_p), nullptr); in GetFIPSDSA()
177 dsa->q = BN_bin2bn(fips_q, sizeof(fips_q), nullptr); in GetFIPSDSA()
178 dsa->g = BN_bin2bn(fips_g, sizeof(fips_g), nullptr); in GetFIPSDSA()
179 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), nullptr); in GetFIPSDSA()
180 dsa->priv_key = BN_bin2bn(fips_x, sizeof(fips_x), nullptr); in GetFIPSDSA()
181 if (dsa->p == nullptr || dsa->q == nullptr || dsa->g == nullptr || in GetFIPSDSA()
182 dsa->pub_key == nullptr || dsa->priv_key == nullptr) { in GetFIPSDSA()
185 return dsa; in GetFIPSDSA()
[all …]
Ddsa_asn1.c73 int dsa_check_parameters(const DSA *dsa) { in dsa_check_parameters() argument
74 if (!dsa->p || !dsa->q || !dsa->g) { in dsa_check_parameters()
81 if (BN_is_zero(dsa->p) || BN_is_zero(dsa->q) || BN_is_zero(dsa->g)) { in dsa_check_parameters()
87 unsigned q_bits = BN_num_bits(dsa->q); in dsa_check_parameters()
95 if (BN_num_bits(dsa->p) > OPENSSL_DSA_MAX_MODULUS_BITS) { in dsa_check_parameters()
175 int DSA_marshal_public_key(CBB *cbb, const DSA *dsa) { in DSA_marshal_public_key() argument
178 !marshal_integer(&child, dsa->pub_key) || in DSA_marshal_public_key()
179 !marshal_integer(&child, dsa->p) || in DSA_marshal_public_key()
180 !marshal_integer(&child, dsa->q) || in DSA_marshal_public_key()
181 !marshal_integer(&child, dsa->g) || in DSA_marshal_public_key()
[all …]
/external/mesa3d/src/gallium/drivers/r300/
Dr300_hyperz.c43 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_get_hiz_func() local
45 switch (dsa->dsa.depth.func) { in r300_get_hiz_func()
65 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_get_sc_hz_max() local
66 unsigned func = dsa->dsa.depth.func; in r300_get_sc_hz_max()
73 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_is_hiz_func_valid() local
74 unsigned func = dsa->dsa.depth.func; in r300_is_hiz_func_valid()
100 struct r300_dsa_state *dsa = r300->dsa_state.state; in r300_hiz_allowed() local
114 if (r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[0]) || in r300_hiz_allowed()
115 r300_dsa_stencil_op_not_keep(&dsa->dsa.stencil[1])) in r300_hiz_allowed()
118 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()
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_depth.c100 struct pipe_depth_stencil_alpha_state *dsa = &st->state.depth_stencil; in st_update_depth_stencil_alpha() local
104 memset(dsa, 0, sizeof(*dsa)); in st_update_depth_stencil_alpha()
109 dsa->depth.enabled = 1; in st_update_depth_stencil_alpha()
110 dsa->depth.func = st_compare_func_to_pipe(ctx->Depth.Func); in st_update_depth_stencil_alpha()
111 if (dsa->depth.func != PIPE_FUNC_EQUAL) in st_update_depth_stencil_alpha()
112 dsa->depth.writemask = ctx->Depth.Mask; in st_update_depth_stencil_alpha()
115 dsa->depth.bounds_test = 1; in st_update_depth_stencil_alpha()
116 dsa->depth.bounds_min = ctx->Depth.BoundsMin; in st_update_depth_stencil_alpha()
117 dsa->depth.bounds_max = ctx->Depth.BoundsMax; in st_update_depth_stencil_alpha()
122 dsa->stencil[0].enabled = 1; in st_update_depth_stencil_alpha()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Ddsa.h89 OPENSSL_EXPORT void DSA_free(DSA *dsa);
92 OPENSSL_EXPORT int DSA_up_ref(DSA *dsa);
98 OPENSSL_EXPORT const BIGNUM *DSA_get0_pub_key(const DSA *dsa);
102 OPENSSL_EXPORT const BIGNUM *DSA_get0_priv_key(const DSA *dsa);
105 OPENSSL_EXPORT const BIGNUM *DSA_get0_p(const DSA *dsa);
108 OPENSSL_EXPORT const BIGNUM *DSA_get0_q(const DSA *dsa);
111 OPENSSL_EXPORT const BIGNUM *DSA_get0_g(const DSA *dsa);
116 OPENSSL_EXPORT void DSA_get0_key(const DSA *dsa, const BIGNUM **out_pub_key,
121 OPENSSL_EXPORT void DSA_get0_pqg(const DSA *dsa, const BIGNUM **out_p,
130 OPENSSL_EXPORT int DSA_set0_key(DSA *dsa, BIGNUM *pub_key, BIGNUM *priv_key);
[all …]
/external/boringssl/src/include/openssl/
Ddsa.h89 OPENSSL_EXPORT void DSA_free(DSA *dsa);
92 OPENSSL_EXPORT int DSA_up_ref(DSA *dsa);
98 OPENSSL_EXPORT const BIGNUM *DSA_get0_pub_key(const DSA *dsa);
102 OPENSSL_EXPORT const BIGNUM *DSA_get0_priv_key(const DSA *dsa);
105 OPENSSL_EXPORT const BIGNUM *DSA_get0_p(const DSA *dsa);
108 OPENSSL_EXPORT const BIGNUM *DSA_get0_q(const DSA *dsa);
111 OPENSSL_EXPORT const BIGNUM *DSA_get0_g(const DSA *dsa);
116 OPENSSL_EXPORT void DSA_get0_key(const DSA *dsa, const BIGNUM **out_pub_key,
121 OPENSSL_EXPORT void DSA_get0_pqg(const DSA *dsa, const BIGNUM **out_p,
130 OPENSSL_EXPORT int DSA_set0_key(DSA *dsa, BIGNUM *pub_key, BIGNUM *priv_key);
[all …]
/external/python/cryptography/tests/hazmat/primitives/
Dtest_dsa.py17 from cryptography.hazmat.primitives.asymmetric import dsa
52 parameters = dsa.generate_parameters(1024, backend)
53 assert isinstance(parameters, dsa.DSAParameters)
57 dsa.generate_parameters(1, backend)
68 parameters = dsa.DSAParameterNumbers(
94 skey = dsa.generate_private_key(1024, backend)
159 dsa.DSAParameterNumbers(p, q, g).parameters(backend)
273 dsa.DSAPrivateNumbers(
274 public_numbers=dsa.DSAPublicNumbers(
275 parameter_numbers=dsa.DSAParameterNumbers(p=p, q=q, g=g),
[all …]
/external/mesa3d/src/gallium/frontends/nine/
Dnine_pipe.c33 struct pipe_depth_stencil_alpha_state dsa; in nine_convert_dsa_state() local
35 memset(&dsa, 0, sizeof(dsa)); /* memcmp safety */ in nine_convert_dsa_state()
38 dsa.depth.enabled = 1; in nine_convert_dsa_state()
39 dsa.depth.func = d3dcmpfunc_to_pipe_func(rs[D3DRS_ZFUNC]); in nine_convert_dsa_state()
41 dsa.depth.writemask = !!rs[D3DRS_ZWRITEENABLE] && in nine_convert_dsa_state()
42 dsa.depth.func != PIPE_FUNC_EQUAL && in nine_convert_dsa_state()
43 dsa.depth.func != PIPE_FUNC_NEVER; in nine_convert_dsa_state()
47 dsa.stencil[0].enabled = 1; in nine_convert_dsa_state()
48 dsa.stencil[0].func = d3dcmpfunc_to_pipe_func(rs[D3DRS_STENCILFUNC]); in nine_convert_dsa_state()
49 dsa.stencil[0].fail_op = d3dstencilop_to_pipe_stencil_op(rs[D3DRS_STENCILFAIL]); in nine_convert_dsa_state()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/pem/
Dpem_all.c121 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa);
180 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) in IMPLEMENT_PEM_write_cb_const()
189 if (dsa) { in IMPLEMENT_PEM_write_cb_const()
190 DSA_free(*dsa); in IMPLEMENT_PEM_write_cb_const()
191 *dsa = dtmp; in IMPLEMENT_PEM_write_cb_const()
196 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, in PEM_read_bio_DSAPrivateKey() argument
201 return pkey_get_dsa(pktmp, dsa); /* will free pktmp */ in PEM_read_bio_DSAPrivateKey()
209 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write_cb_const()
213 return pkey_get_dsa(pktmp, dsa); /* will free pktmp */ in IMPLEMENT_PEM_write_cb_const()
/external/boringssl/src/crypto/pem/
Dpem_all.c121 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa);
180 static DSA *pkey_get_dsa(EVP_PKEY *key, DSA **dsa) in IMPLEMENT_PEM_write_cb_const()
189 if (dsa) { in IMPLEMENT_PEM_write_cb_const()
190 DSA_free(*dsa); in IMPLEMENT_PEM_write_cb_const()
191 *dsa = dtmp; in IMPLEMENT_PEM_write_cb_const()
196 DSA *PEM_read_bio_DSAPrivateKey(BIO *bp, DSA **dsa, pem_password_cb *cb, in PEM_read_bio_DSAPrivateKey() argument
201 return pkey_get_dsa(pktmp, dsa); /* will free pktmp */ in PEM_read_bio_DSAPrivateKey()
209 DSA *PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) in IMPLEMENT_PEM_write_cb_const()
213 return pkey_get_dsa(pktmp, dsa); /* will free pktmp */ in IMPLEMENT_PEM_write_cb_const()
/external/openssh/regress/
Dssh-com.sh59 rm -f ${OBJ}/dsa ${OBJ}/dsa.pub
60 ${SSHKEYGEN} -q -N '' -t dsa -f ${OBJ}/dsa
65 for t in rsa dsa; do
117 sshd2_config dsa.pub dsa ssh_config_com; do
/external/python/cryptography/docs/hazmat/primitives/asymmetric/
Ddsa.rst6 .. module:: cryptography.hazmat.primitives.asymmetric.dsa
31 :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`.
54 :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters`.
63 Using a :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`
70 >>> from cryptography.hazmat.primitives.asymmetric import dsa
71 >>> private_key = dsa.generate_private_key(
106 :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey` instance.
110 :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicNumbers.public_key`
112 :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey.public_key`.
179 :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters`.
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_binning.c179 struct si_state_dsa *dsa = sctx->queued.named.dsa; in si_get_depth_bin_size() local
181 if (!sctx->framebuffer.state.zsbuf || (!dsa->depth_enabled && !dsa->stencil_enabled)) { in si_get_depth_bin_size()
188 unsigned depth_coeff = dsa->depth_enabled ? 5 : 0; in si_get_depth_bin_size()
189 unsigned stencil_coeff = tex->surface.has_stencil && dsa->stencil_enabled ? 1 : 0; in si_get_depth_bin_size()
389 struct si_state_dsa *dsa = sctx->queued.named.dsa; in gfx10_get_bin_sizes() local
391 const unsigned cPerDepthSample = dsa->depth_enabled ? 5 : 0; in gfx10_get_bin_sizes()
392 const unsigned cPerStencilSample = dsa->stencil_enabled ? 1 : 0; in gfx10_get_bin_sizes()
454 struct si_state_dsa *dsa = sctx->queued.named.dsa; in si_emit_dpbb_state() local
474 sctx->framebuffer.state.zsbuf && dsa->db_can_write) { in si_emit_dpbb_state()
/external/openssh/regress/unittests/sshkey/
Dcommon.c137 ASSERT_PTR_NE(k->dsa, NULL); in dsa_g()
138 DSA_get0_pqg(k->dsa, NULL, NULL, &g); in dsa_g()
148 ASSERT_PTR_NE(k->dsa, NULL); in dsa_pub_key()
149 DSA_get0_key(k->dsa, &pub_key, NULL); in dsa_pub_key()
159 ASSERT_PTR_NE(k->dsa, NULL); in dsa_priv_key()
160 DSA_get0_key(k->dsa, NULL, &priv_key); in dsa_priv_key()
/external/virglrenderer/tests/
Dtest_virgl_cmd.c58 struct pipe_depth_stencil_alpha_state dsa; in START_TEST() local
60 memset(&dsa, 0, sizeof(dsa)); in START_TEST()
61 dsa.depth.writemask = 1; in START_TEST()
62 dsa.depth.func = PIPE_FUNC_LESS; in START_TEST()
63 virgl_encode_dsa_state(&ctx, dsa_handle, &dsa); in START_TEST()
387 struct pipe_depth_stencil_alpha_state dsa; in START_TEST() local
389 memset(&dsa, 0, sizeof(dsa)); in START_TEST()
390 dsa.depth.writemask = 1; in START_TEST()
391 dsa.depth.func = PIPE_FUNC_LESS; in START_TEST()
392 virgl_encode_dsa_state(&ctx, dsa_handle, &dsa); in START_TEST()
[all …]
/external/mesa3d/src/mesa/main/
Dtexparam.c249 GLenum pname, const GLint *params, bool dsa) in set_tex_parameteri() argument
251 const char *suffix = dsa ? "ture" : ""; in set_tex_parameteri()
627 if (!dsa) in set_tex_parameteri()
649 GLenum pname, const GLfloat *params, bool dsa) in set_tex_parameterf() argument
651 const char *suffix = dsa ? "ture" : ""; in set_tex_parameterf()
790 if (!dsa) in set_tex_parameterf()
805 GLenum pname, GLfloat param, bool dsa) in _mesa_texture_parameterf() argument
835 need_update = set_tex_parameteri(ctx, texObj, pname, p, dsa); in _mesa_texture_parameterf()
841 dsa ? "ture" : ""); in _mesa_texture_parameterf()
849 need_update = set_tex_parameterf(ctx, texObj, pname, p, dsa); in _mesa_texture_parameterf()
[all …]
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Ddsa.py15 AsymmetricSignatureContext, AsymmetricVerificationContext, dsa
84 @utils.register_interface(dsa.DSAParametersWithNumbers)
98 return dsa.DSAParameterNumbers(
108 @utils.register_interface(dsa.DSAPrivateKeyWithSerialization)
142 return dsa.DSAPrivateNumbers(
143 public_numbers=dsa.DSAPublicNumbers(
144 parameter_numbers=dsa.DSAParameterNumbers(
197 @utils.register_interface(dsa.DSAPublicKeyWithSerialization)
234 return dsa.DSAPublicNumbers(
235 parameter_numbers=dsa.DSAParameterNumbers(

12345678