Lines Matching refs:dst
80 static int ossl_drbg_hmac_dup(PROV_DRBG_HMAC *dst, const PROV_DRBG_HMAC *src) { in ossl_drbg_hmac_dup() argument
82 dst->ctx = EVP_MAC_CTX_dup(src->ctx); in ossl_drbg_hmac_dup()
83 if (dst->ctx == NULL) 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()
97 KDF_HMAC_DRBG *dst; in hmac_drbg_kdf_dup() local
99 dst = hmac_drbg_kdf_new(src->provctx); in hmac_drbg_kdf_dup()
100 if (dst != NULL) { in hmac_drbg_kdf_dup()
101 if (!ossl_drbg_hmac_dup(&dst->base, &src->base) in hmac_drbg_kdf_dup()
103 &dst->entropy , &dst->entropylen) in hmac_drbg_kdf_dup()
105 &dst->nonce, &dst->noncelen)) in hmac_drbg_kdf_dup()
107 dst->init = src->init; in hmac_drbg_kdf_dup()
109 return dst; in hmac_drbg_kdf_dup()
112 hmac_drbg_kdf_free(dst); in hmac_drbg_kdf_dup()