core/crypto/rsa library
Classes
- RsaPrivateKey
- Implementation of RSA private key
- RsaPublicKey
- Implementation of RSA public key
Constants
- maxRsaKeyBits → const int
- Maximum RSA key size in bits
- minRsaKeyBits → const int
- Minimum RSA key size in bits
Functions
-
generateRsaKeyPair(
{int bits = 2048}) → Future< KeyPair> - Generate a new RSA key pair with the specified number of bits
-
unmarshalRsaPublicKey(
Uint8List bytes) → PublicKey - Creates an RsaPublicKey from its protobuf bytes
Exceptions / Errors
- RsaKeyTooBigException
- Exception thrown when an RSA key is too big
- RsaKeyTooSmallException
- Exception thrown when an RSA key is too small