#include <Vigenere.hh>
template<uint8_t N>
class Vigenere< N >
Vigenere auto-key cipher.
- Parameters
-
[in] | N | number of bytes in key. |
References
http://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher
Definition at line 34 of file Vigenere.hh.
Construct Vigenere crypto with key generated from given seed. An autokey is generated when key length (n) is less than max key length (N).
- Parameters
-
[in] | seed | for random key generation. |
[in] | n | length of random key. |
Definition at line 43 of file Vigenere.hh.
Construct Vigenere crypto with given password. An autokey is generated when the password length is less than max key length (N).
- Parameters
-
Definition at line 59 of file Vigenere.hh.
Decrypt the given character.
- Parameters
-
[in] | c | character to decode. |
- Returns
- decoded character.
Definition at line 120 of file Vigenere.hh.
template<uint8_t N>
void Vigenere< N >::decrypt |
( |
void * |
buf, |
|
|
size_t |
n |
|
) |
| |
|
inline |
Decrypt the given buffer.
- Parameters
-
[in] | buf | buffer pointer. |
[in] | n | number of bytes. |
Definition at line 133 of file Vigenere.hh.
template<uint8_t N>
void Vigenere< N >::decrypt |
( |
void * |
dest, |
|
|
const void * |
src, |
|
|
size_t |
n |
|
) |
| |
|
inline |
Decrypt the given src buffer to the dest buffer.
- Parameters
-
[in] | dest | buffer pointer. |
[in] | src | buffer pointer. |
[in] | n | number of bytes. |
Definition at line 145 of file Vigenere.hh.
Encrypt the given character.
- Parameters
-
[in] | c | character to encode. |
- Returns
- encoded character.
Definition at line 83 of file Vigenere.hh.
template<uint8_t N>
void Vigenere< N >::encrypt |
( |
void * |
buf, |
|
|
size_t |
n |
|
) |
| |
|
inline |
Encrypt the given buffer.
- Parameters
-
[in] | buf | buffer pointer. |
[in] | n | number of bytes. |
Definition at line 96 of file Vigenere.hh.
template<uint8_t N>
void Vigenere< N >::encrypt |
( |
void * |
dest, |
|
|
const void * |
src, |
|
|
size_t |
n |
|
) |
| |
|
inline |
Encrypt the given src buffer to the dest buffer.
- Parameters
-
[in] | dest | buffer pointer. |
[in] | src | buffer pointer. |
[in] | n | number of bytes. |
Definition at line 108 of file Vigenere.hh.
Restart the crypto. Generate a new auto-key.
Definition at line 72 of file Vigenere.hh.
The documentation for this class was generated from the following file: