Lines Matching defs:hkey
78 dst_hmacmd5_key_t *hkey = key->keydata.hmacmd5;
83 isc_hmacmd5_init(hmacmd5ctx, hkey->key, HMAC_LEN);
187 dst_hmacmd5_key_t *hkey = key->keydata.hmacmd5;
188 memset(hkey, 0, sizeof(dst_hmacmd5_key_t));
189 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacmd5_key_t));
195 dst_hmacmd5_key_t *hkey;
200 hkey = key->keydata.hmacmd5;
205 isc_buffer_putmem(data, hkey->key, bytes);
212 dst_hmacmd5_key_t *hkey;
221 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacmd5_key_t));
222 if (hkey == NULL)
225 memset(hkey->key, 0, sizeof(hkey->key));
230 isc_md5_final(&md5ctx, hkey->key);
233 memmove(hkey->key, r.base, r.length);
238 key->keydata.hmacmd5 = hkey;
246 dst_hmacmd5_key_t *hkey;
254 hkey = key->keydata.hmacmd5;
258 priv.elements[cnt++].data = hkey->key;
346 dst_hmacsha1_key_t *hkey = key->keydata.hmacsha1;
351 isc_hmacsha1_init(hmacsha1ctx, hkey->key, ISC_SHA1_DIGESTLENGTH);
455 dst_hmacsha1_key_t *hkey = key->keydata.hmacsha1;
456 memset(hkey, 0, sizeof(dst_hmacsha1_key_t));
457 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha1_key_t));
463 dst_hmacsha1_key_t *hkey;
468 hkey = key->keydata.hmacsha1;
473 isc_buffer_putmem(data, hkey->key, bytes);
480 dst_hmacsha1_key_t *hkey;
489 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha1_key_t));
490 if (hkey == NULL)
493 memset(hkey->key, 0, sizeof(hkey->key));
498 isc_sha1_final(&sha1ctx, hkey->key);
501 memmove(hkey->key, r.base, r.length);
506 key->keydata.hmacsha1 = hkey;
514 dst_hmacsha1_key_t *hkey;
522 hkey = key->keydata.hmacsha1;
526 priv.elements[cnt++].data = hkey->key;
615 dst_hmacsha224_key_t *hkey = key->keydata.hmacsha224;
620 isc_hmacsha224_init(hmacsha224ctx, hkey->key, ISC_SHA224_DIGESTLENGTH);
724 dst_hmacsha224_key_t *hkey = key->keydata.hmacsha224;
725 memset(hkey, 0, sizeof(dst_hmacsha224_key_t));
726 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha224_key_t));
732 dst_hmacsha224_key_t *hkey;
737 hkey = key->keydata.hmacsha224;
742 isc_buffer_putmem(data, hkey->key, bytes);
749 dst_hmacsha224_key_t *hkey;
758 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha224_key_t));
759 if (hkey == NULL)
762 memset(hkey->key, 0, sizeof(hkey->key));
767 isc_sha224_final(hkey->key, &sha224ctx);
770 memmove(hkey->key, r.base, r.length);
775 key->keydata.hmacsha224 = hkey;
783 dst_hmacsha224_key_t *hkey;
791 hkey = key->keydata.hmacsha224;
795 priv.elements[cnt++].data = hkey->key;
884 dst_hmacsha256_key_t *hkey = key->keydata.hmacsha256;
889 isc_hmacsha256_init(hmacsha256ctx, hkey->key, ISC_SHA256_DIGESTLENGTH);
993 dst_hmacsha256_key_t *hkey = key->keydata.hmacsha256;
994 memset(hkey, 0, sizeof(dst_hmacsha256_key_t));
995 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha256_key_t));
1001 dst_hmacsha256_key_t *hkey;
1006 hkey = key->keydata.hmacsha256;
1011 isc_buffer_putmem(data, hkey->key, bytes);
1018 dst_hmacsha256_key_t *hkey;
1027 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha256_key_t));
1028 if (hkey == NULL)
1031 memset(hkey->key, 0, sizeof(hkey->key));
1036 isc_sha256_final(hkey->key, &sha256ctx);
1039 memmove(hkey->key, r.base, r.length);
1044 key->keydata.hmacsha256 = hkey;
1052 dst_hmacsha256_key_t *hkey;
1060 hkey = key->keydata.hmacsha256;
1064 priv.elements[cnt++].data = hkey->key;
1153 dst_hmacsha384_key_t *hkey = key->keydata.hmacsha384;
1158 isc_hmacsha384_init(hmacsha384ctx, hkey->key, ISC_SHA384_DIGESTLENGTH);
1262 dst_hmacsha384_key_t *hkey = key->keydata.hmacsha384;
1263 memset(hkey, 0, sizeof(dst_hmacsha384_key_t));
1264 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha384_key_t));
1270 dst_hmacsha384_key_t *hkey;
1275 hkey = key->keydata.hmacsha384;
1280 isc_buffer_putmem(data, hkey->key, bytes);
1287 dst_hmacsha384_key_t *hkey;
1296 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha384_key_t));
1297 if (hkey == NULL)
1300 memset(hkey->key, 0, sizeof(hkey->key));
1305 isc_sha384_final(hkey->key, &sha384ctx);
1308 memmove(hkey->key, r.base, r.length);
1313 key->keydata.hmacsha384 = hkey;
1321 dst_hmacsha384_key_t *hkey;
1329 hkey = key->keydata.hmacsha384;
1333 priv.elements[cnt++].data = hkey->key;
1422 dst_hmacsha512_key_t *hkey = key->keydata.hmacsha512;
1427 isc_hmacsha512_init(hmacsha512ctx, hkey->key, ISC_SHA512_DIGESTLENGTH);
1531 dst_hmacsha512_key_t *hkey = key->keydata.hmacsha512;
1532 memset(hkey, 0, sizeof(dst_hmacsha512_key_t));
1533 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha512_key_t));
1539 dst_hmacsha512_key_t *hkey;
1544 hkey = key->keydata.hmacsha512;
1549 isc_buffer_putmem(data, hkey->key, bytes);
1556 dst_hmacsha512_key_t *hkey;
1565 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha512_key_t));
1566 if (hkey == NULL)
1569 memset(hkey->key, 0, sizeof(hkey->key));
1574 isc_sha512_final(hkey->key, &sha512ctx);
1577 memmove(hkey->key, r.base, r.length);
1582 key->keydata.hmacsha512 = hkey;
1590 dst_hmacsha512_key_t *hkey;
1598 hkey = key->keydata.hmacsha512;
1602 priv.elements[cnt++].data = hkey->key;