block.h (419B)
1 #ifndef BLOCK_H_1e491544 2 #define BLOCK_H_1e491544 3 4 #include <stdlib.h> 5 #include <string.h> 6 #include <stdio.h> 7 #include <errno.h> 8 #include "ba.h" 9 10 int encrypt_ecb(ba *plaintext, ba *key, ba **ciphertext, uint16_t block_size, 11 int (* encrypt) (ba *, ba *, ba **)); 12 13 int decrypt_ecb(ba *ciphertext, ba *key, ba **plaintext, uint16_t block_size, 14 int (* decrypt) (ba *, ba *, ba **)); 15 16 #endif