Lines Matching refs:dst
105 struct hmac_data_st *dst; in hmac_dup() local
110 dst = hmac_new(src->provctx); in hmac_dup()
111 if (dst == NULL) in hmac_dup()
114 ctx = dst->ctx; in hmac_dup()
115 *dst = *src; in hmac_dup()
116 dst->ctx = ctx; in hmac_dup()
117 dst->key = NULL; in hmac_dup()
119 if (!HMAC_CTX_copy(dst->ctx, src->ctx) in hmac_dup()
120 || !ossl_prov_digest_copy(&dst->digest, &src->digest)) { in hmac_dup()
121 hmac_free(dst); in hmac_dup()
126 dst->key = OPENSSL_secure_malloc(src->keylen > 0 ? src->keylen : 1); in hmac_dup()
127 if (dst->key == NULL) { in hmac_dup()
128 hmac_free(dst); in hmac_dup()
131 memcpy(dst->key, src->key, src->keylen); in hmac_dup()
133 return dst; in hmac_dup()