CCF
Loading...
Searching...
No Matches
local_sealing.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
7#include "ccf/tx.h"
9
10namespace ccf::sealing
11{
12 const std::string LOCAL_SEALING_LABEL = "CCF AMD Local Sealing Key";
13
14 std::vector<uint8_t> derive_snp_sealing_key(
15 const ccf::pal::snp::TcbVersionRaw& tcb_version);
16
18 const pal::snp::TcbVersionRaw& tcb_version);
19
21 ccf::kv::Tx& tx, const LedgerSecretPtr& latest_ledger_secret);
22
23 std::optional<LedgerSecretPtr> unseal_share(
25 const std::vector<uint8_t>& sealed_wrapping_key,
26 const SealedRecoveryKey& sealed_recovery_key);
27}
Definition tx.h:159
Definition tx.h:200
Definition local_sealing.cpp:37
const std::string LOCAL_SEALING_LABEL
Definition local_sealing.h:12
std::optional< LedgerSecretPtr > unseal_share(ccf::kv::ReadOnlyTx &tx, const std::vector< uint8_t > &sealed_wrapping_key, const SealedRecoveryKey &sealed_recovery_key)
Definition local_sealing.cpp:170
void shuffle_sealed_shares(ccf::kv::Tx &tx, const LedgerSecretPtr &latest_ledger_secret)
Definition local_sealing.cpp:146
SealedRecoveryKey get_snp_sealed_recovery_key(const pal::snp::TcbVersionRaw &tcb_version)
Definition local_sealing.cpp:88
std::vector< uint8_t > derive_snp_sealing_key(const ccf::pal::snp::TcbVersionRaw &tcb_version)
Definition local_sealing.cpp:74
std::shared_ptr< LedgerSecret > LedgerSecretPtr
Definition ledger_secret.h:84
Definition local_sealing.h:23
Definition attestation_sev_snp.h:201