ninja_openssl library

Classes

HashName

Functions

decryptRsaOaep(String privateKey, dynamic message, {HashName digest: HashName.sha256, bool cleanupTempDirectory: true}) Future<Uint8List>
openssl pkeyutl -decrypt -pkeyopt rsa_padding_mode:oaep -in hello.encrypted -inkey myprivate.pem openssl rsautl -decrypt -oaep -in encrypted.dat -inkey privatekey.pem
decryptRsaPkcs1v15(String privateKey, dynamic message, {bool cleanupTempDirectory: true}) Future<Uint8List>
openssl pkeyutl -decrypt -pkeyopt rsa_padding_mode:pkcs1 -in encrypted.dat -inkey myprivate.pem
encryptRsaOaep(String publicKey, dynamic message, {HashName digest: HashName.sha256, bool cleanupTempDirectory: true}) Future<Uint8List>
openssl pkeyutl -encrypt -pkeyopt rsa_padding_mode:oaep -in hello.txt -pubin -inkey publickey.pem openssl rsautl -encrypt -oaep -in message.txt -pubin -inkey publickey.pem
encryptRsaPkcs1v15(String publicKey, dynamic message, {HashName digest: HashName.sha256, bool cleanupTempDirectory: true}) Future<Uint8List>
openssl pkeyutl -encrypt -pkeyopt rsa_padding_mode:pkcs1 -in message.txt -pubin -inkey publickey.pem
signRsaPkcs1(String privateKey, String message, {HashName digest: HashName.sha256}) Future<List<int>>
signRsaPss(String privateKey, String message, {HashName digest: HashName.sha256, int saltLength: 20}) Future<List<int>>
openssl dgst -sha256 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:10 -sign myprivate.pem <(echo 'hello world!')
signRsaPssBase64(String privateKey, String message, {HashName digest: HashName.sha256, int saltLength: 20}) Future<String>
verifyRsaPkcs1(String publicKey, dynamic signature, dynamic message, {HashName digest: HashName.sha256, bool cleanupTempDirectory: true}) Future<bool>
verifyRsaPss(String publicKey, dynamic signature, dynamic message, {HashName digest: HashName.sha256, int saltLength: 20, bool cleanupTempDirectory: true}) Future<bool>
openssl dgst -sha256 -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:10 -sign myprivate.pem <(echo 'hello world!')

Exceptions / Errors

OpensslException