CXI
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MechParamPSS Class Reference

Constructs a mechanism parameter for PKCS#1, v2.1 RSAES-PSS signature creation / verification padding scheme. More...

Inheritance diagram for MechParamPSS:
[legend]
Collaboration diagram for MechParamPSS:
[legend]

Public Member Functions

 MechParamPSS (int mech, int mgf_algo, int salt_len)
 
MechanismParameter getEncoded (void)
 
- Public Member Functions inherited from MechParam
 MechParam (int mech)
 Constructs a mechanism parameter with the given mechanism specifier. More...
 
MechanismParameter getEncoded (void)
 

Detailed Description

Constructs a mechanism parameter for PKCS#1, v2.1 RSAES-PSS signature creation / verification padding scheme.

The following example illustrates the usage of the MechParamPSS class:

// sign data with PSS padding scheme
ByteArray sign = cxi->sign(0, rsaKey, mechParam.getEncoded(), data);
Encapsulates an array of primitive type char in an object and provides methods to operate on binary d...
Definition: sw/cxi_api_c/def/bytearray.h:22
Constructs a mechanism parameter for PKCS#1, v2.1 RSAES-PSS signature creation / verification padding...
Definition: sw/cxi_api_c/def/mechparam.h:98
MechanismParameter getEncoded(void)
Definition: mechparam.cpp:658
#define CXI_MECH_HASH_ALGO_SHA256
SHA256.
Definition: fw/cxi/def/cxi_defs.h:454
#define CXI_MECH_PAD_PSS
Apply padding according to PKCS#1_v2.1 RSASSA-PSS.
Definition: fw/cxi/def/cxi_defs.h:401
Definition: cxi.cpp:173

Constructor & Destructor Documentation

◆ MechParamPSS()

MechParamPSS ( int  mech,
int  mgf_algo,
int  salt_len 
)

Constructs a mechanism parameter for PKCS#1, v2.1 RSAES-PSS signature creation / verification padding scheme.

Parameters
mechmechanism specifier, XOR combination of:
mgf_algoalgorithm specifier for the MGF algorithm to be used, see Hash Algorithms
salt_lenlength of the random salt value to be generated

Member Function Documentation

◆ getEncoded()

MechanismParameter getEncoded ( void  )
Returns
Returns the encoded mechanism parameter.