shishi_des_cbc_mac3
Api function
Usage
#include <shishi.h>
int shishi_des_cbc_mac(Shishi * handle, const char key[8], const char iv[8], const char * in, size_t inlen, char * out[8]);
Arguments
Shishi * handle
|
shishi handle as allocated by |
|---|---|
const char key[8]
|
input character array with key to use. |
const char iv[8]
|
input character array with initialization vector to use, can be NULL. |
const char * in
|
input character array of data to hash. |
size_t inlen
|
length of input character array of data to hash. |
char * out[8]
|
newly allocated character array with keyed hash of data. |
Overview
Computed keyed checksum of data using DES-CBC-MAC. The out buffer must be deallocated by the caller.
Return value
Returns SHISHI_OK iff successful.
Releases
10 releases since Debian 4.0 (Etch); the text changed 5 times.