Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
SecurityLocalVerifyEcdsa
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
SecurityLocalVerifyEcdsa(dword curve, dword hashAlgorithm, dword signatureFormat, byte publicKey[], dword publicKeyLength, byte data[], dword dataLength, byte signature[], dword signatureLength, dword* verificationResult)
Description
Verifies the signature of the data with a given public key using the ECDSA signature algorithm. The curve, hash algorithm and the signature format can be selected via the parameters.Parameters
-
dword curve
ID of the curve to use.
Available curves:- brainpool256r1 = 1
- brainpool384r1 = 2
- brainpool512r1 = 3
- secp256r1 = 4
- secp384r1 = 5
- secp521r1 = 6
-
dword hashAlgorithm
ID of the hash algorithm to use.
Available hash algorithm:- SHA-256 = 1
- SHA-384 = 2
- SHA-512 = 3
-
dword signatureFormat
ID of the signature format to use.
Available signature formats:- IEEE1363 = 0
- DER sequence = 1
-
byte publicKey[]
Public key to be used for verification
The following formats are accepted:- raw key bytes
- DER
- PEM
-
dword publicKeyLength
Length of public key to be used for verification. -
byte data[]
Data to be verified. -
dword dataLength
Length of data to be verified. -
byte signature[]
Signature to be verified. -
dword signatureLength
Length of signature to be verified. -
dword verificationResult [OUT]
Result of signature verification.
Return Values
-
1
Success
A Value of 1 means that the action was successful. -
≤ 0
Error
A value less than or equal to 0 means error.