msgtrans.ee2e.crypto

Undocumented in source.

Members

Classes

ownkey_s
class ownkey_s
Undocumented in source.
peerkey_s
class peerkey_s
Undocumented in source.

Functions

aes_decrypt
bool aes_decrypt(ubyte* ciphertext, int ciphertext_len, ubyte* tag, ubyte* key, ubyte* iv, ubyte* plaintext)
Undocumented in source. Be warned that the author may not have intended to support it.
aes_encrypt
bool aes_encrypt(ubyte* plaintext, int plaintext_len, ubyte* key, ubyte* iv, ubyte* ciphertext, ubyte* tag)
Undocumented in source. Be warned that the author may not have intended to support it.
bytes_xor
bool bytes_xor(ubyte[] data1, int data1_len, ubyte[] data2, int data2_len, ubyte[] m_out)
Undocumented in source. Be warned that the author may not have intended to support it.
calc_ecdh_shared_key
bool calc_ecdh_shared_key(ubyte[CRYPTO_EC_PUB_KEY_LEN] ecdh1_public_key, ubyte[CRYPTO_EC_PRIV_KEY_LEN] ecdh1_private_key, ubyte[CRYPTO_EC_PUB_KEY_LEN] ecdh2_public_key, ubyte[CRYPTO_ECDH_SHARED_KEY_LEN] ecdh_shared_key)
Undocumented in source. Be warned that the author may not have intended to support it.
ecdsa_sign
bool ecdsa_sign(ubyte[CRYPTO_EC_PRIV_KEY_LEN] ec_private_key, ubyte* hash, ubyte hash_len, ubyte[CRYPTO_ECDSA_SIG_LEN] sign)
Undocumented in source. Be warned that the author may not have intended to support it.
generate_ecdh_keys
bool generate_ecdh_keys(ubyte[CRYPTO_EC_PUB_KEY_LEN] ecdh_public_key, ubyte[CRYPTO_EC_PRIV_KEY_LEN] ecdh_private_key)
Undocumented in source. Be warned that the author may not have intended to support it.
generate_hkdf_bytes
bool generate_hkdf_bytes(ubyte[CRYPTO_ECDH_SHARED_KEY_LEN] ecdh_shared_key, ubyte[CRYPTO_SALT_LEN] salt, ubyte[] info, int info_len, ubyte[] m_out)
Undocumented in source. Be warned that the author may not have intended to support it.
hmac_sha256
bool hmac_sha256(ubyte[] hmac, ubyte[] key, uint key_len, ubyte[] data, uint data_len)
Undocumented in source. Be warned that the author may not have intended to support it.
rand_salt
bool rand_salt(ubyte[] salt, int bytes)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

CRYPTO_AES_IV_LEN
enum CRYPTO_AES_IV_LEN;
Undocumented in source.
CRYPTO_AES_KEY_LEN
enum CRYPTO_AES_KEY_LEN;
Undocumented in source.
CRYPTO_AES_TAG_LEN
enum CRYPTO_AES_TAG_LEN;
Undocumented in source.
CRYPTO_CURVE_NID
enum CRYPTO_CURVE_NID;
Undocumented in source.
CRYPTO_ECDH_SHARED_KEY_LEN
enum CRYPTO_ECDH_SHARED_KEY_LEN;
Undocumented in source.
CRYPTO_ECDSA_SIG_LEN
enum CRYPTO_ECDSA_SIG_LEN;
Undocumented in source.
CRYPTO_ECDSA_SIG_r_LEN
enum CRYPTO_ECDSA_SIG_r_LEN;
Undocumented in source.
CRYPTO_ECDSA_SIG_s_LEN
enum CRYPTO_ECDSA_SIG_s_LEN;
Undocumented in source.
CRYPTO_EC_PRIV_KEY_LEN
enum CRYPTO_EC_PRIV_KEY_LEN;
Undocumented in source.
CRYPTO_EC_PUB_KEY_LEN
enum CRYPTO_EC_PUB_KEY_LEN;
Undocumented in source.
CRYPTO_HMAC_SHA256
enum CRYPTO_HMAC_SHA256;
Undocumented in source.
CRYPTO_KEY_INFO
enum CRYPTO_KEY_INFO;
Undocumented in source.
CRYPTO_SALT_LEN
enum CRYPTO_SALT_LEN;
Undocumented in source.
CRYPTO_VERSION
enum CRYPTO_VERSION;
Undocumented in source.

Meta