AnCH Framework  0.1
Another C++ Hack Framework
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Static Public Member Functions | List of all members
anch::crypto::ISO7816_4Padding Class Reference

ISO/IEC 7816-4 padding implementation. More...

#include <iso7816_4Padding.hpp>

Collaboration diagram for anch::crypto::ISO7816_4Padding:

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)
 

Detailed Description

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.

Since
0.1
Author
Vincent Lachenal

Member Function Documentation

std::size_t ISO7816_4Padding::length ( uint8_t *  data,
std::size_t  len 
)
static

Unpad data

Parameters
datathe data to unpad
lenthe block length
Returns
the data length
void ISO7816_4Padding::pad ( uint8_t *  data,
std::size_t  len,
std::size_t  expLen 
)
static

Pad data

Parameters
datathe data to pad
lenthe data length
expLenthe expected length

The documentation for this class was generated from the following files: