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::ANSIX923 Class Reference

ANSI X.923 padding implementation. More...

#include <ansiX923.hpp>

Collaboration diagram for anch::crypto::ANSIX923:

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

ANSI X.923 padding implementation.

This padding method add fill 0x00 to block. The last byte is equals to the number of padded bytes.

Since
0.1
Author
Vincent Lachenal

Member Function Documentation

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

Unpad data

Parameters
datathe data to unpad
lenthe block length
Returns
the data length
void ANSIX923::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: