Lines Matching defs:dst
105 struct hmac_data_st *dst;
110 dst = hmac_new(src->provctx);
111 if (dst == NULL)
114 ctx = dst->ctx;
115 *dst = *src;
116 dst->ctx = ctx;
117 dst->key = NULL;
118 memset(&dst->digest, 0, sizeof(dst->digest));
120 if (!HMAC_CTX_copy(dst->ctx, src->ctx)
121 || !ossl_prov_digest_copy(&dst->digest, &src->digest)) {
122 hmac_free(dst);
127 dst->key = OPENSSL_secure_malloc(src->keylen > 0 ? src->keylen : 1);
128 if (dst->key == NULL) {
129 hmac_free(dst);
132 memcpy(dst->key, src->key, src->keylen);
134 return dst;