xofBytes
Generate bytes using an eXtendable-Output Function (XOF).
Syntax
[VBA]
Public Function xofBytes ( _
nBytes As Long, _
lpMessage() As Byte, _
nOptions As Long _
) As Byte()
Parameters
- nBytes
- Required number of output bytes.
- lpMessage
- Input message data.
- nOptions
- XOF algorithm to be used. Select one from:
PKI_XOF_SHAKE128
PKI_XOF_SHAKE256
PKI_XOF_MGF1_SHA1
PKI_XOF_MGF1_SHA256
PKI_XOF_MGF1_SHA512
Return Value
Byte(): Output data in byte array.
Remarks
The SHAKE128 and SHAKE256 XOF functions are described in NIST.FIPS.202.
MGF1 is described in PKCS#1/RFC2437.
[Contents] [Index]