Skip to main content

X509Verifier_VerifyDataSignature

Valid for: CANoe DE • CANoe4SW DE

Method Syntax

Description

Verification function for arbitrary data block. This function verifies that the signature is valid for the public key in the Certificate.

Parameters

  • objectHandle: (in) Handle with type ‘X509Verifier’. The function will be called in context of this handle.
  • certificateHandle: (in) Handle of certificate to use for verifying
  • dataToBeVerified: (in) Data for which signature will be verified
  • dataToBeVerifiedLength: (in) Length of data
  • signatureToBeVerified: (in) Signature which will be verified
  • signatureToBeVerifiedLength: (in) Length of signature
  • hashFunction: (in) Hash function of signature
  • signatureAlgorithm: (in) Signature algorithm of signature
  • verificationResult: (out) Result of verification

Selectors

Return Values

  • 1: NoError: Operation was completed successfully.
  • -2: Nullpointer: Error, the return value of the function was “NULL”. The value is not available and the output buffer is unchanged.
  • -3: BufferTooSmall: Error, the output buffer is too small. No value has been written.
  • -4: InvalidHandle: Error, the provided objectHandle is invalid or not suitable for this function.
  • -5: InvalidArgument: Error, one or more arguments are invalid for this function.
  • -6: InvalidArgumentHandle: Error, one or more argument handles are invalid or not suitable for this function.

Example