TrustCore SDK NanoCrypto API reference  version 7.0
ansix9_63_kdf.h File Reference

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...
 

Detailed Description

Header file for the NanoCrypto ANSI x9.63 Key Derivation APIs.

ansix9_63_kdf.h

Function Documentation

◆ ANSIX963KDF_generate()

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.

Parameters
pBulkHashAlgoPointer to a suite holding the function pointer hash methods to be used.
zBuffer holding the input shared secret as a byte array.
zLengthThe length of z in bytes.
sharedInfoOptional. Buffer holding the shared info as a byte array.
sharedInfoLenThe length of the shared info in bytes.
retLenThe requested length of the derived key in bytes.
retBuffer that will hold the resulting derived key.
Returns
OK (0) if successful; otherwise a negative number error code definition from merrors.h.

ansix9_63_kdf.h