Lines Matching refs:hkey

72 	dst_hmacmd5_key_t *hkey = key->keydata.hmacmd5;
77 isc_hmacmd5_init(hmacmd5ctx, hkey->key, ISC_MD5_BLOCK_LENGTH);
183 dst_hmacmd5_key_t *hkey = key->keydata.hmacmd5;
185 isc_safe_memwipe(hkey, sizeof(*hkey));
186 isc_mem_put(key->mctx, hkey, sizeof(*hkey));
192 dst_hmacmd5_key_t *hkey;
197 hkey = key->keydata.hmacmd5;
202 isc_buffer_putmem(data, hkey->key, bytes);
209 dst_hmacmd5_key_t *hkey;
218 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacmd5_key_t));
219 if (hkey == NULL)
222 memset(hkey->key, 0, sizeof(hkey->key));
227 isc_md5_final(&md5ctx, hkey->key);
230 memmove(hkey->key, r.base, r.length);
235 key->keydata.hmacmd5 = hkey;
245 dst_hmacmd5_key_t *hkey;
256 hkey = key->keydata.hmacmd5;
260 priv.elements[cnt++].data = hkey->key;
380 dst_hmacsha1_key_t *hkey = key->keydata.hmacsha1;
385 isc_hmacsha1_init(hmacsha1ctx, hkey->key, ISC_SHA1_BLOCK_LENGTH);
491 dst_hmacsha1_key_t *hkey = key->keydata.hmacsha1;
493 isc_safe_memwipe(hkey, sizeof(*hkey));
494 isc_mem_put(key->mctx, hkey, sizeof(*hkey));
500 dst_hmacsha1_key_t *hkey;
505 hkey = key->keydata.hmacsha1;
510 isc_buffer_putmem(data, hkey->key, bytes);
517 dst_hmacsha1_key_t *hkey;
526 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha1_key_t));
527 if (hkey == NULL)
530 memset(hkey->key, 0, sizeof(hkey->key));
535 isc_sha1_final(&sha1ctx, hkey->key);
538 memmove(hkey->key, r.base, r.length);
543 key->keydata.hmacsha1 = hkey;
553 dst_hmacsha1_key_t *hkey;
564 hkey = key->keydata.hmacsha1;
568 priv.elements[cnt++].data = hkey->key;
671 dst_hmacsha224_key_t *hkey = key->keydata.hmacsha224;
676 isc_hmacsha224_init(hmacsha224ctx, hkey->key, ISC_SHA224_BLOCK_LENGTH);
784 dst_hmacsha224_key_t *hkey = key->keydata.hmacsha224;
786 isc_safe_memwipe(hkey, sizeof(*hkey));
787 isc_mem_put(key->mctx, hkey, sizeof(*hkey));
793 dst_hmacsha224_key_t *hkey;
798 hkey = key->keydata.hmacsha224;
803 isc_buffer_putmem(data, hkey->key, bytes);
810 dst_hmacsha224_key_t *hkey;
819 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha224_key_t));
820 if (hkey == NULL)
823 memset(hkey->key, 0, sizeof(hkey->key));
828 isc_sha224_final(hkey->key, &sha224ctx);
831 memmove(hkey->key, r.base, r.length);
836 key->keydata.hmacsha224 = hkey;
846 dst_hmacsha224_key_t *hkey;
857 hkey = key->keydata.hmacsha224;
861 priv.elements[cnt++].data = hkey->key;
958 dst_hmacsha256_key_t *hkey = key->keydata.hmacsha256;
963 isc_hmacsha256_init(hmacsha256ctx, hkey->key, ISC_SHA256_BLOCK_LENGTH);
1071 dst_hmacsha256_key_t *hkey = key->keydata.hmacsha256;
1073 isc_safe_memwipe(hkey, sizeof(*hkey));
1074 isc_mem_put(key->mctx, hkey, sizeof(*hkey));
1080 dst_hmacsha256_key_t *hkey;
1085 hkey = key->keydata.hmacsha256;
1090 isc_buffer_putmem(data, hkey->key, bytes);
1097 dst_hmacsha256_key_t *hkey;
1106 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha256_key_t));
1107 if (hkey == NULL)
1110 memset(hkey->key, 0, sizeof(hkey->key));
1115 isc_sha256_final(hkey->key, &sha256ctx);
1118 memmove(hkey->key, r.base, r.length);
1123 key->keydata.hmacsha256 = hkey;
1133 dst_hmacsha256_key_t *hkey;
1144 hkey = key->keydata.hmacsha256;
1148 priv.elements[cnt++].data = hkey->key;
1245 dst_hmacsha384_key_t *hkey = key->keydata.hmacsha384;
1250 isc_hmacsha384_init(hmacsha384ctx, hkey->key, ISC_SHA384_BLOCK_LENGTH);
1358 dst_hmacsha384_key_t *hkey = key->keydata.hmacsha384;
1360 isc_safe_memwipe(hkey, sizeof(*hkey));
1361 isc_mem_put(key->mctx, hkey, sizeof(*hkey));
1367 dst_hmacsha384_key_t *hkey;
1372 hkey = key->keydata.hmacsha384;
1377 isc_buffer_putmem(data, hkey->key, bytes);
1384 dst_hmacsha384_key_t *hkey;
1393 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha384_key_t));
1394 if (hkey == NULL)
1397 memset(hkey->key, 0, sizeof(hkey->key));
1402 isc_sha384_final(hkey->key, &sha384ctx);
1405 memmove(hkey->key, r.base, r.length);
1410 key->keydata.hmacsha384 = hkey;
1420 dst_hmacsha384_key_t *hkey;
1431 hkey = key->keydata.hmacsha384;
1435 priv.elements[cnt++].data = hkey->key;
1532 dst_hmacsha512_key_t *hkey = key->keydata.hmacsha512;
1537 isc_hmacsha512_init(hmacsha512ctx, hkey->key, ISC_SHA512_BLOCK_LENGTH);
1645 dst_hmacsha512_key_t *hkey = key->keydata.hmacsha512;
1647 isc_safe_memwipe(hkey, sizeof(*hkey));
1648 isc_mem_put(key->mctx, hkey, sizeof(*hkey));
1654 dst_hmacsha512_key_t *hkey;
1659 hkey = key->keydata.hmacsha512;
1664 isc_buffer_putmem(data, hkey->key, bytes);
1671 dst_hmacsha512_key_t *hkey;
1680 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha512_key_t));
1681 if (hkey == NULL)
1684 memset(hkey->key, 0, sizeof(hkey->key));
1689 isc_sha512_final(hkey->key, &sha512ctx);
1692 memmove(hkey->key, r.base, r.length);
1697 key->keydata.hmacsha512 = hkey;
1707 dst_hmacsha512_key_t *hkey;
1718 hkey = key->keydata.hmacsha512;
1722 priv.elements[cnt++].data = hkey->key;