PKCS5 padding implementation.
More...
#include <pkcs5Padding.hpp>
|
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) |
|
PKCS5 padding implementation.
Padding used in PKCS5 public-key cryptography standard.
- Since
- 0.1
- Author
- Vincent Lachenal
◆ length()
static std::size_t anch::crypto::PKCS5Padding::length |
( |
uint8_t * | data, |
|
|
std::size_t | len ) |
|
static |
Unpad data
- Parameters
-
data | the data to unpad |
len | the block length |
- Returns
- the data length
◆ pad()
static void anch::crypto::PKCS5Padding::pad |
( |
uint8_t * | data, |
|
|
std::size_t | len, |
|
|
std::size_t | expLen ) |
|
static |
Pad data
- Parameters
-
data | the data to pad |
len | the data length |
expLen | the expected length |
The documentation for this class was generated from the following file: