Ethereum  PoC-8
The C++ Implementation of Ethereum
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)
 

Function Documentation

◆ alt_bn128_G1_add()

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

Definition at line 171 of file LibSnark.cpp.

◆ alt_bn128_G1_mul()

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

Definition at line 187 of file LibSnark.cpp.

◆ alt_bn128_pairing_product()

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

Definition at line 131 of file LibSnark.cpp.

◆ 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.

Definition at line 355 of file Common.cpp.