| 596 | |
| 597 | |
| 598 | static void XorWithIv(uint8_t* buf, const uint8_t* Iv) |
| 599 | { |
| 600 | uint8_t i; |
| 601 | for (i = 0; i < AES_BLOCKLEN; ++i) // The block in AES is always 128bit no matter the key size |
| 602 | { |
| 603 | buf[i] ^= Iv[i]; |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | void AES_CBC_encrypt_buffer(struct AES_ctx *ctx, uint8_t* buf, size_t length) |
| 608 | { |
no outgoing calls
no test coverage detected