pubdev/dartssh/pem library
Classes
- OpenSSHBCryptKDFOptions
- The options: string salt, uint32 rounds are concatenated and represented as a string.
- OpenSSHECDSAPrivateKey
- https://github.com/openssh/openssh-portable/blob/master/sshkey.c#L3223
- OpenSSHEd25519PrivateKey
- https://github.com/openssh/openssh-portable/blob/master/sshkey.c#L2446
- OpenSSHKey
- https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key
- OpenSSHPrivateKeyHeader
- Before the key is encrypted, a random integer is assigned to both checkint fields so successful decryption can be quickly checked by verifying that both checkint fields hold the same value.
- OpenSSHRSAPrivateKey
- https://github.com/openssh/openssh-portable/blob/master/sshkey.c#L3274
- RSAPrivateKey
- https://tools.ietf.org/html/rfc3447#appendix-A.1.2
Functions
-
bcryptHash(
Uint8List pass, Uint8List salt) → Uint8List -
bcryptPbkdf(
Uint8List password, Uint8List salt, int length, int rounds) → Uint8List -
opensshKeyCrypt(
bool forEncryption, Uint8List password, Uint8List salt, int rounds, Uint8List input, int cipherAlgo) → Uint8List -
parsePem(
String text, {StringFunction getPassword, Identity identity}) → Identity - Privacy-Enhanced Mail (PEM) is a de facto file format for storing and sending cryptographic keys, certificates, and other data.