Uniot Core
0.8.1
Loading...
Searching...
No Matches
uniot::ICOSESigner Class Referenceabstract

Interface for CBOR Object Signing and Encryption (COSE) signing operations. More...

#include <ICOSESigner.h>

Inheritance diagram for uniot::ICOSESigner:
[legend]

Public Member Functions

virtual ~ICOSESigner ()
 Virtual destructor to ensure proper cleanup of derived classes.
 
virtual Bytes keyId () const =0
 Gets the key identifier used by this signer.
 
virtual Bytes sign (const Bytes &data) const =0
 Signs the provided data using the implementation's cryptographic algorithm.
 
virtual COSEAlgorithm signerAlgorithm () const =0
 Gets the COSE algorithm identifier used by this signer.
 

Detailed Description

Interface for CBOR Object Signing and Encryption (COSE) signing operations.

ICOSESigner provides an interface for implementing cryptographic signing functionality according to the COSE (RFC 8152) standard. Classes implementing this interface can be used to sign data using various cryptographic algorithms.

Constructor & Destructor Documentation

◆ ~ICOSESigner()

virtual uniot::ICOSESigner::~ICOSESigner ( )
inlinevirtual

Virtual destructor to ensure proper cleanup of derived classes.

Member Function Documentation

◆ keyId()

virtual Bytes uniot::ICOSESigner::keyId ( ) const
pure virtual

Gets the key identifier used by this signer.

Return values
BytesThe key identifier as a byte sequence

Implemented in uniot::Credentials.

◆ sign()

virtual Bytes uniot::ICOSESigner::sign ( const Bytes & data) const
pure virtual

Signs the provided data using the implementation's cryptographic algorithm.

Parameters
dataThe bytes to be signed
Return values
BytesThe resulting signature as a byte sequence

Implemented in uniot::Credentials.

◆ signerAlgorithm()

virtual COSEAlgorithm uniot::ICOSESigner::signerAlgorithm ( ) const
pure virtual

Gets the COSE algorithm identifier used by this signer.

Return values
COSEAlgorithmThe algorithm identifier as defined in the COSE standard

Implemented in uniot::Credentials.


The documentation for this class was generated from the following file: