PIVX Core  5.6.99
P2P Digital Currency
Namespaces | Macros | Functions
noteencryption.cpp File Reference
#include "sapling/noteencryption.h"
#include "sapling/prf.h"
#include "sapling/sapling_util.h"
#include <librustzcash.h>
#include <sodium.h>
#include <stdexcept>
Include dependency graph for noteencryption.cpp:

Go to the source code of this file.

Namespaces

 libzcash
 

Macros

#define NOTEENCRYPTION_CIPHER_KEYSIZE   32
 

Functions

void clamp_curve25519 (unsigned char key[crypto_scalarmult_SCALARBYTES])
 
void PRF_ock (unsigned char K[NOTEENCRYPTION_CIPHER_KEYSIZE], const uint256 &ovk, const uint256 &cv, const uint256 &cm, const uint256 &epk)
 
void KDF_Sapling (unsigned char K[NOTEENCRYPTION_CIPHER_KEYSIZE], const uint256 &dhsecret, const uint256 &epk)
 
void KDF (unsigned char K[NOTEENCRYPTION_CIPHER_KEYSIZE], const uint256 &dhsecret, const uint256 &epk, const uint256 &pk_enc, const uint256 &hSig, unsigned char nonce)
 
Optional< SaplingEncPlaintext > libzcash::AttemptSaplingEncDecryption (const SaplingEncCiphertext &ciphertext, const uint256 &ivk, const uint256 &epk)
 
Optional< SaplingEncPlaintext > libzcash::AttemptSaplingEncDecryption (const SaplingEncCiphertext &ciphertext, const uint256 &epk, const uint256 &esk, const uint256 &pk_d)
 
Optional< SaplingOutPlaintext > libzcash::AttemptSaplingOutDecryption (const SaplingOutCiphertext &ciphertext, const uint256 &ovk, const uint256 &cv, const uint256 &cm, const uint256 &epk)
 

Macro Definition Documentation

◆ NOTEENCRYPTION_CIPHER_KEYSIZE

#define NOTEENCRYPTION_CIPHER_KEYSIZE   32

Definition at line 16 of file noteencryption.cpp.

Function Documentation

◆ clamp_curve25519()

void clamp_curve25519 ( unsigned char  key[crypto_scalarmult_SCALARBYTES])

Definition at line 18 of file noteencryption.cpp.

◆ KDF()

void KDF ( unsigned char  K[NOTEENCRYPTION_CIPHER_KEYSIZE],
const uint256 dhsecret,
const uint256 epk,
const uint256 pk_enc,
const uint256 hSig,
unsigned char  nonce 
)

Definition at line 77 of file noteencryption.cpp.

Here is the call graph for this function:

◆ KDF_Sapling()

void KDF_Sapling ( unsigned char  K[NOTEENCRYPTION_CIPHER_KEYSIZE],
const uint256 dhsecret,
const uint256 epk 
)

Definition at line 53 of file noteencryption.cpp.

Here is the call graph for this function:

◆ PRF_ock()

void PRF_ock ( unsigned char  K[NOTEENCRYPTION_CIPHER_KEYSIZE],
const uint256 ovk,
const uint256 cv,
const uint256 cm,
const uint256 epk 
)

Definition at line 25 of file noteencryption.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: