mirror of
https://github.com/stefanberger/libtpms
synced 2026-08-10 01:41:57 +00:00
tpm2: Add comment 'libtpms added' to BnConvert.c change
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
271b05fdcf
commit
15e8d05b07
@ -129,7 +129,7 @@ BnFrom2B(
|
||||
}
|
||||
/* 10.2.2.3.3 BnFromHex() */
|
||||
/* Convert a hex string into a bigNum. This is primarily used in debugging. */
|
||||
#ifdef _SM2_SIGN_DEBUG
|
||||
#ifdef _SM2_SIGN_DEBUG // libtpms added
|
||||
LIB_EXPORT bigNum
|
||||
BnFromHex(
|
||||
bigNum bn, // OUT:
|
||||
@ -170,7 +170,7 @@ BnFromHex(
|
||||
BnSetTop(bn, wordCount);
|
||||
return bn;
|
||||
}
|
||||
#endif
|
||||
#endif // libtpms added
|
||||
/* 10.2.2.3.4 BnToBytes() */
|
||||
/* This function converts a BIG_NUM to a byte array. It converts the bigNum to a big-endian byte
|
||||
string and sets size to the normalized value. If size is an input 0, then the receiving buffer is
|
||||
|
||||
Loading…
Reference in New Issue
Block a user