Home
last modified time | relevance | path

Searched refs:dctx (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/third_party/boringssl/src/crypto/evp/
Dp_ec.c96 EC_PKEY_CTX *dctx; in pkey_ec_init() local
97 dctx = OPENSSL_malloc(sizeof(EC_PKEY_CTX)); in pkey_ec_init()
98 if (!dctx) { in pkey_ec_init()
101 memset(dctx, 0, sizeof(EC_PKEY_CTX)); in pkey_ec_init()
102 dctx->cofactor_mode = -1; in pkey_ec_init()
103 dctx->kdf_type = EVP_PKEY_ECDH_KDF_NONE; in pkey_ec_init()
105 ctx->data = dctx; in pkey_ec_init()
111 EC_PKEY_CTX *dctx, *sctx; in pkey_ec_copy() local
116 dctx = dst->data; in pkey_ec_copy()
119 dctx->gen_group = EC_GROUP_dup(sctx->gen_group); in pkey_ec_copy()
[all …]
Dp_hmac.c89 HMAC_PKEY_CTX *sctx, *dctx; in pkey_hmac_copy() local
94 dctx = dst->data; in pkey_hmac_copy()
95 dctx->md = sctx->md; in pkey_hmac_copy()
96 HMAC_CTX_init(&dctx->ctx); in pkey_hmac_copy()
97 if (!HMAC_CTX_copy(&dctx->ctx, &sctx->ctx)) { in pkey_hmac_copy()
101 if (!ASN1_OCTET_STRING_set(&dctx->ktmp, sctx->ktmp.data, in pkey_hmac_copy()
Dp_rsa.c108 RSA_PKEY_CTX *dctx, *sctx; in pkey_rsa_copy() local
113 dctx = dst->data; in pkey_rsa_copy()
114 dctx->nbits = sctx->nbits; in pkey_rsa_copy()
116 dctx->pub_exp = BN_dup(sctx->pub_exp); in pkey_rsa_copy()
117 if (!dctx->pub_exp) { in pkey_rsa_copy()
122 dctx->pad_mode = sctx->pad_mode; in pkey_rsa_copy()
123 dctx->md = sctx->md; in pkey_rsa_copy()
124 dctx->mgf1md = sctx->mgf1md; in pkey_rsa_copy()
126 if (dctx->oaep_label) { in pkey_rsa_copy()
127 OPENSSL_free(dctx->oaep_label); in pkey_rsa_copy()
[all …]
/external/openssl/crypto/dsa/
Ddsa_pmeth.c83 DSA_PKEY_CTX *dctx; in pkey_dsa_init() local
84 dctx = OPENSSL_malloc(sizeof(DSA_PKEY_CTX)); in pkey_dsa_init()
85 if (!dctx) in pkey_dsa_init()
87 dctx->nbits = 1024; in pkey_dsa_init()
88 dctx->qbits = 160; in pkey_dsa_init()
89 dctx->pmd = NULL; in pkey_dsa_init()
90 dctx->md = NULL; in pkey_dsa_init()
92 ctx->data = dctx; in pkey_dsa_init()
93 ctx->keygen_info = dctx->gentmp; in pkey_dsa_init()
101 DSA_PKEY_CTX *dctx, *sctx; in pkey_dsa_copy() local
[all …]
/external/openssl/crypto/ec/
Dec_pmeth.c79 EC_PKEY_CTX *dctx; in pkey_ec_init() local
80 dctx = OPENSSL_malloc(sizeof(EC_PKEY_CTX)); in pkey_ec_init()
81 if (!dctx) in pkey_ec_init()
83 dctx->gen_group = NULL; in pkey_ec_init()
84 dctx->md = NULL; in pkey_ec_init()
86 ctx->data = dctx; in pkey_ec_init()
93 EC_PKEY_CTX *dctx, *sctx; in pkey_ec_copy() local
97 dctx = dst->data; in pkey_ec_copy()
100 dctx->gen_group = EC_GROUP_dup(sctx->gen_group); in pkey_ec_copy()
101 if (!dctx->gen_group) in pkey_ec_copy()
[all …]
/external/openssl/crypto/dh/
Ddh_pmeth.c82 DH_PKEY_CTX *dctx; in pkey_dh_init() local
83 dctx = OPENSSL_malloc(sizeof(DH_PKEY_CTX)); in pkey_dh_init()
84 if (!dctx) in pkey_dh_init()
86 dctx->prime_len = 1024; in pkey_dh_init()
87 dctx->generator = 2; in pkey_dh_init()
88 dctx->use_dsa = 0; in pkey_dh_init()
90 ctx->data = dctx; in pkey_dh_init()
91 ctx->keygen_info = dctx->gentmp; in pkey_dh_init()
99 DH_PKEY_CTX *dctx, *sctx; in pkey_dh_copy() local
103 dctx = dst->data; in pkey_dh_copy()
[all …]
/external/openssl/crypto/rand/
Drand_lib.c270 DRBG_CTX *dctx; in RAND_init_fips() local
281 dctx = FIPS_get_default_drbg(); in RAND_init_fips()
282 if (FIPS_drbg_init(dctx, fips_drbg_type, fips_drbg_flags) <= 0) in RAND_init_fips()
288 FIPS_drbg_set_callbacks(dctx, in RAND_init_fips()
291 FIPS_drbg_set_rand_callbacks(dctx, drbg_get_adin, 0, in RAND_init_fips()
295 plen = drbg_get_adin(dctx, &p); in RAND_init_fips()
298 if (FIPS_drbg_instantiate(dctx, pers, sizeof(pers)) <= 0) in RAND_init_fips()
/external/openssl/crypto/hmac/
Dhmac.c194 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx) in HMAC_CTX_copy() argument
196 if (!EVP_MD_CTX_copy(&dctx->i_ctx, &sctx->i_ctx)) in HMAC_CTX_copy()
198 if (!EVP_MD_CTX_copy(&dctx->o_ctx, &sctx->o_ctx)) in HMAC_CTX_copy()
200 if (!EVP_MD_CTX_copy(&dctx->md_ctx, &sctx->md_ctx)) in HMAC_CTX_copy()
202 memcpy(dctx->key, sctx->key, HMAC_MAX_MD_CBLOCK); in HMAC_CTX_copy()
203 dctx->key_length = sctx->key_length; in HMAC_CTX_copy()
204 dctx->md = sctx->md; in HMAC_CTX_copy()
Dhm_pmeth.c96 HMAC_PKEY_CTX *sctx, *dctx; in pkey_hmac_copy() local
100 dctx = dst->data; in pkey_hmac_copy()
101 dctx->md = sctx->md; in pkey_hmac_copy()
102 HMAC_CTX_init(&dctx->ctx); in pkey_hmac_copy()
103 if (!HMAC_CTX_copy(&dctx->ctx, &sctx->ctx)) in pkey_hmac_copy()
107 if (!ASN1_OCTET_STRING_set(&dctx->ktmp, in pkey_hmac_copy()
Dhmac.h102 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
/external/openssl/crypto/rsa/
Drsa_pmeth.c120 RSA_PKEY_CTX *dctx, *sctx; in pkey_rsa_copy() local
124 dctx = dst->data; in pkey_rsa_copy()
125 dctx->nbits = sctx->nbits; in pkey_rsa_copy()
128 dctx->pub_exp = BN_dup(sctx->pub_exp); in pkey_rsa_copy()
129 if (!dctx->pub_exp) in pkey_rsa_copy()
132 dctx->pad_mode = sctx->pad_mode; in pkey_rsa_copy()
133 dctx->md = sctx->md; in pkey_rsa_copy()
/external/openssl/crypto/evp/
Dbio_md.c174 EVP_MD_CTX *ctx,*dctx,**pctx; in md_ctrl() local
226 dctx=dbio->ptr; in md_ctrl()
227 if (!EVP_MD_CTX_copy_ex(dctx,ctx)) in md_ctrl()
Dbio_enc.c289 BIO_ENC_CTX *ctx,*dctx; in enc_ctrl() local
363 dctx=(BIO_ENC_CTX *)dbio->ptr; in enc_ctrl()
364 EVP_CIPHER_CTX_init(&dctx->cipher); in enc_ctrl()
365 ret = EVP_CIPHER_CTX_copy(&dctx->cipher,&ctx->cipher); in enc_ctrl()
/external/openssl/include/openssl/
Dhmac.h102 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);