nrfxlib API 0.1.0
|
Type definitions and APIs for AES-CTR (AES counter mode). More...
Functions | |
void | ocrypto_aes_ctr_encrypt (uint8_t *ct, const uint8_t *pt, size_t pt_len, const uint8_t *key, size_t size, const uint8_t iv[16]) |
void | ocrypto_aes_ctr_decrypt (uint8_t *pt, const uint8_t *ct, size_t ct_len, const uint8_t *key, size_t size, const uint8_t iv[16]) |
Incremental AES-CTR encryption/decryption. | |
This group of functions can be used to incrementally compute the AES-CTR encryption/decryption for a given message. | |
void | ocrypto_aes_ctr_init (ocrypto_aes_ctr_ctx *ctx, const uint8_t *key, size_t size, const uint8_t iv[16]) |
void | ocrypto_aes_ctr_update (ocrypto_aes_ctr_ctx *ctx, uint8_t *ct, const uint8_t *pt, size_t pt_len) |
Type definitions and APIs for AES-CTR (AES counter mode).
AES-CTR (AES counter mode) is an AES mode which effectively turns the block cipher into a stream cipher. The AES block encryption is used on a value which is incremented for each new block. The resulting cipher stream is then xor combined with the plaintext to get the ciphertext. In contrast to AES itself, encryption and decryption operations are identical for AES-CTR.