pass_decrypt


Description:

public uint8[]? pass_decrypt (uint8[] ciphertext, uint8[]? passphrase, out ErrDecryption error)

Decrypts the given data with the given passphrase.

The output array must be at least ciphertext.length - pass_encryption_extra_length bytes long. This delegates to PassKey.decrypt.

Parameters:

ciphertext

A byte array of length ciphertext.length.

passphrase

The user-provided password. Can be empty.

Returns:

plaintext on success.


Namespace: ToxEncryptSave
Package: toxcore