mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-18 00:30:12 +00:00
tpm2: Comment unused hash and RSA related functions
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
b19d7f6aca
commit
157630bcc4
@ -213,6 +213,7 @@ CryptHashGetBlockSize(
|
||||
/* 10.2.13.4.7 CryptHashGetOid() */
|
||||
/* This function returns a pointer to DER=encoded OID for a hash algorithm. All OIDs are full OID
|
||||
values including the Tag (0x06) and length byte. */
|
||||
#if 0 // libtpms added
|
||||
LIB_EXPORT const BYTE *
|
||||
CryptHashGetOid(
|
||||
TPM_ALG_ID hashAlg
|
||||
@ -220,8 +221,10 @@ CryptHashGetOid(
|
||||
{
|
||||
return CryptGetHashDef(hashAlg)->OID;
|
||||
}
|
||||
#endif // libtpms added
|
||||
/* 10.2.13.4.8 CryptHashGetContextAlg() */
|
||||
/* This function returns the hash algorithm associated with a hash context. */
|
||||
#if 0 // libtpms added
|
||||
TPM_ALG_ID
|
||||
CryptHashGetContextAlg(
|
||||
PHASH_STATE state // IN: the context to check
|
||||
@ -229,6 +232,7 @@ CryptHashGetContextAlg(
|
||||
{
|
||||
return state->hashAlg;
|
||||
}
|
||||
#endif // libtpms added
|
||||
/* 10.2.13.5 State Import and Export */
|
||||
/* 10.2.13.5.1 CryptHashCopyState */
|
||||
/* This function is used to clone a HASH_STATE. */
|
||||
|
||||
@ -542,6 +542,7 @@ GetSieveStats(
|
||||
#if !RSA_INSTRUMENT
|
||||
//*** RsaSimulationEnd()
|
||||
// Stub for call when not doing instrumentation.
|
||||
#if 0 // libtpms added
|
||||
void
|
||||
RsaSimulationEnd(
|
||||
void
|
||||
@ -549,4 +550,5 @@ RsaSimulationEnd(
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif // libtpms added
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user