sdk-aes.h 382 B

1234567891011121314
  1. #ifndef _SDK_AES_H_
  2. #define _SDK_AES_H_
  3. #define AES_BLOCKSIZE 16
  4. void *aes_encrypt_init (const char *key, size_t len);
  5. void aes_encrypt (void *ctx, const char *plain, char *crypt);
  6. void aes_encrypt_deinit (void *ctx);
  7. void *aes_decrypt_init (const char *key, size_t len);
  8. void aes_decrypt (void *ctx, const char *crypt, char *plain);
  9. void aes_decrypt_deinit (void *ctx);
  10. #endif