Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
dev::crypto::Secp256k1PP Class Reference

CryptoPP secp256k1 algorithms. More...

#include <CryptoPP.h>

Public Member Functions

void encrypt (Public const &_k, bytes &io_cipher)
 Encrypts text (replace input). (ECIES w/XOR-SHA1) More...
 
void decrypt (Secret const &_k, bytes &io_text)
 Decrypts text (replace input). (ECIES w/XOR-SHA1) More...
 
void encryptECIES (Public const &_k, bytes &io_cipher)
 Encrypts text (replace input). (ECIES w/AES128-CTR-SHA256) More...
 
void encryptECIES (Public const &_k, bytesConstRef _sharedMacData, bytes &io_cipher)
 Encrypts text (replace input). (ECIES w/AES128-CTR-SHA256) More...
 
bool decryptECIES (Secret const &_k, bytes &io_text)
 Decrypts text (replace input). (ECIES w/AES128-CTR-SHA256) More...
 
bool decryptECIES (Secret const &_k, bytesConstRef _sharedMacData, bytes &io_text)
 Decrypts text (replace input). (ECIES w/AES128-CTR-SHA256) More...
 
bytes eciesKDF (Secret const &_z, bytes _s1, unsigned kdBitLen=256)
 Key derivation function used by encryptECIES and decryptECIES. More...
 

Static Public Member Functions

static Secp256k1PPget ()
 

Private Member Functions

 Secp256k1PP ()=default
 

Detailed Description

CryptoPP secp256k1 algorithms.

Todo:
Collect ECIES methods into class.

Definition at line 39 of file CryptoPP.h.

Constructor & Destructor Documentation

dev::crypto::Secp256k1PP::Secp256k1PP ( )
privatedefault

Member Function Documentation

void Secp256k1PP::decrypt ( Secret const &  _k,
bytes io_text 
)

Decrypts text (replace input). (ECIES w/XOR-SHA1)

Definition at line 233 of file CryptoPP.cpp.

bool Secp256k1PP::decryptECIES ( Secret const &  _k,
bytes io_text 
)

Decrypts text (replace input). (ECIES w/AES128-CTR-SHA256)

Definition at line 157 of file CryptoPP.cpp.

Here is the call graph for this function:

bool Secp256k1PP::decryptECIES ( Secret const &  _k,
bytesConstRef  _sharedMacData,
bytes io_text 
)

Decrypts text (replace input). (ECIES w/AES128-CTR-SHA256)

Definition at line 162 of file CryptoPP.cpp.

Here is the call graph for this function:

bytes Secp256k1PP::eciesKDF ( Secret const &  _z,
bytes  _s1,
unsigned  kdBitLen = 256 
)

Key derivation function used by encryptECIES and decryptECIES.

Definition at line 85 of file CryptoPP.cpp.

Here is the call graph for this function:

void Secp256k1PP::encrypt ( Public const &  _k,
bytes io_cipher 
)

Encrypts text (replace input). (ECIES w/XOR-SHA1)

Definition at line 211 of file CryptoPP.cpp.

void Secp256k1PP::encryptECIES ( Public const &  _k,
bytes io_cipher 
)

Encrypts text (replace input). (ECIES w/AES128-CTR-SHA256)

Definition at line 115 of file CryptoPP.cpp.

Here is the call graph for this function:

void Secp256k1PP::encryptECIES ( Public const &  _k,
bytesConstRef  _sharedMacData,
bytes io_cipher 
)

Encrypts text (replace input). (ECIES w/AES128-CTR-SHA256)

Definition at line 120 of file CryptoPP.cpp.

Here is the call graph for this function:

Secp256k1PP * Secp256k1PP::get ( )
static

Definition at line 79 of file CryptoPP.cpp.


The documentation for this class was generated from the following files: