corePKCS11  v3.2.0
PKCS #11 Cryptoki Library
vAppendSHA256AlgorithmIdentifierSequence

Appends digest algorithm sequence to SHA-256 hash for RSA signatures.

CK_RV vAppendSHA256AlgorithmIdentifierSequence( const uint8_t * puc32ByteHashedMessage,
uint8_t * puc51ByteHashOidBuffer );

This function pre-appends the digest algorithm identifier to the SHA-256 hash of a message.

DigestInfo :: = SEQUENCE{ digestAlgorithm DigestAlgorithmIdentifier, digest Digest }

Parameters
[in]puc32ByteHashedMessageA 32-byte buffer containing the SHA-256 hash of the data to be signed.
[out]puc51ByteHashOidBufferA 51-byte output buffer containing the DigestInfo structure. This memory must be allocated by the caller.
Returns
CKR_OK if successful, CKR_ARGUMENTS_BAD if NULL pointer passed in.
vAppendSHA256AlgorithmIdentifierSequence
CK_RV vAppendSHA256AlgorithmIdentifierSequence(const uint8_t *puc32ByteHashedMessage, uint8_t *puc51ByteHashOidBuffer)
Appends digest algorithm sequence to SHA-256 hash for RSA signatures.
Definition: core_pkcs11.c:374