CCF
Loading...
Searching...
No Matches
Functions | Variables
ccf::sealing Namespace Reference

Functions

crypto::GcmCipher aes_gcm_sealing (std::span< const uint8_t > raw_key, std::span< const uint8_t > plaintext, const std::span< uint8_t > &aad)
 
std::vector< uint8_t > aes_gcm_unsealing (std::span< const uint8_t > raw_key, std::vector< uint8_t > sealed_text, std::span< const uint8_t > aad)
 
std::vector< uint8_t > derive_snp_sealing_key (const ccf::pal::snp::TcbVersionRaw &tcb_version)
 
SealedRecoveryKey get_snp_sealed_recovery_key (const pal::snp::TcbVersionRaw &tcb_version)
 
EncryptedSealedSharesMap compute_encrypted_sealed_shares (ccf::kv::Tx &tx, const SharedLedgerSecretWrappingKey &ls_wrapping_key)
 
void shuffle_sealed_shares (ccf::kv::Tx &tx, const LedgerSecretPtr &latest_ledger_secret)
 
crypto::RSAKeyPairPtr unseal_recovery_key (std::span< uint8_t > derived_key, const SealedRecoveryKey &sealed_key)
 
std::optional< LedgerSecretPtrunseal_share (ccf::kv::ReadOnlyTx &tx, const std::vector< uint8_t > &sealed_wrapping_key, const SealedRecoveryKey &sealed_recovery_key)
 

Variables

const std::string LOCAL_SEALING_LABEL = "CCF AMD Local Sealing Key"
 

Function Documentation

◆ aes_gcm_sealing()

crypto::GcmCipher ccf::sealing::aes_gcm_sealing ( std::span< const uint8_t >  raw_key,
std::span< const uint8_t >  plaintext,
const std::span< uint8_t > &  aad 
)

◆ aes_gcm_unsealing()

std::vector< uint8_t > ccf::sealing::aes_gcm_unsealing ( std::span< const uint8_t >  raw_key,
std::vector< uint8_t >  sealed_text,
std::span< const uint8_t >  aad 
)

◆ compute_encrypted_sealed_shares()

EncryptedSealedSharesMap ccf::sealing::compute_encrypted_sealed_shares ( ccf::kv::Tx tx,
const SharedLedgerSecretWrappingKey ls_wrapping_key 
)

◆ derive_snp_sealing_key()

std::vector< uint8_t > ccf::sealing::derive_snp_sealing_key ( const ccf::pal::snp::TcbVersionRaw tcb_version)

◆ get_snp_sealed_recovery_key()

SealedRecoveryKey ccf::sealing::get_snp_sealed_recovery_key ( const pal::snp::TcbVersionRaw tcb_version)

◆ shuffle_sealed_shares()

void ccf::sealing::shuffle_sealed_shares ( ccf::kv::Tx tx,
const LedgerSecretPtr latest_ledger_secret 
)

◆ unseal_recovery_key()

crypto::RSAKeyPairPtr ccf::sealing::unseal_recovery_key ( std::span< uint8_t >  derived_key,
const SealedRecoveryKey sealed_key 
)

◆ unseal_share()

std::optional< LedgerSecretPtr > ccf::sealing::unseal_share ( ccf::kv::ReadOnlyTx tx,
const std::vector< uint8_t > &  sealed_wrapping_key,
const SealedRecoveryKey sealed_recovery_key 
)

Variable Documentation

◆ LOCAL_SEALING_LABEL

const std::string ccf::sealing::LOCAL_SEALING_LABEL = "CCF AMD Local Sealing Key"