![]() |
xilsecure
Vitis Drivers API Documentation
|
Data Structures | |
| struct | XSecure_HashAlgInfo |
| Structure for Hash Algorithm Info. More... | |
| struct | XSecure_MgfInput |
| Structure has input and output parameters used for MGF. More... | |
Macros | |
| #define | XSECURE_I2OSP_LIMIT (256U) |
| Integer to octet stream primitive limit. More... | |
| #define | XSECURE_SHA3_HASH_LENGTH_IN_BYTES (48U) |
| SHA3 Hash length in bytes. More... | |
Functions | |
| XSecure_HashAlgInfo * | XSecure_GetHashInstance (XSecure_ShaMode Shatype) |
| This function returns hash function list of user specified hash algorithm. More... | |
| int | XSecure_MaskGenFunc (XSecure_ShaMode ShaType, void *InstancePtr, XSecure_MgfInput *MgfInput) |
| This function takes an input of variable length and a desired output length as input, and provides fixed output mask using cryptographic hash function. More... | |
| #define XSECURE_I2OSP_LIMIT (256U) |
Integer to octet stream primitive limit.
| #define XSECURE_SHA3_HASH_LENGTH_IN_BYTES (48U) |
SHA3 Hash length in bytes.
Referenced by XSecure_MaskGenFunc().
| XSecure_HashAlgInfo * XSecure_GetHashInstance | ( | XSecure_ShaMode | Shatype | ) |
This function returns hash function list of user specified hash algorithm.
Get Hash Instance function.
| Shatype | holds the XSecure_ShaMode value of chosen sha algo. |
Referenced by XSecure_MaskGenFunc().
| int XSecure_MaskGenFunc | ( | XSecure_ShaMode | ShaType, |
| void * | InstancePtr, | ||
| XSecure_MgfInput * | MgfInput | ||
| ) |
This function takes an input of variable length and a desired output length as input, and provides fixed output mask using cryptographic hash function.
Mask Generation function.
i.e. Mask Generation Function(MGF).
| ShaType | is of type XSecure_ShaMode. |
| InstancePtr | is pointer to the sha instance. |
| MgfInput | is pointer to XSecure_MgfInput instance. |
References XSecure_HashAlgInfo::HashLen, XSecure_MgfInput::Output, XSecure_MgfInput::OutputLen, XSecure_MgfInput::Seed, XSecure_MgfInput::SeedLen, XSecure_HashAlgInfo::ShaFinish, XSecure_HashAlgInfo::ShaStart, XSecure_HashAlgInfo::Shatype, XSecure_HashAlgInfo::ShaUpdate, XSecure_GetHashInstance(), XSECURE_SHA3_HASH_LENGTH_IN_BYTES, and XSECURE_WORD_SIZE.