Home
last modified time | relevance | path

Searched refs:dctx (Results 1 – 11 of 11) 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/hmac/
Dhmac.c167 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx) in HMAC_CTX_copy() argument
169 if (!EVP_MD_CTX_copy(&dctx->i_ctx, &sctx->i_ctx)) in HMAC_CTX_copy()
171 if (!EVP_MD_CTX_copy(&dctx->o_ctx, &sctx->o_ctx)) in HMAC_CTX_copy()
173 if (!EVP_MD_CTX_copy(&dctx->md_ctx, &sctx->md_ctx)) in HMAC_CTX_copy()
175 memcpy(dctx->key, sctx->key, HMAC_MAX_MD_CBLOCK); in HMAC_CTX_copy()
176 dctx->key_length = sctx->key_length; in HMAC_CTX_copy()
177 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 HMAC_CTX_copy(&dctx->ctx, &sctx->ctx); in pkey_hmac_copy()
106 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.c111 RSA_PKEY_CTX *dctx, *sctx; in pkey_rsa_copy() local
115 dctx = dst->data; in pkey_rsa_copy()
116 dctx->nbits = sctx->nbits; in pkey_rsa_copy()
119 dctx->pub_exp = BN_dup(sctx->pub_exp); in pkey_rsa_copy()
120 if (!dctx->pub_exp) in pkey_rsa_copy()
123 dctx->pad_mode = sctx->pad_mode; in pkey_rsa_copy()
124 dctx->md = sctx->md; in pkey_rsa_copy()
/external/openssl/crypto/evp/
Dbio_md.c170 EVP_MD_CTX *ctx,*dctx,**pctx; in md_ctrl() local
222 dctx=dbio->ptr; in md_ctrl()
223 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);