C# Class Tpm2Lib.RsaParms

Inheritance: TpmStructureBase, IPublicParmsUnion
Mostrar archivo Open project: Microsoft/TSS.MSR Class Usage Examples

Public Properties

Property Type Description
DefaultExponent byte[]

Private Properties

Property Type Description

Public Methods

Method Description
Copy ( ) : RsaParms
GetUnionSelector ( ) : TpmAlgId
RsaParms ( ) : System
RsaParms ( RsaParms the_RsaParms ) : System
RsaParms ( SymDefObject the_symmetric, IAsymSchemeUnion the_scheme, ushort the_keyBits, uint the_exponent ) : System

Method Details

Copy() public method

public Copy ( ) : RsaParms
return RsaParms

GetUnionSelector() public method

public GetUnionSelector ( ) : TpmAlgId
return TpmAlgId

RsaParms() public method

public RsaParms ( ) : System
return System

RsaParms() public method

public RsaParms ( RsaParms the_RsaParms ) : System
the_RsaParms RsaParms
return System

RsaParms() public method

public RsaParms ( SymDefObject the_symmetric, IAsymSchemeUnion the_scheme, ushort the_keyBits, uint the_exponent ) : System
the_symmetric SymDefObject for a restricted decryption key, shall be set to a supported symmetric algorithm, key size, and mode. if the key is not a restricted decryption key, this field shall be set to TPM_ALG_NULL.
the_scheme IAsymSchemeUnion scheme.scheme shall be: for an unrestricted signing key, either TPM_ALG_RSAPSS TPM_ALG_RSASSA or TPM_ALG_NULL for a restricted signing key, either TPM_ALG_RSAPSS or TPM_ALG_RSASSA for an unrestricted decryption key, TPM_ALG_RSAES, TPM_ALG_OAEP, or TPM_ALG_NULL unless the object also has the sign attribute for a restricted decryption key, TPM_ALG_NULL NOTE When both sign and decrypt are SET, restricted shall be CLEAR and scheme shall be TPM_ALG_NULL.(One of KeySchemeEcdh, KeySchemeEcmqv, SigSchemeRsassa, SigSchemeRsapss, SigSchemeEcdsa, SigSchemeEcdaa, SigSchemeSm2, SigSchemeEcschnorr, EncSchemeRsaes, EncSchemeOaep, SchemeHash, NullAsymScheme)
the_keyBits ushort number of bits in the public modulus
the_exponent uint the public exponent A prime number greater than 2. When zero, indicates that the exponent is the default of 216 + 1
return System

Property Details

DefaultExponent public_oe static_oe property

Default exponent (65537)
public static byte[] DefaultExponent
return byte[]