cryptopals_c

cryptopals crypto challenges solutions in pure c
git clone git://git.superpozycja.net/cryptopals_c
Log | Files | Refs | README

aes.h (524B)


      1 #ifndef AES_H_1e491544
      2 #define AES_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 aes_128_encrypt(ba *plaintext, ba *key, ba **ciphertext);
     11 int aes_128_decrypt(ba *ciphertext, ba *key, ba **plaintext);
     12 
     13 int aes_192_encrypt(ba *plaintext, ba *key, ba **ciphertext);
     14 int aes_192_decrypt(ba *ciphertext, ba *key, ba **plaintext);
     15 
     16 int aes_256_encrypt(ba *plaintext, ba *key, ba **ciphertext);
     17 int aes_256_decrypt(ba *ciphertext, ba *key, ba **plaintext);
     18 
     19 #endif