Skip to content

OnixLabs.Security.Cryptography.RsaPublicKey

matthew edited this page May 27, 2026 · 2 revisions

RsaPublicKey Class

Represents an RSA cryptographic public key. Supports digital signature verification in both PKCS #1 v1.5 and PSS padding modes, and provides key import and export in raw SubjectPublicKeyInfo (SPKI) binary and PEM formats.

Namespace OnixLabs.Security.Cryptography
Assembly OnixLabs.Security.Cryptography.dll (NuGet)
Inheritance object → PublicKey → RsaPublicKey
Implements IRsaPublicKey, ISpanParsable<RsaPublicKey>, IPublicKeyImportable<RsaPublicKey>, IPublicKeyExportable, ICryptoPrimitive<PublicKey>, IValueEquatable<PublicKey>, IEquatable<PublicKey>, IBinaryConvertible

Definition

public sealed partial class RsaPublicKey : PublicKey, IRsaPublicKey, ISpanParsable<RsaPublicKey>

Remarks

RsaPublicKey is the concrete RSA implementation of PublicKey. It stores raw RSA public key material (PKCS #1 DER) in the inherited protected KeyData byte array. Unlike RsaPrivateKey, RsaPublicKey does not implement IDisposable because public keys carry no sensitive material.

Verification — the type exposes two families of operation:

  • IsDataValid / IsHashValid — return bool without throwing; suitable for conditional logic.
  • VerifyData / VerifyHash — throw CryptographicException if verification fails; suitable for fail-fast paths.

All verification methods require both a HashAlgorithmName and an RSASignaturePadding. The padding mode must match the one used when the data was signed:

  • RSASignaturePadding.Pkcs1 — deterministic PKCS #1 v1.5 padding.
  • RSASignaturePadding.Pss — probabilistic PSS padding.

Signatures may be supplied as either a raw ReadOnlySpan<byte> or a DigitalSignature value.

Obtaining an instance — derive a public key from a private key via RsaPrivateKey.GetPublicKey(); import existing material via Import or ImportPem; or parse a hex-encoded key string with Parse / TryParse.

Export formats — the key can be exported as:

Method Format
Export() SubjectPublicKeyInfo (SPKI) DER bytes
ExportPem() RFC 7468 PEM (PUBLIC KEY)

ToString() returns the raw key bytes encoded as uppercase hexadecimal (Base16). Call ToNamedPublicKey() to obtain a NamedPublicKey tagged with the algorithm name "RSA". A key fingerprint can be computed via the inherited GetHash(HashAlgorithm) method.

Note RsaPublicKey inherits value semantics from PublicKey: equality and hash codes are based on the runtime type and key bytes, not reference identity.

Examples

Generating a key pair and verifying a signature

using System.Security.Cryptography;
using OnixLabs.Security.Cryptography;

// Generate a new RSA private key and derive the public key.
using RsaPrivateKey privateKey = RsaPrivateKey.Create();
RsaPublicKey publicKey = privateKey.GetPublicKey();

byte[] data = System.Text.Encoding.UTF8.GetBytes("Hello, ONIXLabs!");

// Sign using SHA-256 and PSS padding.
byte[] signature = privateKey.SignData(
    data,
    HashAlgorithmName.SHA256,
    RSASignaturePadding.Pss);

// Verify: returns true/false without throwing.
bool valid = publicKey.IsDataValid(
    signature,
    data,
    HashAlgorithmName.SHA256,
    RSASignaturePadding.Pss);

Console.WriteLine(valid); // True

// Verify: throws CryptographicException if invalid.
publicKey.VerifyData(
    signature,
    data,
    HashAlgorithmName.SHA256,
    RSASignaturePadding.Pss);

Verifying a pre-computed hash

using System.Security.Cryptography;
using OnixLabs.Security.Cryptography;

using RsaPrivateKey privateKey = RsaPrivateKey.Create();
RsaPublicKey publicKey = privateKey.GetPublicKey();

byte[] data = System.Text.Encoding.UTF8.GetBytes("Hello, ONIXLabs!");
byte[] hashBytes = SHA256.HashData(data);

// Sign the pre-computed hash.
byte[] signature = privateKey.SignHash(
    hashBytes,
    HashAlgorithmName.SHA256,
    RSASignaturePadding.Pss);

// Verify the pre-computed hash.
bool valid = publicKey.IsHashValid(
    signature,
    hashBytes,
    HashAlgorithmName.SHA256,
    RSASignaturePadding.Pss);

Console.WriteLine(valid); // True

Importing a public key and computing a fingerprint

using System.Security.Cryptography;
using OnixLabs.Security.Cryptography;

using RsaPrivateKey privateKey = RsaPrivateKey.Create();
RsaPublicKey original = privateKey.GetPublicKey();

// Export as SubjectPublicKeyInfo DER.
byte[] spki = original.Export();

// Re-import.
RsaPublicKey restored = RsaPublicKey.Import(spki);
Console.WriteLine(original == restored); // True

// Compute a key fingerprint.
Hash fingerprint = restored.GetHash(SHA256.Create());
Console.WriteLine(fingerprint); // SHA2-256:<hex>

Wrapping in a self-describing named key

using OnixLabs.Security.Cryptography;

using RsaPrivateKey privateKey = RsaPrivateKey.Create();
RsaPublicKey publicKey = privateKey.GetPublicKey();

NamedPublicKey named = publicKey.ToNamedPublicKey();

Console.WriteLine(named.AlgorithmName); // RSA
Console.WriteLine(named);               // RSA:<hex-encoded key bytes>

Constructors

Constructor Description
RsaPublicKey(ReadOnlySpan<byte>) Initializes a new instance from a span of bytes.
RsaPublicKey(ReadOnlyMemory<byte>) Initializes a new instance from a memory region.
RsaPublicKey(ReadOnlySequence<byte>) Initializes a new instance from a byte sequence.

RsaPublicKey(ReadOnlySpan<byte>)

public RsaPublicKey(ReadOnlySpan<byte> keyData)

Initializes a new instance of the RsaPublicKey class. The provided span is copied to an internal array; the span itself is not retained.

Parameter Type Description
keyData ReadOnlySpan<byte> The underlying key data of the RSA cryptographic public key.

RsaPublicKey(ReadOnlyMemory<byte>)

public RsaPublicKey(ReadOnlyMemory<byte> keyData)

Initializes a new instance of the RsaPublicKey class. The provided memory region is copied to an internal array; the original memory is not retained.

Parameter Type Description
keyData ReadOnlyMemory<byte> The underlying key data of the RSA cryptographic public key.

RsaPublicKey(ReadOnlySequence<byte>)

public RsaPublicKey(ReadOnlySequence<byte> keyData)

Initializes a new instance of the RsaPublicKey class. The provided byte sequence is copied to an internal array; the original sequence is not retained.

Parameter Type Description
keyData ReadOnlySequence<byte> The underlying key data of the RSA cryptographic public key.

Static Methods

Method Returns Description
Import(ReadOnlySpan<byte>) RsaPublicKey Imports an RSA public key from a raw SubjectPublicKeyInfo span.
Import(ReadOnlySpan<byte>, out int) RsaPublicKey Imports an RSA public key from a raw SubjectPublicKeyInfo span; reports bytes read.
Import(IBinaryConvertible) RsaPublicKey Imports an RSA public key from an IBinaryConvertible.
Import(IBinaryConvertible, out int) RsaPublicKey Imports an RSA public key from an IBinaryConvertible; reports bytes read.
ImportPem(ReadOnlySpan<char>) RsaPublicKey Imports a public key from unencrypted RFC 7468 PEM-encoded text.
ImportPem(ReadOnlySpan<char>, ReadOnlySpan<char>) RsaPublicKey Imports a public key from encrypted PEM using a char password.
ImportPem(ReadOnlySpan<char>, ReadOnlySpan<byte>) RsaPublicKey Imports a public key from encrypted PEM using a byte password.
Parse(string, IFormatProvider?) RsaPublicKey Parses a hex-encoded key string into an RsaPublicKey.
Parse(ReadOnlySpan<char>, IFormatProvider?) RsaPublicKey Parses a hex-encoded key span into an RsaPublicKey.
TryParse(string?, IFormatProvider?, out RsaPublicKey) bool Attempts to parse a hex-encoded key string into an RsaPublicKey.
TryParse(ReadOnlySpan<char>, IFormatProvider?, out RsaPublicKey) bool Attempts to parse a hex-encoded key span into an RsaPublicKey.

Import overloads

public static RsaPublicKey Import(ReadOnlySpan<byte> data)
public static RsaPublicKey Import(ReadOnlySpan<byte> data, out int bytesRead)
public static RsaPublicKey Import(IBinaryConvertible data)
public static RsaPublicKey Import(IBinaryConvertible data, out int bytesRead)

Imports an RSA public key from its SubjectPublicKeyInfo (SPKI) DER-encoded binary representation.

Parameter Type Description
data ReadOnlySpan<byte> or IBinaryConvertible The SPKI DER-encoded RSA public key data to import.
bytesRead out int (bytesRead overloads) Receives the number of bytes consumed from data.

Returns — A new RsaPublicKey instance containing the imported key.

Exceptions

Exception Condition
CryptographicException data does not contain a valid RSA SubjectPublicKeyInfo structure.

ImportPem overloads

public static RsaPublicKey ImportPem(ReadOnlySpan<char> data)
public static RsaPublicKey ImportPem(ReadOnlySpan<char> data, ReadOnlySpan<char> password)
public static RsaPublicKey ImportPem(ReadOnlySpan<char> data, ReadOnlySpan<byte> password)

Imports an RSA public key from RFC 7468 PEM-encoded text. The PEM label determines the format decoded (typically PUBLIC KEY, i.e. SPKI). The two-argument overloads additionally decrypt encrypted PEM blocks.

Parameter Type Description
data ReadOnlySpan<char> The PEM-encoded public key data to import.
password ReadOnlySpan<char> or ReadOnlySpan<byte> (encrypted overloads) The password required to decrypt the key.

Returns — A new RsaPublicKey instance containing the imported key.

Exceptions

Exception Condition
CryptographicException The PEM data is malformed, the label is unsupported, or decryption failed.

Parse(string, IFormatProvider?)

public static RsaPublicKey Parse(string value, IFormatProvider? provider = null)

Parses a string containing the hex-encoded (Base16) raw key bytes into a new RsaPublicKey instance. If provider is null, Base16FormatProvider.Invariant is used.

Parameter Type Description
value string The hex-encoded string representing the RSA public key.
provider IFormatProvider? The format provider that determines how value is decoded.

Returns — A new RsaPublicKey decoded from value.

Exceptions

Exception Condition
FormatException value is not a valid encoded key string for the given provider.

Parse(ReadOnlySpan<char>, IFormatProvider?)

public static RsaPublicKey Parse(ReadOnlySpan<char> value, IFormatProvider? provider = null)

Parses a span containing the hex-encoded (Base16) raw key bytes into a new RsaPublicKey instance. If provider is null, Base16FormatProvider.Invariant is used.

Parameter Type Description
value ReadOnlySpan<char> The hex-encoded character span representing the RSA public key.
provider IFormatProvider? The format provider that determines how value is decoded.

Returns — A new RsaPublicKey decoded from value.

Exceptions

Exception Condition
FormatException value is not a valid encoded key span for the given provider.

TryParse(string?, IFormatProvider?, out RsaPublicKey)

public static bool TryParse(string? value, IFormatProvider? provider, out RsaPublicKey result)

Attempts to parse a string containing the hex-encoded (Base16) raw key bytes into a new RsaPublicKey instance. Does not throw on failure.

Parameter Type Description
value string? The hex-encoded string representing the RSA public key, or null.
provider IFormatProvider? The format provider that determines how value is decoded.
result out RsaPublicKey When the method returns, contains the parsed RsaPublicKey, or a default-initialized instance if parsing failed.

Returns — true if value was successfully parsed; otherwise, false.

TryParse(ReadOnlySpan<char>, IFormatProvider?, out RsaPublicKey)

public static bool TryParse(ReadOnlySpan<char> value, IFormatProvider? provider, out RsaPublicKey result)

Attempts to parse a span containing the hex-encoded (Base16) raw key bytes into a new RsaPublicKey instance. Does not throw on failure.

Parameter Type Description
value ReadOnlySpan<char> The hex-encoded character span representing the RSA public key.
provider IFormatProvider? The format provider that determines how value is decoded.
result out RsaPublicKey When the method returns, contains the parsed RsaPublicKey, or a default-initialized instance if parsing failed.

Returns — true if value was successfully parsed; otherwise, false.

Instance Methods

Method Returns Description
Export() byte[] Exports the RSA public key as SubjectPublicKeyInfo (SPKI) DER bytes.
ExportPem() string Exports the RSA public key as a PUBLIC KEY PEM string.
IsDataValid(ReadOnlySpan<byte>, ReadOnlySpan<byte>, HashAlgorithmName, RSASignaturePadding) bool Checks if a span of data matches the given raw signature.
IsDataValid(ReadOnlySpan<byte>, ReadOnlySpan<byte>, int, int, HashAlgorithmName, RSASignaturePadding) bool Checks if a byte-range slice matches the given raw signature.
IsDataValid(ReadOnlySpan<byte>, Stream, HashAlgorithmName, RSASignaturePadding) bool Checks if a Stream matches the given raw signature.
IsDataValid(ReadOnlySpan<byte>, IBinaryConvertible, HashAlgorithmName, RSASignaturePadding) bool Checks if an IBinaryConvertible matches the given raw signature.
IsDataValid(DigitalSignature, ReadOnlySpan<byte>, HashAlgorithmName, RSASignaturePadding) bool Checks if a span of data matches a DigitalSignature.
IsDataValid(DigitalSignature, ReadOnlySpan<byte>, int, int, HashAlgorithmName, RSASignaturePadding) bool Checks if a byte-range slice matches a DigitalSignature.
IsDataValid(DigitalSignature, Stream, HashAlgorithmName, RSASignaturePadding) bool Checks if a Stream matches a DigitalSignature.
IsDataValid(DigitalSignature, IBinaryConvertible, HashAlgorithmName, RSASignaturePadding) bool Checks if an IBinaryConvertible matches a DigitalSignature.
IsHashValid(ReadOnlySpan<byte>, ReadOnlySpan<byte>, HashAlgorithmName, RSASignaturePadding) bool Checks if a raw hash span matches the given raw signature.
IsHashValid(ReadOnlySpan<byte>, Hash, HashAlgorithmName, RSASignaturePadding) bool Checks if a Hash matches the given raw signature.
IsHashValid(DigitalSignature, ReadOnlySpan<byte>, HashAlgorithmName, RSASignaturePadding) bool Checks if a raw hash span matches a DigitalSignature.
IsHashValid(DigitalSignature, Hash, HashAlgorithmName, RSASignaturePadding) bool Checks if a Hash matches a DigitalSignature.
VerifyData(ReadOnlySpan<byte>, ReadOnlySpan<byte>, HashAlgorithmName, RSASignaturePadding) void Verifies a span of data with a raw signature; throws on failure.
VerifyData(ReadOnlySpan<byte>, ReadOnlySpan<byte>, int, int, HashAlgorithmName, RSASignaturePadding) void Verifies a byte-range slice with a raw signature; throws on failure.
VerifyData(ReadOnlySpan<byte>, Stream, HashAlgorithmName, RSASignaturePadding) void Verifies a Stream with a raw signature; throws on failure.
VerifyData(ReadOnlySpan<byte>, IBinaryConvertible, HashAlgorithmName, RSASignaturePadding) void Verifies an IBinaryConvertible with a raw signature; throws on failure.
VerifyData(DigitalSignature, ReadOnlySpan<byte>, HashAlgorithmName, RSASignaturePadding) void Verifies a span of data with a DigitalSignature; throws on failure.
VerifyData(DigitalSignature, ReadOnlySpan<byte>, int, int, HashAlgorithmName, RSASignaturePadding) void Verifies a byte-range slice with a DigitalSignature; throws on failure.
VerifyData(DigitalSignature, Stream, HashAlgorithmName, RSASignaturePadding) void Verifies a Stream with a DigitalSignature; throws on failure.
VerifyData(DigitalSignature, IBinaryConvertible, HashAlgorithmName, RSASignaturePadding) void Verifies an IBinaryConvertible with a DigitalSignature; throws on failure.
VerifyHash(ReadOnlySpan<byte>, ReadOnlySpan<byte>, HashAlgorithmName, RSASignaturePadding) void Verifies a raw hash span with a raw signature; throws on failure.
VerifyHash(ReadOnlySpan<byte>, Hash, HashAlgorithmName, RSASignaturePadding) void Verifies a Hash with a raw signature; throws on failure.
VerifyHash(DigitalSignature, ReadOnlySpan<byte>, HashAlgorithmName, RSASignaturePadding) void Verifies a raw hash span with a DigitalSignature; throws on failure.
VerifyHash(DigitalSignature, Hash, HashAlgorithmName, RSASignaturePadding) void Verifies a Hash with a DigitalSignature; throws on failure.
ToNamedPublicKey() NamedPublicKey Creates a NamedPublicKey tagging this key with the algorithm name "RSA".

Inherited members that are unchanged — AsReadOnlyMemory(), AsReadOnlySpan(), Equals(PublicKey?), Equals(object?), GetHash(HashAlgorithm), GetHashCode(), ToString(), ToString(IFormatProvider), and the == / != operators — are documented on the PublicKey page.


Export()

public byte[] Export()

Exports the RSA public key as SubjectPublicKeyInfo (SPKI) DER-encoded bytes (equivalent to RSA.ExportSubjectPublicKeyInfo()).

Returns — A byte[] containing the RSA public key in SPKI DER format.

Exceptions

Exception Condition
CryptographicException The key material could not be exported.

ExportPem()

public string ExportPem()

Exports the RSA public key as an RFC 7468 PEM string with the PUBLIC KEY label (SubjectPublicKeyInfo).

Returns — A string containing the PEM-encoded RSA public key.

Exceptions

Exception Condition
CryptographicException The key material could not be exported.

IsDataValid overloads

public bool IsDataValid(ReadOnlySpan<byte> signature, ReadOnlySpan<byte> data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsDataValid(ReadOnlySpan<byte> signature, ReadOnlySpan<byte> data, int offset, int count, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsDataValid(ReadOnlySpan<byte> signature, Stream data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsDataValid(ReadOnlySpan<byte> signature, IBinaryConvertible data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsDataValid(DigitalSignature signature, ReadOnlySpan<byte> data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsDataValid(DigitalSignature signature, ReadOnlySpan<byte> data, int offset, int count, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsDataValid(DigitalSignature signature, Stream data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsDataValid(DigitalSignature signature, IBinaryConvertible data, HashAlgorithmName algorithm, RSASignaturePadding padding)

Determines whether the specified data was signed by the RSA private key corresponding to this public key, using the specified hash algorithm and padding. Returns true or false; does not throw on a verification failure.

Parameter Type Description
signature ReadOnlySpan<byte> or DigitalSignature The signature to validate.
data ReadOnlySpan<byte> / Stream / IBinaryConvertible The unsigned data to validate.
offset int (slice overloads) The offset into the span from which to begin reading.
count int (slice overloads) The number of bytes to read from the span.
algorithm HashAlgorithmName The hash algorithm used when signing.
padding RSASignaturePadding The RSA signature padding mode used when signing.

Returns — true if the signature is valid for the supplied data; otherwise false.

IsHashValid overloads

public bool IsHashValid(ReadOnlySpan<byte> signature, ReadOnlySpan<byte> hash, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsHashValid(ReadOnlySpan<byte> signature, Hash hash, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsHashValid(DigitalSignature signature, ReadOnlySpan<byte> hash, HashAlgorithmName algorithm, RSASignaturePadding padding)
public bool IsHashValid(DigitalSignature signature, Hash hash, HashAlgorithmName algorithm, RSASignaturePadding padding)

Determines whether the specified pre-computed hash was signed by the RSA private key corresponding to this public key. Returns true or false; does not throw on a verification failure.

Parameter Type Description
signature ReadOnlySpan<byte> or DigitalSignature The signature to validate.
hash ReadOnlySpan<byte> or Hash The pre-computed hash to validate.
algorithm HashAlgorithmName The hash algorithm used when signing.
padding RSASignaturePadding The RSA signature padding mode used when signing.

Returns — true if the signature is valid for the supplied hash; otherwise false.

VerifyData overloads

public void VerifyData(ReadOnlySpan<byte> signature, ReadOnlySpan<byte> data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyData(ReadOnlySpan<byte> signature, ReadOnlySpan<byte> data, int offset, int count, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyData(ReadOnlySpan<byte> signature, Stream data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyData(ReadOnlySpan<byte> signature, IBinaryConvertible data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyData(DigitalSignature signature, ReadOnlySpan<byte> data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyData(DigitalSignature signature, ReadOnlySpan<byte> data, int offset, int count, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyData(DigitalSignature signature, Stream data, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyData(DigitalSignature signature, IBinaryConvertible data, HashAlgorithmName algorithm, RSASignaturePadding padding)

Verifies that the specified data was signed by the RSA private key corresponding to this public key. Throws CryptographicException if verification fails. Use this overload family on fail-fast paths where an invalid signature should abort the operation.

Parameters match those of the IsDataValid overloads above.

Exceptions

Exception Condition
CryptographicException The signature is not valid for the supplied data and key.

VerifyHash overloads

public void VerifyHash(ReadOnlySpan<byte> signature, ReadOnlySpan<byte> hash, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyHash(ReadOnlySpan<byte> signature, Hash hash, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyHash(DigitalSignature signature, ReadOnlySpan<byte> hash, HashAlgorithmName algorithm, RSASignaturePadding padding)
public void VerifyHash(DigitalSignature signature, Hash hash, HashAlgorithmName algorithm, RSASignaturePadding padding)

Verifies that the specified pre-computed hash was signed by the RSA private key corresponding to this public key. Throws CryptographicException if verification fails.

Parameters match those of the IsHashValid overloads above.

Exceptions

Exception Condition
CryptographicException The signature is not valid for the supplied hash and key.

ToNamedPublicKey()

public override NamedPublicKey ToNamedPublicKey()

Creates a new NamedPublicKey that pairs this RsaPublicKey with the algorithm name "RSA".

Returns — A NamedPublicKey with AlgorithmName equal to "RSA" and PublicKey equal to this instance.

Conversion Operators

Operator Description
implicit operator RsaPublicKey(ReadOnlySpan<byte>) Implicitly converts a ReadOnlySpan<byte> to an RsaPublicKey.
implicit operator RsaPublicKey(ReadOnlyMemory<byte>) Implicitly converts a ReadOnlyMemory<byte> to an RsaPublicKey.
implicit operator RsaPublicKey(ReadOnlySequence<byte>) Implicitly converts a ReadOnlySequence<byte> to an RsaPublicKey.

implicit operator RsaPublicKey(ReadOnlySpan<byte>)

public static implicit operator RsaPublicKey(ReadOnlySpan<byte> value)

Creates a new RsaPublicKey instance from the specified ReadOnlySpan<byte> value. Equivalent to calling the RsaPublicKey(ReadOnlySpan<byte>) constructor.

implicit operator RsaPublicKey(ReadOnlyMemory<byte>)

public static implicit operator RsaPublicKey(ReadOnlyMemory<byte> value)

Creates a new RsaPublicKey instance from the specified ReadOnlyMemory<byte> value. Equivalent to calling the RsaPublicKey(ReadOnlyMemory<byte>) constructor.

implicit operator RsaPublicKey(ReadOnlySequence<byte>)

public static implicit operator RsaPublicKey(ReadOnlySequence<byte> value)

Creates a new RsaPublicKey instance from the specified ReadOnlySequence<byte> value. Equivalent to calling the RsaPublicKey(ReadOnlySequence<byte>) constructor.

See Also

ONIXLabs .NET Library


Clone this wiki locally