Skip to content

Instantly share code, notes, and snippets.

@eterekhin
eterekhin / aes_cbc_ctr.cpp
Created October 21, 2024 07:34
AES CBC and AES CTR decryption
#include <iostream>
#include "include/cryptopp/aes.h"
#include "include/cryptopp/ccm.h"
#include "include/cryptopp/filters.h"
constexpr uint32_t size_of_aes_block = 16;
uint32_t get_rounds_number(const std::vector<CryptoPP::byte>& encoded_data)
{