mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 08:34:20 +01:00
external: new subdirectory for all external libraries and submodules.
You will want to 'make distclean' after this. I also removed libsecp; we use the one in in libwally anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
c6976cd947
commit
f42f34b82d
33
external/libwally-core/src/hmac.h
vendored
Normal file
33
external/libwally-core/src/hmac.h
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef LIBWALLY_HMAC_H
|
||||
#define LIBWALLY_HMAC_H
|
||||
|
||||
struct sha256;
|
||||
struct sha512;
|
||||
|
||||
/**
|
||||
* hmac_sha256_internal - Compute an HMAC using SHA-256
|
||||
*
|
||||
* @sha: Destination for the resulting HMAC.
|
||||
* @key: The key for the hash
|
||||
* @key_len: The length of @key in bytes.
|
||||
* @msg: The message to hash
|
||||
* @msg_len: The length of @msg in bytes.
|
||||
*/
|
||||
void hmac_sha256_internal(struct sha256 *sha,
|
||||
const unsigned char *key, size_t key_len,
|
||||
const unsigned char *msg, size_t msg_len);
|
||||
|
||||
/**
|
||||
* hmac_sha512 - Compute an HMAC using SHA-512
|
||||
*
|
||||
* @sha: Destination for the resulting HMAC.
|
||||
* @key: The key for the hash
|
||||
* @key_len: The length of @key in bytes.
|
||||
* @msg: The message to hash
|
||||
* @msg_len: The length of @msg in bytes.
|
||||
*/
|
||||
void hmac_sha512(struct sha512 *sha,
|
||||
const unsigned char *key, size_t key_len,
|
||||
const unsigned char *msg, size_t msg_len);
|
||||
|
||||
#endif /* LIBWALLY_HMAC_H */
|
||||
Reference in New Issue
Block a user