#include "sapling/noteencryption.h"
#include "sapling/prf.h"
#include "sapling/sapling_util.h"
#include <librustzcash.h>
#include <sodium.h>
#include <stdexcept>
Go to the source code of this file.
|
| 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) |
| |
◆ NOTEENCRYPTION_CIPHER_KEYSIZE
| #define NOTEENCRYPTION_CIPHER_KEYSIZE 32 |
◆ clamp_curve25519()
| void clamp_curve25519 |
( |
unsigned char |
key[crypto_scalarmult_SCALARBYTES] | ) |
|
◆ 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 |
|
) |
| |
◆ KDF_Sapling()
| void KDF_Sapling |
( |
unsigned char |
K[NOTEENCRYPTION_CIPHER_KEYSIZE], |
|
|
const uint256 & |
dhsecret, |
|
|
const uint256 & |
epk |
|
) |
| |
◆ PRF_ock()
| void PRF_ock |
( |
unsigned char |
K[NOTEENCRYPTION_CIPHER_KEYSIZE], |
|
|
const uint256 & |
ovk, |
|
|
const uint256 & |
cv, |
|
|
const uint256 & |
cm, |
|
|
const uint256 & |
epk |
|
) |
| |