/external/openssl/crypto/dsa/ |
D | dsa_pmeth.c | 83 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/ |
D | ec_pmeth.c | 79 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/ |
D | dh_pmeth.c | 82 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/ |
D | hmac.c | 164 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx) in HMAC_CTX_copy() argument 166 if (!EVP_MD_CTX_copy(&dctx->i_ctx, &sctx->i_ctx)) in HMAC_CTX_copy() 168 if (!EVP_MD_CTX_copy(&dctx->o_ctx, &sctx->o_ctx)) in HMAC_CTX_copy() 170 if (!EVP_MD_CTX_copy(&dctx->md_ctx, &sctx->md_ctx)) in HMAC_CTX_copy() 172 memcpy(dctx->key, sctx->key, HMAC_MAX_MD_CBLOCK); in HMAC_CTX_copy() 173 dctx->key_length = sctx->key_length; in HMAC_CTX_copy() 174 dctx->md = sctx->md; in HMAC_CTX_copy()
|
D | hm_pmeth.c | 96 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()
|
D | hmac.h | 102 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
|
/external/openssl/crypto/rsa/ |
D | rsa_pmeth.c | 111 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/ |
D | bio_md.c | 170 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()
|
D | bio_enc.c | 289 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/ |
D | bio_ber.c | 331 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/ |
D | hmac.h | 102 int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
|