restore RPiPlay's crypto implementation, now they have fixed the aes-cbc bug.

This commit is contained in:
fduncanh
2021-11-11 19:32:41 -05:00
parent 94f21e2a45
commit 7c79d031a3
5 changed files with 26 additions and 35 deletions

View File

@@ -41,8 +41,7 @@ typedef enum aes_direction_e { AES_DECRYPT, AES_ENCRYPT } aes_direction_t;
typedef struct aes_ctx_s aes_ctx_t;
aes_ctx_t *aes_ctr_encrypt_init(const uint8_t *key, const uint8_t *iv);
aes_ctx_t *aes_ctr_decrypt_init(const uint8_t *key, const uint8_t *iv);
aes_ctx_t *aes_ctr_init(const uint8_t *key, const uint8_t *iv);
void aes_ctr_reset(aes_ctx_t *ctx);
void aes_ctr_encrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len);
void aes_ctr_decrypt(aes_ctx_t *ctx, const uint8_t *in, uint8_t *out, int len);