-
Notifications
You must be signed in to change notification settings - Fork 56
MTY_CryptoHash
chrisd1100 edited this page Aug 25, 2022
·
1 revision
Run a hash algorithm on a buffer with optional HMAC key.
void MTY_CryptoHash(
MTY_Algorithm algo,
const void * input,
size_t inputSize,
const void * key,
size_t keySize,
void * output,
size_t outputSize
);
algo
(MTY_Algorithm
)
Hash algorithm to use.
input
(const void *
)
Input buffer.
inputSize
(size_t
)
Size in bytes of input
.
key
(const void *
)
HMAC key to use. May be NULL
, in which case HMAC is not used.
keySize
(size_t
)
Size in bytes of key
, or 0 if key
is NULL
.
output
(void *
)
Output buffer.
outputSize
(size_t
)
Size in bytes of output
.