Encode an EME or EMSA encoded message block according to PKCS#1.
Public Function rsaEncodeMsg ( _ nBlockLen As Long, _ lpInput() As Byte, _ nOptions As Long _ ) As Byte()
PKI_EME_PKCSV1_5 PKI_EME_OAEP PKI_EMSIG_PKCSV1_5If you have selected
PKI_EMSIG_PKCSV1_5
, then add one of these options to set the hash function for the signature message digest:
PKI_HASH_SHA1 PKI_HASH_SHA224 PKI_HASH_SHA256 PKI_HASH_SHA384 PKI_HASH_SHA512 PKI_HASH_MD5 PKI_HASH_MD2and optionally add
PKI_EMSIG_DIGESTONLY
as a flag to pass the message digest only as input to-be-signed (default = pass entire message).
PKI_HASH_SHA1 PKI_HASH_SHA224 PKI_HASH_SHA256 PKI_HASH_SHA384 PKI_HASH_SHA512and optionally add
PKI_MGF_MGF1SHA1
to force the MGF hash function to be SHA-1 (default = same as encoding hash function set above).
PKI_EMSIG_ISO9796
to use the ISO9796-1 encoding for a signature.