Lines Matching +full:key +full:- +full:release

41  * HMAC is initialized with a key and an underlying hash function; it
42 * then fills a "key context". That context contains the processed
43 * key.
45 * With the key context, a HMAC context can be initialized to process
46 * the input bytes and obtain the MAC output. The key context is not
52 * - hash output size does not exceed 64 bytes;
53 * - hash internal state size does not exceed 64 bytes;
54 * - internal block length is a power of 2 between 16 and 256 bytes.
58 * \brief HMAC key context.
60 * The HMAC key context is initialised with a hash function implementation
61 * and a secret key. Contents are opaque (callers should not access them
64 * allocation, so there is no release function.
74 * \brief HMAC key context initialisation.
76 * Initialise the key context with the provided key, using the hash function
77 * identified by `digest_vtable`. This supports arbitrary key lengths.
79 * \param kc HMAC key context to initialise.
81 * \param key pointer to the HMAC secret key.
82 * \param key_len HMAC secret key length (in bytes).
85 const br_hash_class *digest_vtable, const void *key, size_t key_len);
91 * hash function used for this HMAC key context.
93 * \param kc HMAC key context.
99 return kc->dig_vtable; in br_hmac_key_get_digest()
107 * is caller-allocated and has no release function since it does not
121 * Initialise a HMAC context with a key context. The key context is
122 * unmodified. Relevant data from the key context is immediately copied;
123 * the key context can thus be independently reused, modified or released
133 * \param kc HMAC key context (already initialised with the key).
144 * MUST NOT be called on a non-initialised HMAC computation context.
157 return ctx->out_len; in br_hmac_size()
172 return hc->dig.vtable; in br_hmac_get_digest()
203 * \brief Constant-time HMAC computation.
216 * The difference `max_len - min_len` MUST be less than 2<sup>30</sup>
220 * hash function uses MD padding (i.e. MD5, SHA-1, SHA-224, SHA-256,
221 * SHA-384 or SHA-512).