![]() |
AnCH Framework
0.1
Another C++ Hack Framework
|
ANSI X.923 padding implementation. More...
#include <ansiX923.hpp>
Static Public Member Functions | |
static void | pad (uint8_t *data, std::size_t len, std::size_t expLen) |
static std::size_t | length (uint8_t *data, std::size_t len) |
ANSI X.923 padding implementation.
This padding method add fill 0x00 to block. The last byte is equals to the number of padded bytes.
|
static |
Unpad data
data | the data to unpad |
len | the block length |
|
static |
Pad data
data | the data to pad |
len | the data length |
expLen | the expected length |