|
Wirepas SDK
|
|
Go to the documentation of this file.
30 #define AES_BLOCKLEN 16 //Block length in bytes AES is 128b block only
32 #if defined(AES256) && (AES256 == 1)
34 #define AES_keyExpSize 240
35 #elif defined(AES192) && (AES192 == 1)
37 #define AES_keyExpSize 208
39 #define AES_KEYLEN 16 // Key length in bytes
40 #define AES_keyExpSize 176
46 #if (defined(CBC) && (CBC == 1)) || (defined(CTR) && (CTR == 1))
52 #if (defined(CBC) && (CBC == 1)) || (defined(CTR) && (CTR == 1))
57 #if defined(ECB) && (ECB == 1)
64 #endif // #if defined(ECB) && (ECB == !)
67 #if defined(CBC) && (CBC == 1)
75 #endif // #if defined(CBC) && (CBC == 1)
78 #if defined(CTR) && (CTR == 1)
87 #endif // #if defined(CTR) && (CTR == 1)
void AES_CTR_xcrypt_buffer(struct AES_ctx *ctx, uint8_t *buf, uint32_t length)
void AES_ECB_encrypt(struct AES_ctx *ctx, uint8_t *buf)
void AES_ECB_decrypt(struct AES_ctx *ctx, uint8_t *buf)
void AES_CBC_encrypt_buffer(struct AES_ctx *ctx, uint8_t *buf, uint32_t length)
void AES_ctx_set_iv(struct AES_ctx *ctx, const uint8_t *iv)
void AES_init_ctx(struct AES_ctx *ctx, const uint8_t *key)
void AES_init_ctx_iv(struct AES_ctx *ctx, const uint8_t *key, const uint8_t *iv)
void AES_CBC_decrypt_buffer(struct AES_ctx *ctx, uint8_t *buf, uint32_t length)