class RbNaCl::AEAD::XChaCha20Poly1305IETF
Authenticated Encryption with Additional Data using ChaCha20-Poly1305
This class contains wrappers for the IETF implementation of
def do_decrypt(message, message_len, nonce, ciphertext, additional_data)
def do_decrypt(message, message_len, nonce, ciphertext, additional_data) self.class.aead_xchacha20poly1305_ietf_decrypt(message, message_len, nil, ciphertext, data_len(ciphertext), additional_data, data_len(additional_data), nonce, @key) end
def do_encrypt(ciphertext, ciphertext_len, nonce, message, additional_data)
def do_encrypt(ciphertext, ciphertext_len, nonce, message, additional_data) self.class.aead_xchacha20poly1305_ietf_encrypt(ciphertext, ciphertext_len, message, data_len(message), additional_data, data_len(additional_data), nil, nonce, @key) end