Skip to main content

X509PkiAccess_LoadSignerByKeyIdentifier

CAPL Functions » Security » X509PkiAccess_LoadSignerByKeyIdentifier Valid for: CANoe DE • CANoe4SW DE

Method Syntax

Description

Creation function for Signer handle by Subject Key Identifier of the signer certificate from an associated Security Profile. The Security Profile has to be assigned to the network of the CAPL node. Signer handles wrap a private key and can be used to create signatures for certificates or arbitrary binary data. The hash function will be used for algorithms that require specific hash function (e.g. ECDSA), for Algorithms with predefined Hash function (e.g. Ed25519) this will be ignored and the predefined hash function is used. If the signature algorithm is not specified, it will be determined from the associated certificate and its public key, i.e. the Subject Key Identifier of the signer certificate is used to sign using this private key.

Parameters

  • objectHandle: (in) Handle with type ‘X509PkiAccess’. The function will be called in context of this handle.
  • keyIdentifier: (in) Subject Key Identifier of signer certificate of associated Security Profile
  • keyIdentifierLength: (in) Length of key identifier of signer certificate of associated Security Profile
  • hashFunction: (in) Hash function to be used for signing
  • signatureAlgorithm: (in) Signature algorithm to be used for signing (optional)
  • outHandleSigner: (out) Handle of signer

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