Lines Matching refs:src
80 static int ossl_drbg_hmac_dup(PROV_DRBG_HMAC *dst, const PROV_DRBG_HMAC *src) { in ossl_drbg_hmac_dup() argument
81 if (src->ctx != NULL) { in ossl_drbg_hmac_dup()
82 dst->ctx = EVP_MAC_CTX_dup(src->ctx); in ossl_drbg_hmac_dup()
86 if (!ossl_prov_digest_copy(&dst->digest, &src->digest)) in ossl_drbg_hmac_dup()
88 memcpy(dst->K, src->K, sizeof(dst->K)); in ossl_drbg_hmac_dup()
89 memcpy(dst->V, src->V, sizeof(dst->V)); in ossl_drbg_hmac_dup()
90 dst->blocklen = src->blocklen; in ossl_drbg_hmac_dup()
96 const KDF_HMAC_DRBG *src = (const KDF_HMAC_DRBG *)vctx; in hmac_drbg_kdf_dup() local
99 dst = hmac_drbg_kdf_new(src->provctx); in hmac_drbg_kdf_dup()
101 if (!ossl_drbg_hmac_dup(&dst->base, &src->base) in hmac_drbg_kdf_dup()
102 || !ossl_prov_memdup(src->entropy, src->entropylen, in hmac_drbg_kdf_dup()
104 || !ossl_prov_memdup(src->nonce, src->noncelen, in hmac_drbg_kdf_dup()
107 dst->init = src->init; in hmac_drbg_kdf_dup()