 |
AM64x MCU+ SDK
12.01.00
|
|
Go to the documentation of this file.
73 #define HASH_ALG_SHA1 (0x0U)
75 #define HASH_ALG_SHA2_256 (0x1U)
77 #define HASH_ALG_SHA2_512 (0x2U)
79 #define HASH_ALG_SHA2_384 (0x3U)
174 typedef uint32_t (*
Crypto_ShaCallback)(uint8_t *inputBuf, uint32_t inputLenBytes, uint8_t *digestBuf);
216 uint8_t *seedBuf, uint32_t seedLenInBytes,
217 uint8_t *mask, uint32_t maskLenInBytes);
244 uint32_t modBits, uint32_t emLenInBytes, uint8_t *output);
271 const uint8_t *msgHash, uint32_t saltLenInBytes,
272 uint32_t modBits,
const uint8_t *EM, uint32_t emLenInBytes);
void Crypto_bigIntToUint32(uint32_t *source, uint32_t sourceLengthInWords, uint32_t *dest)
Function to convert Bigint to uint32_t format.
Message hash and salt inputs to Crypto_PSSPaddingForSign, bundled to keep the function's parameter co...
Definition: crypto_util.h:186
void Crypto_Uint32ToUint8(const uint32_t *src, uint32_t sourceLengthInBytes, uint8_t *dest)
Function to convert uint32_t to uint8_t format.
uint32_t Crypto_PSSVerify(Crypto_ShaCallback shaCbFxn, uint32_t typeOfAlgo, const uint8_t *msgHash, uint32_t saltLenInBytes, uint32_t modBits, const uint8_t *EM, uint32_t emLenInBytes)
Verifies an EMSA-PSS encoding for RSA signature verification, refer to RFC 8017 Section 9....
const uint8_t * salt
Definition: crypto_util.h:190
uint32_t Crypto_PSSPaddingForSign(Crypto_ShaCallback shaCbFxn, uint32_t typeOfAlgo, const struct Crypto_PSSSaltInfo *saltInfo, uint32_t modBits, uint32_t emLenInBytes, uint8_t *output)
Builds the EMSA-PSS encoding for RSA signing, refer to RFC 8017 Section 9.1.1 https://www....
void Crypto_PKCSPaddingForSign(const uint8_t *shaHash, uint32_t keyLengthInBytes, uint32_t typeOfAlgo, uint8_t *output)
Padding function for sign.
void Crypto_Uint32ToBigInt(uint32_t *source, uint32_t sourceLengthInWords, uint32_t *dest)
Function to convert uint32_t to Bigint format.
uint32_t saltLenInBytes
Definition: crypto_util.h:192
uint8_t source
Definition: tisci_rm_ra.h:4
uint32_t(* Crypto_ShaCallback)(uint8_t *inputBuf, uint32_t inputLenBytes, uint8_t *digestBuf)
Callback used by Crypto_MGF1/Crypto_PSSPaddingForSign/Crypto_PSSVerify to compute a hash digest....
Definition: crypto_util.h:174
void Crypto_Uint8ToUint32(const uint8_t *source, uint32_t sourceLengthInBytes, uint32_t *dest)
Function to convert uint8_t to uint32_t format.
uint32_t Crypto_MGF1(Crypto_ShaCallback shaCbFxn, uint32_t hashLenInBytes, uint8_t *seedBuf, uint32_t seedLenInBytes, uint8_t *mask, uint32_t maskLenInBytes)
MGF1 mask generation function, refer to RFC 8017 Appendix B.2.1 https://www.rfc-editor....
const uint8_t * msgHash
Definition: crypto_util.h:188