![]() |
AnCH Framework
0.1
Another C++ Hack Framework
|
ISO/IEC 7816-4 padding implementation. More...
#include <iso7816_4Padding.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) |
ISO/IEC 7816-4 padding implementation.
Padding used in ISO/IEC 7816-4 standard for identification cards.
Note that this algorithm will always work on plain text encoded in US ASCII.
|
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 |
1.8.11