Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::crypto::Secp256k1PP Class Reference

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

Static Public Member Functions

static Secp256k1PPget ()
 

Detailed Description

CryptoPP secp256k1 algorithms.

Todo:
Collect ECIES methods into class.

Definition at line 39 of file CryptoPP.h.

Member Function Documentation

◆ decrypt()

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

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

Definition at line 208 of file CryptoPP.cpp.

◆ decryptECIES() [1/2]

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

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

Definition at line 122 of file CryptoPP.cpp.

◆ decryptECIES() [2/2]

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

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

Definition at line 127 of file CryptoPP.cpp.

◆ encrypt()

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

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

Definition at line 177 of file CryptoPP.cpp.

◆ encryptECIES() [1/2]

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

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

Definition at line 80 of file CryptoPP.cpp.

◆ encryptECIES() [2/2]

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

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

Definition at line 85 of file CryptoPP.cpp.

◆ get()

Secp256k1PP * Secp256k1PP::get ( )
static

Definition at line 74 of file CryptoPP.cpp.


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