10#ifndef SEMF_APP_PROCESSING_SIGNATUREPKCS1_H_
11#define SEMF_APP_PROCESSING_SIGNATUREPKCS1_H_
55 virtual State setPublicKey(
const uint8_t n[],
size_t nLen,
const uint8_t e[],
size_t eLen) = 0;
Class for representing errors. Every error should have a unique source code. As a user feel encourage...
Class for using PKCS1 (Public-Key Cryptography Standards Version 1) asymmetric encryption/decryption ...
virtual State sign(const uint8_t hashDigest[], size_t hashBitLen, uint8_t sign[], HashAlgorithm hashAlgorithm)=0
The function executes a hash algorithm on the given data, and signs the hash-digest using the private...
virtual State verify(const uint8_t hashDigest[], size_t hashBitLen, const uint8_t sign[], HashAlgorithm hashAlgorithm)=0
The function executes a verification of the data data with the given signature sign.
virtual State setPublicKey(const uint8_t n[], size_t nLen, const uint8_t e[], size_t eLen)=0
Pass the modulus N and public key E to the class.
virtual ~SignaturePkcs1()=default
virtual State setPrivateKey(const uint8_t n[], size_t nLen, const uint8_t d[], size_t dLen)=0
Pass the modulus N and private key D to the class.