PivRsaPublicKey Constructor
PivRsaPublicKey(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)
Create a new instance of an RSA public key object based on the given modulus and public exponent.
C#
public PivRsaPublicKey(ReadOnlySpan<byte> modulus, ReadOnlySpan<byte> publicExponent)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Byte> | modulus | The modulus as a canonical byte array. It must be 128 bytes (1024 bits) or 256 bytes (2048 bits) long. |
System.ReadOnlySpan<System.Byte> | publicExponent | The public exponent as a canonical byte array. Note that the YubiKey
supports only |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The key data supplied is not supported. |