SecurityLocalVerifyRSA
CAPL Functions » Security » SecurityLocalVerifyRSA Valid for: CANoe DE • CANoe4SW DEFunction Syntax
SecurityLocalVerifyRSA(byte publicKey[], dword publicKeyLength, byte data[], dword dataLength, byte signature[], dword signatureLength, dword signatureScheme, dword* verificationResult)
Description
Verifies signature of data with a given public key using asymmetric RSA signature algorithm. Signing scheme can be selected via the parameter.Parameters
- publicKey: The public key to be used for verification.
- publicKeyLength: Length of the public key to be used for verification.
- data: Data to be verified.
- dataLength: Length of the data to be verified.
- signature: Signature to be verified.
- signatureLength: Length of signature to be verified.
- signatureScheme:
- PKCS1_v1_5_SHA-256 = 1
- PKCS1_v1_5_SHA-384 = 2
- PKCS1_v1_5_SHA-512 = 3
- SSA_PSS_SHA-256 = 4
- SSA_PSS_SHA-384 = 5
- SSA_PSS_SHA-512 = 6
- verificationResult [OUT]: Result of the signature verification.
Return Values
- 1: Success. A value of 1 means that the action was successful. Note: This does not necessarily mean that the signature is valid. Check VerificationResult therefore!
- <= 0: Error. A value less than or equal to 0 means error.