Lines Matching refs:dst
234 struct kmac_data_st *dst; in kmac_dup() local
239 dst = kmac_new(src->provctx); in kmac_dup()
240 if (dst == NULL) in kmac_dup()
243 if (!EVP_MD_CTX_copy(dst->ctx, src->ctx) in kmac_dup()
244 || !ossl_prov_digest_copy(&dst->digest, &src->digest)) { in kmac_dup()
245 kmac_free(dst); in kmac_dup()
249 dst->internal = src->internal; in kmac_dup()
251 dst->out_len = src->out_len; in kmac_dup()
252 dst->key_len = src->key_len; in kmac_dup()
253 dst->custom_len = src->custom_len; in kmac_dup()
254 dst->xof_mode = src->xof_mode; in kmac_dup()
255 memcpy(dst->key, src->key, src->key_len); in kmac_dup()
256 memcpy(dst->custom, src->custom, dst->custom_len); in kmac_dup()
257 OSSL_FIPS_IND_COPY(dst, src) in kmac_dup()
259 return dst; in kmac_dup()