• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/bind9-45.100/bind9/lib/dns/

Lines Matching refs:hkey

73 	dst_hmacmd5_key_t *hkey = key->keydata.hmacmd5;
78 isc_hmacmd5_init(hmacmd5ctx, hkey->key, ISC_SHA1_BLOCK_LENGTH);
184 dst_hmacmd5_key_t *hkey = key->keydata.hmacmd5;
186 memset(hkey, 0, sizeof(dst_hmacmd5_key_t));
187 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacmd5_key_t));
193 dst_hmacmd5_key_t *hkey;
198 hkey = key->keydata.hmacmd5;
203 isc_buffer_putmem(data, hkey->key, bytes);
210 dst_hmacmd5_key_t *hkey;
219 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacmd5_key_t));
220 if (hkey == NULL)
223 memset(hkey->key, 0, sizeof(hkey->key));
228 isc_md5_final(&md5ctx, hkey->key);
232 memcpy(hkey->key, r.base, r.length);
237 key->keydata.hmacmd5 = hkey;
245 dst_hmacmd5_key_t *hkey;
253 hkey = key->keydata.hmacmd5;
257 priv.elements[cnt++].data = hkey->key;
349 dst_hmacsha1_key_t *hkey = key->keydata.hmacsha1;
354 isc_hmacsha1_init(hmacsha1ctx, hkey->key, ISC_SHA1_BLOCK_LENGTH);
460 dst_hmacsha1_key_t *hkey = key->keydata.hmacsha1;
462 memset(hkey, 0, sizeof(dst_hmacsha1_key_t));
463 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha1_key_t));
469 dst_hmacsha1_key_t *hkey;
474 hkey = key->keydata.hmacsha1;
479 isc_buffer_putmem(data, hkey->key, bytes);
486 dst_hmacsha1_key_t *hkey;
495 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha1_key_t));
496 if (hkey == NULL)
499 memset(hkey->key, 0, sizeof(hkey->key));
504 isc_sha1_final(&sha1ctx, hkey->key);
508 memcpy(hkey->key, r.base, r.length);
513 key->keydata.hmacsha1 = hkey;
521 dst_hmacsha1_key_t *hkey;
529 hkey = key->keydata.hmacsha1;
533 priv.elements[cnt++].data = hkey->key;
625 dst_hmacsha224_key_t *hkey = key->keydata.hmacsha224;
630 isc_hmacsha224_init(hmacsha224ctx, hkey->key, ISC_SHA224_BLOCK_LENGTH);
738 dst_hmacsha224_key_t *hkey = key->keydata.hmacsha224;
740 memset(hkey, 0, sizeof(dst_hmacsha224_key_t));
741 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha224_key_t));
747 dst_hmacsha224_key_t *hkey;
752 hkey = key->keydata.hmacsha224;
757 isc_buffer_putmem(data, hkey->key, bytes);
764 dst_hmacsha224_key_t *hkey;
773 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha224_key_t));
774 if (hkey == NULL)
777 memset(hkey->key, 0, sizeof(hkey->key));
782 isc_sha224_final(hkey->key, &sha224ctx);
786 memcpy(hkey->key, r.base, r.length);
791 key->keydata.hmacsha224 = hkey;
799 dst_hmacsha224_key_t *hkey;
807 hkey = key->keydata.hmacsha224;
811 priv.elements[cnt++].data = hkey->key;
903 dst_hmacsha256_key_t *hkey = key->keydata.hmacsha256;
908 isc_hmacsha256_init(hmacsha256ctx, hkey->key, ISC_SHA256_BLOCK_LENGTH);
1016 dst_hmacsha256_key_t *hkey = key->keydata.hmacsha256;
1018 memset(hkey, 0, sizeof(dst_hmacsha256_key_t));
1019 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha256_key_t));
1025 dst_hmacsha256_key_t *hkey;
1030 hkey = key->keydata.hmacsha256;
1035 isc_buffer_putmem(data, hkey->key, bytes);
1042 dst_hmacsha256_key_t *hkey;
1051 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha256_key_t));
1052 if (hkey == NULL)
1055 memset(hkey->key, 0, sizeof(hkey->key));
1060 isc_sha256_final(hkey->key, &sha256ctx);
1064 memcpy(hkey->key, r.base, r.length);
1069 key->keydata.hmacsha256 = hkey;
1077 dst_hmacsha256_key_t *hkey;
1085 hkey = key->keydata.hmacsha256;
1089 priv.elements[cnt++].data = hkey->key;
1181 dst_hmacsha384_key_t *hkey = key->keydata.hmacsha384;
1186 isc_hmacsha384_init(hmacsha384ctx, hkey->key, ISC_SHA384_BLOCK_LENGTH);
1294 dst_hmacsha384_key_t *hkey = key->keydata.hmacsha384;
1296 memset(hkey, 0, sizeof(dst_hmacsha384_key_t));
1297 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha384_key_t));
1303 dst_hmacsha384_key_t *hkey;
1308 hkey = key->keydata.hmacsha384;
1313 isc_buffer_putmem(data, hkey->key, bytes);
1320 dst_hmacsha384_key_t *hkey;
1329 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha384_key_t));
1330 if (hkey == NULL)
1333 memset(hkey->key, 0, sizeof(hkey->key));
1338 isc_sha384_final(hkey->key, &sha384ctx);
1342 memcpy(hkey->key, r.base, r.length);
1347 key->keydata.hmacsha384 = hkey;
1355 dst_hmacsha384_key_t *hkey;
1363 hkey = key->keydata.hmacsha384;
1367 priv.elements[cnt++].data = hkey->key;
1459 dst_hmacsha512_key_t *hkey = key->keydata.hmacsha512;
1464 isc_hmacsha512_init(hmacsha512ctx, hkey->key, ISC_SHA512_BLOCK_LENGTH);
1572 dst_hmacsha512_key_t *hkey = key->keydata.hmacsha512;
1574 memset(hkey, 0, sizeof(dst_hmacsha512_key_t));
1575 isc_mem_put(key->mctx, hkey, sizeof(dst_hmacsha512_key_t));
1581 dst_hmacsha512_key_t *hkey;
1586 hkey = key->keydata.hmacsha512;
1591 isc_buffer_putmem(data, hkey->key, bytes);
1598 dst_hmacsha512_key_t *hkey;
1607 hkey = isc_mem_get(key->mctx, sizeof(dst_hmacsha512_key_t));
1608 if (hkey == NULL)
1611 memset(hkey->key, 0, sizeof(hkey->key));
1616 isc_sha512_final(hkey->key, &sha512ctx);
1620 memcpy(hkey->key, r.base, r.length);
1625 key->keydata.hmacsha512 = hkey;
1633 dst_hmacsha512_key_t *hkey;
1641 hkey = key->keydata.hmacsha512;
1645 priv.elements[cnt++].data = hkey->key;