RSAPublicKey class

Public key for RSA encryption

Constructors

RSAPublicKey(BigInt n, BigInt e)
RSAPublicKey.fromASN1(dynamic input, {bool fromPkcs1 = false})
factory
RSAPublicKey.fromPEM(String input)
factory

Properties

bitSize int
no setter
blockSize int
no setter
e BigInt
Public exponent
final
engine RSAEncryptionEngine
no setter
hashCode int
The hash code for this object.
no setterinherited
n BigInt
Modulus
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encrypt(dynamic input, {Padder? padder}) Iterable<int>
encryptOaep(dynamic input, {OAEPPadder? oaepPadder}) Iterable<int>
encryptOaepToBase64(dynamic input, {OAEPPadder? oaepPadder}) String
encryptOaepToHex(dynamic input, {OAEPPadder? oaepPadder}) String
encryptPkcs1v15(dynamic input, {Random? rand}) Iterable<int>
encryptPkcs1v15ToBase64(dynamic input, {Random? rand}) String
encryptPkcs1v15ToHex(dynamic input, {Random? rand}) String
encryptToBase64(dynamic input, {Padder? padder}) String
encryptToHex(dynamic input, {Padder? padder}) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toASN1({bool toPkcs1 = false, Iterable<ASN1Object>? parameters}) String
toPem({bool toPkcs1 = false}) String
toString() String
A string representation of this object.
override
verifySsaPkcs1v15(dynamic signature, dynamic msg, {EmsaHasher? hasher}) bool
verifySsaPss(dynamic signature, dynamic msg, {Mgf? mgf, Hash? hasher, int saltLength = 10, RsaSsaPssVerifier? verifier}) bool

Operators

operator ==(Object other) bool
The equality operator.
inherited