Continues a multiple-part digesting operation.
CK_BYTE_PTR pPart,
CK_ULONG ulPartLen )
{
if( pPart == NULL )
{
PKCS11_PRINT( (
"ERROR: Null digest mechanism provided. \r\n" ) );
xResult = CKR_ARGUMENTS_BAD;
}
if( xResult == CKR_OK )
{
{
xResult = CKR_OPERATION_NOT_INITIALIZED;
}
}
if( xResult == CKR_OK )
{
if( 0 != mbedtls_sha256_update_ret( &pxSession->
xSHA256Context, pPart, ulPartLen ) )
{
xResult = CKR_FUNCTION_FAILED;
}
}
if( ( xResult != CKR_OK ) && ( xResult != CKR_SESSION_HANDLE_INVALID ) )
{
}
return xResult;
}
- See also
- C_DigestInit(), C_DigestFinal()
- Note
- Digest parameters are shared by a session. Calling C_DigestInit(), C_DigestUpdate(), and C_DigestFinal() with the same session across different tasks may lead to unexpected results.
- Parameters
-
[in] | hSession | Handle of a valid PKCS #11 session. |
[in] | pPart | Pointer to the data to be added to the digest. |
[in] | ulPartLen | Length of the data located at pPart. |
- Returns
- CKR_OK if successful. Else, see PKCS #11 specification for more information.