]> git.cryptolib.org Git - avr-crypto-lib.git/blob - shacal2_enc.h
4084c0f218a08a86ee6fda12223cccff9679cc07
[avr-crypto-lib.git] / shacal2_enc.h
1 #ifndef SHACAL2_ENC_H_
2 #define SHACAL2_ENC_H_
3
4 #include <stdint.h>
5 #include "sha256.h"
6
7 #define SHACAL2_BLOCKSIZE  SHA256_HASH_BITS
8 #define SHACAL2_BLOCKSIZE_B ((SHACAL2_BLOCKSIZE+7)/8)
9 #define SHACAL2_KEYSIZE SHA256_BLOCK_BITS
10 #define SHACAL2_KEYSIZE_B ((SHACAL2_KEYSIZE+7)/8)
11
12 void shacal2_enc(void* buffer, void* key, uint16_t keysize_b);
13
14
15 #endif /*SHACAL2_ENC_H_*/