Lines Matching defs:hmac
5 * and give a general interface for private keys and hmac
40 { LDNS_SIGN_HMACMD5, "hmac-md5.sig-alg.reg.int" },
41 { LDNS_SIGN_HMACSHA1, "hmac-sha1" },
42 { LDNS_SIGN_HMACSHA256, "hmac-sha256" },
300 unsigned char *hmac;
464 hmac = ldns_key_new_frm_fp_hmac_l(fp, line_nr, &hmac_size);
465 if (!hmac) {
470 ldns_key_set_hmac_key(k, hmac);
832 unsigned char *hmac;
885 hmac = LDNS_XMALLOC(unsigned char, size);
886 if(!hmac) {
891 if (RAND_bytes(hmac, (int) size) != 1) {
892 LDNS_FREE(hmac);
899 memcpy(&hmac[offset], &i, sizeof(i));
904 memcpy(&hmac[offset], &i, size - offset);
907 ldns_key_set_hmac_key(k, hmac);
1032 ldns_key_set_hmac_key(ldns_key *k, unsigned char *hmac)
1034 k->_key.hmac.key = hmac;
1040 k->_key.hmac.size = hmac_size;
1152 if (k->_key.hmac.key) {
1153 return k->_key.hmac.key;
1162 if (k->_key.hmac.size) {
1163 return k->_key.hmac.size;
1577 unsigned char* hmac;
1587 hmac = ldns_key_hmac_key(key);
1588 LDNS_FREE(hmac);