Botan 3.6.1
Crypto and TLS for C&
|
#include <tpm2_pkops.h>
Public Member Functions | |
std::string | hash_function () const override |
bool | is_valid_signature (std::span< const uint8_t > sig_data) override |
void | update (std::span< const uint8_t > msg) override |
Verification_Operation (const Object &object, const SessionBundle &sessions, const SignatureAlgorithmSelection &algorithms) | |
Protected Member Functions | |
Botan::HashFunction * | hash () |
const Object & | key_handle () const |
std::optional< std::string > | padding () const |
const TPMT_SIG_SCHEME & | scheme () const |
const SessionBundle & | sessions () const |
virtual TPMT_SIGNATURE | unmarshal_signature (std::span< const uint8_t > sig_data) const =0 |
Signature verification on the TPM. This does not require a validation ticket, therefore the hash is always calculated in software.
Definition at line 90 of file tpm2_pkops.h.
Botan::TPM2::Verification_Operation::Verification_Operation | ( | const Object & | object, |
const SessionBundle & | sessions, | ||
const SignatureAlgorithmSelection & | algorithms ) |
Definition at line 97 of file tpm2_pkops.cpp.
|
inlineprotectedinherited |
Definition at line 46 of file tpm2_pkops.h.
Referenced by is_valid_signature().
|
inlineoverridevirtualinherited |
Implements Botan::PK_Ops::Verification.
Definition at line 43 of file tpm2_pkops.h.
|
overridevirtual |
Perform a verification operation
sig | the signature to be checked with respect to the input |
Implements Botan::PK_Ops::Verification.
Definition at line 103 of file tpm2_pkops.cpp.
References Botan::TPM2::as_span(), Botan::TPM2::check_rc_expecting(), Botan::Buffered_Computation::final(), Botan::TPM2::Signature_Operation_Base< PK_Ops::Verification >::hash(), Botan::TPM2::Signature_Operation_Base< PK_Ops::Verification >::key_handle(), Botan::TPM2::Signature_Operation_Base< PK_Ops::Verification >::sessions(), and unmarshal_signature().
|
inlineprotectedinherited |
Definition at line 48 of file tpm2_pkops.h.
Referenced by is_valid_signature().
|
inlineprotectedinherited |
Definition at line 54 of file tpm2_pkops.h.
|
inlineprotectedinherited |
Definition at line 52 of file tpm2_pkops.h.
|
inlineprotectedinherited |
Definition at line 50 of file tpm2_pkops.h.
Referenced by is_valid_signature().
|
protectedpure virtual |
Referenced by is_valid_signature().
|
inlineoverridevirtualinherited |
Implements Botan::PK_Ops::Verification.
Definition at line 41 of file tpm2_pkops.h.