Cipher key formed by hash algorithm.
More...
#include <secure.h>
|
void | assign (const char *key, size_t size, const uint8_t *salt, unsigned rounds) |
|
void | assign (const char *key, size_t size=0) |
|
void | b64 (const char *string) |
|
secure::string | b64 (void) |
|
void | clear (void) |
|
size_t | get (uint8_t *key, uint8_t *ivout=NULL) |
|
size_t | iosize (void) const |
|
secure::keybytes | iv () |
|
| Key (const char *cipher, const char *digest) |
|
| Key (const char *cipher, const char *digest, const char *text, size_t size=0, const uint8_t *salt=NULL, unsigned rounds=1) |
|
| Key (const char *cipher, const uint8_t *iv, size_t ivsize) |
|
| Key (const char *cipher, secure::keybytes &iv) |
|
secure::keybytes | key () |
|
| operator bool () const |
|
bool | operator! () const |
|
bool | operator!= (const Key &other) const |
|
Key & | operator= (const char *pass) |
|
bool | operator== (const Key &other) const |
|
void | set (const char *cipher, const char *digest) |
|
bool | set (const char *cipher, const secure::keybytes &iv) |
|
void | set (const char *cipher, const uint8_t *iv, size_t ivsize) |
|
bool | set (const secure::keybytes &key) |
|
void | set (const uint8_t *key, size_t size) |
|
size_t | size (void) const |
|
|
static void | options (const uint8_t *salt=NULL, unsigned rounds=1) |
|
|
| Key (const char *ciper) |
|
void | set (const char *cipher) |
|
Cipher key formed by hash algorithm.
This can generate both a key and iv table based on the algorithms used and required. Normally it is used from a pass-phrase, though any block of data may be supplied.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
- Examples
- cipher.cpp.
Definition at line 301 of file secure.h.
◆ iosize()
size_t ucommon::Cipher::Key::iosize |
( |
void | | ) |
const |
|
inline |
◆ iv()
secure::keybytes ucommon::Cipher::Key::iv |
( |
| ) |
|
|
inline |
◆ key()
secure::keybytes ucommon::Cipher::Key::key |
( |
| ) |
|
|
inline |
◆ operator bool()
ucommon::Cipher::Key::operator bool |
( |
| ) |
const |
|
inline |
◆ operator!()
bool ucommon::Cipher::Key::operator! |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool ucommon::Cipher::Key::operator!= |
( |
const Key & | other | ) |
const |
|
inline |
◆ operator=()
Key & ucommon::Cipher::Key::operator= |
( |
const char * | pass | ) |
|
|
inline |
◆ size()
size_t ucommon::Cipher::Key::size |
( |
void | | ) |
const |
|
inline |
◆ Cipher
◆ algoid
int ucommon::Cipher::Key::algoid |
◆ algotype
const void* ucommon::Cipher::Key::algotype |
◆ blksize
size_t ucommon::Cipher::Key::blksize |
|
protected |
◆ hashid
int ucommon::Cipher::Key::hashid |
◆ hashtype
const void* ucommon::Cipher::Key::hashtype |
◆ ivbuf
uint8_t ucommon::Cipher::Key::ivbuf[512/8] |
|
protected |
◆ keybuf
uint8_t ucommon::Cipher::Key::keybuf[512/8] |
|
protected |
◆ keysize
size_t ucommon::Cipher::Key::keysize |
|
protected |
◆ modeid
int ucommon::Cipher::Key::modeid |
|
protected |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/ucommon-7.0.0-build/ucommon-7.0.0/inc/ucommon/secure.h