Lines Matching refs:dst
109 struct hmac_data_st *dst; in hmac_dup() local
114 dst = hmac_new(src->provctx); in hmac_dup()
115 if (dst == NULL) in hmac_dup()
118 ctx = dst->ctx; in hmac_dup()
119 *dst = *src; in hmac_dup()
120 dst->ctx = ctx; in hmac_dup()
121 dst->key = NULL; in hmac_dup()
122 memset(&dst->digest, 0, sizeof(dst->digest)); in hmac_dup()
124 if (!HMAC_CTX_copy(dst->ctx, src->ctx) in hmac_dup()
125 || !ossl_prov_digest_copy(&dst->digest, &src->digest)) { in hmac_dup()
126 hmac_free(dst); in hmac_dup()
131 dst->key = OPENSSL_secure_malloc(src->keylen > 0 ? src->keylen : 1); in hmac_dup()
132 if (dst->key == NULL) { in hmac_dup()
133 hmac_free(dst); in hmac_dup()
136 memcpy(dst->key, src->key, src->keylen); in hmac_dup()
138 return dst; in hmac_dup()