Show / Hide Table of Contents

PivRsaPrivateKey Constructor

PivRsaPrivateKey(ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>, ReadOnlySpan<byte>)

Create a new instance of an RSA private key object based on the given CRT components.

C#
public PivRsaPrivateKey(ReadOnlySpan<byte> primeP, ReadOnlySpan<byte> primeQ, ReadOnlySpan<byte> exponentP, ReadOnlySpan<byte> exponentQ, ReadOnlySpan<byte> coefficient)

Parameters

Type Name Description
ReadOnlySpan<byte> primeP

The prime p as a canonical byte array. It must be 64 bytes (512 bits) or 128 bytes (1024 bits) long.

ReadOnlySpan<byte> primeQ

The prime q as a canonical byte array. It must be 64 bytes (512 bits) or 128 bytes (1024 bits) long.

ReadOnlySpan<byte> exponentP

The exponent p as a canonical byte array. It must be 64 bytes (512 bits) or 128 bytes (1024 bits) long.

ReadOnlySpan<byte> exponentQ

The exponent q as a canonical byte array. It must be 64 bytes (512 bits) or 128 bytes (1024 bits) long.

ReadOnlySpan<byte> coefficient

The CRT coefficient as a canonical byte array. It must be 64 bytes (512 bits) or 128 bytes (1024 bits) long.

Exceptions

Type Condition
ArgumentException

The key data supplied is not a supported length.

In this article
Back to top Generated by DocFX