| 784 | AES_ctx ctx; |
| 785 | |
| 786 | std::vector<uint8_t> pad(const std::vector<uint8_t>& data) { |
| 787 | size_t pad_len = 16 - (data.size() % 16); |
| 788 | std::vector<uint8_t> padded = data; |
| 789 | padded.insert(padded.end(), pad_len, static_cast<uint8_t>(pad_len)); |
| 790 | return padded; |
| 791 | } |
| 792 | |
| 793 | std::vector<uint8_t> unpad(const std::vector<uint8_t>& data) { |
| 794 | if (data.empty()) return data; |
nothing calls this directly
no outgoing calls
no test coverage detected