TARAXA
dev::crypto Namespace Reference

Namespaces

 ecdh
 
 ecies
 

Classes

class  Nonce
 Generator for non-repeating nonce material. The Nonce class should only be used when a non-repeating nonce is required and, in its current form, not recommended for signatures. This is primarily because the key-material for signatures is encrypted on disk whereas the seed for Nonce is not. Thus, Nonce's primary intended use at this time is for networking where the key is also stored in plaintext. More...
 
class  Secp256k1PP
 

Functions

 DEV_SIMPLE_EXCEPTION (InvalidState)
 
h256 kdf (Secret const &_priv, h256 const &_hash)
 Key derivation. More...
 
 DEV_SIMPLE_EXCEPTION (CryptoException)
 Rare malfunction of cryptographic functions. More...
 
std::pair< bool, bytesalt_bn128_pairing_product (bytesConstRef _in)
 
std::pair< bool, bytesalt_bn128_G1_add (bytesConstRef _in)
 
std::pair< bool, bytesalt_bn128_G1_mul (bytesConstRef _in)
 

Variables

static const unsigned c_eciesOverhead = 113
 Amount of bytes added when encrypting with encryptECIES. More...
 

Function Documentation

◆ alt_bn128_G1_add()

pair< bool, bytes > dev::crypto::alt_bn128_G1_add ( dev::bytesConstRef  _in)

◆ alt_bn128_G1_mul()

pair< bool, bytes > dev::crypto::alt_bn128_G1_mul ( dev::bytesConstRef  _in)

◆ alt_bn128_pairing_product()

pair< bool, bytes > dev::crypto::alt_bn128_pairing_product ( dev::bytesConstRef  _in)

◆ DEV_SIMPLE_EXCEPTION() [1/2]

dev::crypto::DEV_SIMPLE_EXCEPTION ( CryptoException  )

Rare malfunction of cryptographic functions.

◆ DEV_SIMPLE_EXCEPTION() [2/2]

dev::crypto::DEV_SIMPLE_EXCEPTION ( InvalidState  )

◆ kdf()

h256 dev::crypto::kdf ( Secret const &  _priv,
h256 const &  _hash 
)

Key derivation.

Variable Documentation

◆ c_eciesOverhead

const unsigned dev::crypto::c_eciesOverhead = 113
static

Amount of bytes added when encrypting with encryptECIES.