![]() |
TrustCore SDK NanoCrypto API reference
version 7.0
|
Header file for the NanoCrypto ANSI x9.63 Key Derivation APIs. More...
Go to the source code of this file.
Functions | |
MOC_EXTERN MSTATUS | ANSIX963KDF_generate (MOC_HASH(hwAccelDescr hwAccelCtx) const BulkHashAlgo *pBulkHashAlgo, ubyte *z, ubyte4 zLength, const ubyte *sharedInfo, ubyte4 sharedInfoLen, ubyte4 retLen, ubyte ret[]) |
Performs the ANSI x9.63 Key Derivation. More... | |
Header file for the NanoCrypto ANSI x9.63 Key Derivation APIs.
MOC_EXTERN MSTATUS ANSIX963KDF_generate | ( | MOC_HASH(hwAccelDescr hwAccelCtx) const BulkHashAlgo * | pBulkHashAlgo, |
ubyte * | z, | ||
ubyte4 | zLength, | ||
const ubyte * | sharedInfo, | ||
ubyte4 | sharedInfoLen, | ||
ubyte4 | retLen, | ||
ubyte | ret[] | ||
) |
Performs the ANSI x9.63 Key Derivation.
pBulkHashAlgo | Pointer to a suite holding the function pointer hash methods to be used. |
z | Buffer holding the input shared secret as a byte array. |
zLength | The length of z in bytes. |
sharedInfo | Optional. Buffer holding the shared info as a byte array. |
sharedInfoLen | The length of the shared info in bytes. |
retLen | The requested length of the derived key in bytes. |
ret | Buffer that will hold the resulting derived key. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h.