rsa library

Functions

bigIntToBytes(BigInt number) Uint8List
bytesToBigInt(List<int> data) BigInt
checkPub(RSAPrivateKey privateKey) bool
decodePublicKeyFromPKIX(Uint8List encodedBytes) → RSAPublicKey
decrypt(RSAPrivateKey privateKey, BigInt c) BigInt
emsaPSSVerify(List<int> mHash, List<int> em, int emBits, int sLen) bool
encodePrivateKeyToPemPKCS1(RSAPrivateKey privateKey) Uint8List
encodePublicKeyToPKIX(RSAPublicKey publicKey) Uint8List
encrypt(RSAPublicKey pub, BigInt m) BigInt
exampleSecureRandom() → SecureRandom
fillBytes(BigInt v, int len) List<int>
generateRSAkeyPair({int bitLength = 2048}) → AsymmetricKeyPair<RSAPublicKey, RSAPrivateKey>
incCounter(List<int> c) → void
mgf1XOR(List<int> data, int outOffset, int outSize, List<int> seed, int seedOffset, int seedSize) → void
readBytes(Uint8List bytes) BigInt
rsaDecrypt(RSAPrivateKey privateKey, Uint8List ciphertext) Future<Uint8List>
rsaEncrypt(RSAPublicKey myPublic, Uint8List dataToEncrypt) Future<Uint8List>
rsaPublicKeyToPem(RSAPublicKey publicKey) String
rsaSign(RSAPrivateKey privateKey, Uint8List dataToSign) Uint8List
rsaVerify(RSAPublicKey publicKey, List<int> signedData, Uint8List signature) bool