#include <symmetric_encryption.h>
|
| ko | init (const keys::priv_t &sk, const keys::pub_t &pub_other) |
| |
| ko | encrypt (const vector< unsigned char > &src, vector< unsigned char > &dest) |
| |
| ko | decrypt (const unsigned char *p, size_t sz, vector< unsigned char > &dest) |
| |
| ko | decrypt (const vector< unsigned char > &ciphertext, vector< unsigned char > &clear) |
| |
| | symmetric_encryption () |
| |
| ko | init (PrivateKey priv_a, PublicKey pub_b) |
| |
| int | get_key_size () |
| |
| pair< ko, byte[]> | encrypt (byte[] plaintext) |
| |
| pair< ko, byte[]> | decrypt (byte[] encrypted, int offset, int length) |
| |
| pair< ko, byte[]> | decrypt (byte[] encrypted) |
| |
|
| static int | encmsg_ratio (const size_t plaintext_sz) |
| |
| static size_t | encmsg_max_sz (const size_t plaintext_sz) |
| |
| static boolean | test () |
| |
| static boolean | test (String plaintext) |
| |
| static boolean | test (String plaintext_string, PrivateKey priv_a, PublicKey pub_b, PrivateKey priv_b, PublicKey pub_a) |
| |
|
| static final SecureRandom | random = new SecureRandom() |
| |
◆ byte
◆ keys
◆ symmetric_encryption()
| us.gov.crypto.symmetric_encryption.symmetric_encryption |
( |
| ) |
|
|
inline |
◆ decrypt() [1/4]
| pair<ko, byte[]> us.gov.crypto.symmetric_encryption.decrypt |
( |
byte[] |
encrypted | ) |
|
|
inline |
◆ decrypt() [2/4]
| pair<ko, byte[]> us.gov.crypto.symmetric_encryption.decrypt |
( |
byte[] |
encrypted, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
|
inline |
◆ decrypt() [3/4]
| ko us::gov::crypto::symmetric_encryption::decrypt |
( |
const unsigned char * |
p, |
|
|
size_t |
sz, |
|
|
vector< unsigned char > & |
dest |
|
) |
| |
◆ decrypt() [4/4]
| ko us::gov::crypto::symmetric_encryption::decrypt |
( |
const vector< unsigned char > & |
ciphertext, |
|
|
vector< unsigned char > & |
clear |
|
) |
| |
◆ encmsg_max_sz()
| static size_t us::gov::crypto::symmetric_encryption::encmsg_max_sz |
( |
const size_t |
plaintext_sz | ) |
|
|
static |
◆ encmsg_ratio()
| static int us::gov::crypto::symmetric_encryption::encmsg_ratio |
( |
const size_t |
plaintext_sz | ) |
|
|
static |
◆ encrypt() [1/2]
| pair<ko, byte[]> us.gov.crypto.symmetric_encryption.encrypt |
( |
byte[] |
plaintext | ) |
|
|
inline |
◆ encrypt() [2/2]
| ko us::gov::crypto::symmetric_encryption::encrypt |
( |
const vector< unsigned char > & |
src, |
|
|
vector< unsigned char > & |
dest |
|
) |
| |
◆ get_key_size()
| int us.gov.crypto.symmetric_encryption.get_key_size |
( |
| ) |
|
|
inline |
◆ init() [1/2]
◆ init() [2/2]
| ko us.gov.crypto.symmetric_encryption.init |
( |
PrivateKey |
priv_a, |
|
|
PublicKey |
pub_b |
|
) |
| |
|
inline |
◆ test() [1/3]
| static boolean us.gov.crypto.symmetric_encryption.test |
( |
| ) |
|
|
inlinestatic |
◆ test() [2/3]
| static boolean us.gov.crypto.symmetric_encryption.test |
( |
String |
plaintext | ) |
|
|
inlinestatic |
◆ test() [3/3]
| static boolean us.gov.crypto.symmetric_encryption.test |
( |
String |
plaintext_string, |
|
|
PrivateKey |
priv_a, |
|
|
PublicKey |
pub_b, |
|
|
PrivateKey |
priv_b, |
|
|
PublicKey |
pub_a |
|
) |
| |
|
inlinestatic |
◆ dec [1/2]
| GCM<AES>::Decryption us::gov::crypto::symmetric_encryption::dec |
◆ dec [2/2]
| Cipher us.gov.crypto.symmetric_encryption.dec |
|
package |
◆ enc [1/2]
| GCM<AES>::Encryption us::gov::crypto::symmetric_encryption::enc |
◆ enc [2/2]
| Cipher us.gov.crypto.symmetric_encryption.enc |
|
package |
◆ iv
◆ iv_
| byte us::gov::crypto::symmetric_encryption::iv_[iv_size] |
◆ iv_size [1/2]
| constexpr size_t us::gov::crypto::symmetric_encryption::iv_size = 12 |
|
staticconstexpr |
◆ iv_size [2/2]
| final int us.gov.crypto.symmetric_encryption.iv_size = 12 |
|
static |
◆ key
| byte [] us.gov.crypto.symmetric_encryption.key |
|
package |
◆ key_
◆ key_size [1/2]
| constexpr size_t us::gov::crypto::symmetric_encryption::key_size = 16 |
|
staticconstexpr |
◆ key_size [2/2]
| final int us.gov.crypto.symmetric_encryption.key_size = 16 |
|
static |
◆ KO_40751
| final ko us.gov.crypto.symmetric_encryption.KO_40751 =new ko("KO 40751 Unable to decrypt.") |
|
static |
◆ KO_44302
| final ko us.gov.crypto.symmetric_encryption.KO_44302 =new ko("KO 40751 Unable to encrypt.") |
|
static |
◆ KO_89601
| final ko us.gov.crypto.symmetric_encryption.KO_89601 =new ko("KO 89601 Invalid length.") |
|
static |
◆ prng_
| AutoSeededRandomPool us::gov::crypto::symmetric_encryption::prng_ |
◆ random
| final SecureRandom us.gov.crypto.symmetric_encryption.random = new SecureRandom() |
|
staticpackage |
◆ tag_size
| constexpr int us::gov::crypto::symmetric_encryption::tag_size = 16 |
|
staticconstexpr |
The documentation for this class was generated from the following files: