/usr/include/bind9/isc
NameSizeModeActions
aes.h10150644editdlrm
align.h5690644editdlrm
app.h71390644editdlrm
assertions.h22270644editdlrm
astack.h11370644editdlrm
atomic.h30820644editdlrm
backtrace.h38940644editdlrm
barrier.h10520644editdlrm
base32.h44530644editdlrm
base64.h28650644editdlrm
bind9.h8290644editdlrm
buffer.h306250644editdlrm
bufferlist.h14530644editdlrm
cmocka.h13830644editdlrm
commandline.h17110644editdlrm
condition.h19140644editdlrm
counter.h19220644editdlrm
crc64.h9980644editdlrm
deprecated.h6620644editdlrm
dir.h15450644editdlrm
endian.h48680644editdlrm
errno.h6590644editdlrm
errno2result.h9010644editdlrm
error.h14340644editdlrm
event.h34420644editdlrm
eventclass.h14420644editdlrm
file.h116690644editdlrm
formatcheck.h9400644editdlrm
fsaccess.h74530644editdlrm
fuzz.h5930644editdlrm
hash.h16490644editdlrm
heap.h52630644editdlrm
hex.h28050644editdlrm
hmac.h39700644editdlrm
hp.h45880644editdlrm
ht.h44850644editdlrm
httpd.h22910644editdlrm
interfaceiter.h31410644editdlrm
iterated_hash.h9330644editdlrm
lang.h6860644editdlrm
lex.h100040644editdlrm
lfsr.h29550644editdlrm
lib.h11550644editdlrm
likely.h8680644editdlrm
list.h80850644editdlrm
log.h264970644editdlrm
magic.h9990644editdlrm
managers.h7760644editdlrm
md.h57600644editdlrm
mem.h180860644editdlrm
meminfo.h7100644editdlrm
mutex.h41780644editdlrm
mutexatomic.h97900644editdlrm
mutexblock.h11620644editdlrm
net.h85640644editdlrm
netaddr.h47860644editdlrm
netdb.h8600644editdlrm
netmgr.h157320644editdlrm
netscope.h9660644editdlrm
nonce.h7430644editdlrm
offset.h6870644editdlrm
once.h7670644editdlrm
os.h7650644editdlrm
parseint.h15410644editdlrm
platform.h18590644editdlrm
pool.h34910644editdlrm
portset.h32940644editdlrm
print.h6800644editdlrm
queue.h13370644editdlrm
quota.h35600644editdlrm
radix.h70190644editdlrm
random.h14820644editdlrm
ratelimiter.h34920644editdlrm
refcount.h51030644editdlrm
regex.h7670644editdlrm
region.h22340644editdlrm
resource.h28600644editdlrm
result.h55800644editdlrm
resultclass.h15970644editdlrm
rwlock.h25350644editdlrm
safe.h11450644editdlrm
serial.h13670644editdlrm
siphash.h9160644editdlrm
sockaddr.h62750644editdlrm
socket.h241200644editdlrm
stat.h8030644editdlrm
stats.h66890644editdlrm
stdatomic.h91160644editdlrm
stdio.h17280644editdlrm
stdtime.h13920644editdlrm
strerr.h5750644editdlrm
string.h8510644editdlrm
symtab.h43250644editdlrm
syslog.h8430644editdlrm
task.h171260644editdlrm
taskpool.h32810644editdlrm
thread.h19080644editdlrm
time.h111060644editdlrm
timer.h79610644editdlrm
tm.h8940644editdlrm
types.h58540644editdlrm
url.h26810644editdlrm
utf8.h9280644editdlrm
util.h142910644editdlrm
version.h4990644editdlrm
Edit: /usr/include/bind9/isc/hmac.h (3970B)
/* * Copyright (C) Internet Systems Consortium, Inc. ("ISC") * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at https://mozilla.org/MPL/2.0/. * * See the COPYRIGHT file distributed with this work for additional * information regarding copyright ownership. */ /*! * \file isc/hmac.h * \brief This is the header for for message authentication code. */ #pragma once #include #include #include #include #include typedef void isc_hmac_t; /** * isc_hmac: * @type: the digest type * @key: the key * @keylen: the length of the key * @buf: data to hash * @len: length of the data to hash * @digest: the output buffer * @digestlen: the length of the data written to @digest * * This function computes the message authentication code using a digest type * @type with key @key which is @keylen bytes long from data in @buf which is * @len bytes long, and places the output into @digest, which must have space * for the hash function output (use ISC_MAX_MD_SIZE if unsure). If the * @digestlen parameter is not NULL then the number of bytes of data written * (i.e. the length of the digest) will be written to the @digestlen. */ isc_result_t isc_hmac(const isc_md_type_t *type, const void *key, const int keylen, const unsigned char *buf, const size_t len, unsigned char *digest, unsigned int *digestlen); /** * isc_hmac_new: * * This function allocates, initializes and returns HMAC context. */ isc_hmac_t * isc_hmac_new(void); /** * isc_hmac_free: * @md: HMAC context * * This function cleans up HMAC context and frees up the space allocated to it. */ void isc_hmac_free(isc_hmac_t *hmac); /** * isc_hmac_init: * @md: HMAC context * @key: HMAC key * @keylen: HMAC key length * @type: digest type * * This function sets up HMAC context to use a hash function of @type and key * @key which is @keylen bytes long. */ isc_result_t isc_hmac_init(isc_hmac_t *hmac, const void *key, size_t keylen, const isc_md_type_t *type); /** * isc_hmac_reset: * @hmac: HMAC context * * This function resets the HMAC context. This can be used to reuse an already * existing context. */ isc_result_t isc_hmac_reset(isc_hmac_t *hmac); /** * isc_hmac_update: * @hmac: HMAC context * @buf: data to hash * @len: length of the data to hash * * This function can be called repeatedly with chunks of the message @buf to be * authenticated which is @len bytes long. */ isc_result_t isc_hmac_update(isc_hmac_t *hmac, const unsigned char *buf, const size_t len); /** * isc_hmac_final: * @hmac: HMAC context * @digest: the output buffer * @digestlen: the length of the data written to @digest * * This function retrieves the message authentication code from @hmac and places * it in @digest, which must have space for the hash function output. If the * @digestlen parameter is not NULL then the number of bytes of data written * (i.e. the length of the digest) will be written to the @digestlen. After * calling this function no additional calls to isc_hmac_update() can be made. */ isc_result_t isc_hmac_final(isc_hmac_t *hmac, unsigned char *digest, unsigned int *digestlen); /** * isc_hmac_md_type: * @hmac: HMAC context * * This function return the isc_md_type_t previously set for the supplied * HMAC context or NULL if no isc_md_type_t has been set. */ const isc_md_type_t * isc_hmac_get_md_type(isc_hmac_t *hmac); /** * isc_hmac_get_size: * * This function return the size of the message digest when passed an isc_hmac_t * structure, i.e. the size of the hash. */ size_t isc_hmac_get_size(isc_hmac_t *hmac); /** * isc_hmac_get_block_size: * * This function return the block size of the message digest when passed an * isc_hmac_t structure. */ int isc_hmac_get_block_size(isc_hmac_t *hmac);