return r;
}
-void esp_aes_encrypt( esp_aes_context *ctx,
- const unsigned char input[16],
- unsigned char output[16] )
-{
- esp_internal_aes_encrypt(ctx, input, output);
-}
-
/*
* AES-ECB block decryption
*/
return r;
}
-void esp_aes_decrypt( esp_aes_context *ctx,
- const unsigned char input[16],
- unsigned char output[16] )
-{
- esp_internal_aes_decrypt(ctx, input, output);
-}
-
/*
* AES-ECB block encryption/decryption
*/
*/
int esp_internal_aes_encrypt( esp_aes_context *ctx, const unsigned char input[16], unsigned char output[16] );
-/** Deprecated, see esp_aes_internal_encrypt */
-void esp_aes_encrypt( esp_aes_context *ctx, const unsigned char input[16], unsigned char output[16] ) __attribute__((deprecated));
-
/**
* \brief Internal AES block decryption function
* (Only exposed to allow overriding it,
*/
int esp_internal_aes_decrypt( esp_aes_context *ctx, const unsigned char input[16], unsigned char output[16] );
-/** Deprecated, see esp_aes_internal_decrypt */
-void esp_aes_decrypt( esp_aes_context *ctx, const unsigned char input[16], unsigned char output[16] ) __attribute__((deprecated));
-
/** AES-XTS buffer encryption/decryption */
int esp_aes_crypt_xts( esp_aes_xts_context *ctx, int mode, size_t length, const unsigned char data_unit[16], const unsigned char *input, unsigned char *output );