Home
last modified time | relevance | path

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

/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.c269 DRBG_CTX *dctx; in RAND_init_fips() local
272 dctx = FIPS_get_default_drbg(); in RAND_init_fips()
273 if (FIPS_drbg_init(dctx, fips_drbg_type, fips_drbg_flags) <= 0) in RAND_init_fips()
279 FIPS_drbg_set_callbacks(dctx, in RAND_init_fips()
282 FIPS_drbg_set_rand_callbacks(dctx, drbg_get_adin, 0, in RAND_init_fips()
286 plen = drbg_get_adin(dctx, &p); in RAND_init_fips()
289 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/crypto/pkcs7/
Dbio_ber.c331 BIO_ENC_CTX *ctx,*dctx; in ber_ctrl() local
403 dctx=(BIO_ENC_CTX *)dbio->ptr; in ber_ctrl()
404 memcpy(&(dctx->cipher),&(ctx->cipher),sizeof(ctx->cipher)); in ber_ctrl()
/external/openssl/include/openssl/
Dhmac.h102 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);