MCPcopy Create free account
hub / github.com/S3N4T0R-0X0/PixelCode-Attack / XorWithIv

Function XorWithIv

payload.cpp:598–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596
597
598static 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
607void AES_CBC_encrypt_buffer(struct AES_ctx *ctx, uint8_t* buf, size_t length)
608{

Callers 2

AES_CBC_encrypt_bufferFunction · 0.85
AES_CBC_decrypt_bufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected