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

Method pad

payload.cpp:786–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected