- encodePbes2Params
Vector!ubyte encodePbes2Params(string cipher, string prf, SecureVector!ubyte salt, SecureVector!ubyte iv, size_t iterations, size_t key_length)
Undocumented in source. Be warned that the author may not have intended to support it.
- pbes2Decrypt
SecureVector!ubyte pbes2Decrypt(SecureVector!ubyte key_bits, string passphrase, Vector!ubyte params, AlgorithmFactory af)
Decrypt a PKCS #5 v2.0 encrypted stream
key_bits = the input
passphrase = the passphrase to use for decryption
params = the PBES2 parameters
- pbes2Encrypt
Pair!(AlgorithmIdentifier, Array!ubyte) pbes2Encrypt(SecureVector!ubyte key_bits, string passphrase, Duration msec, string cipher, string digest, RandomNumberGenerator rng, AlgorithmFactory af)
Encrypt with PBES2 from PKCS #5 v2.0
key_bits = the passphrase to use for encryption
msec = how many milliseconds to run PBKDF2
cipher = specifies the block cipher to use to encrypt
digest = specifies the PRF to use with PBKDF2 (eg "HMAC(SHA-1)")
rng = a random number generator
PKCS #5 v2.0 PBE