pub fn x_salsa20_poly1305_decrypt(
    key_ref: XSalsa20Poly1305KeyRef,
    encrypted_data: XSalsa20Poly1305EncryptedData,
) -> ExternResult<Option<XSalsa20Poly1305Data>> {
    host_call::<XSalsa20Poly1305Decrypt, Option<XSalsa20Poly1305Data>>(
        __x_salsa20_poly1305_decrypt,
        holochain_zome_types::x_salsa20_poly1305::XSalsa20Poly1305Decrypt::new(
            key_ref,
            encrypted_data,
        ),
    )
}
/// Libsodium secret-key authenticated encryption: secretbox_open
///
/// Opens encrypted data created by secretbox.
///
/// If the encrypted data fails authentication and cannot be decrypted this function returns None.
///
/// This means that if any decrypted data is returned by this function it was created by a holder
/// of the shared key and has not been tampered with.
///
/// @see https://www.imperialviolet.org/2015/05/16/aeads.html
Libsodium secret-key authenticated encryption: secretbox_open
Opens encrypted data created by secretbox.

If the encrypted data fails authentication and cannot be decrypted this function returns None.

This means that if any decrypted data is returned by this function it was created by a holder
of the shared key and has not been tampered with.
Libsodium secret - key authenticated encryption : secretbox_open Opens encrypted data created by secretbox . If the encrypted data fails authentication and cannot be decrypted this function returns None . This means that if any decrypted data is returned by this function it was created by a holder of the shared key and has not been tampered with .
pub fn x_salsa20_poly1305_decrypt(
    key_ref: XSalsa20Poly1305KeyRef,
    encrypted_data: XSalsa20Poly1305EncryptedData,
) -> ExternResult<Option<XSalsa20Poly1305Data>> {
    host_call::<XSalsa20Poly1305Decrypt, Option<XSalsa20Poly1305Data>>(
        __x_salsa20_poly1305_decrypt,
        holochain_zome_types::x_salsa20_poly1305::XSalsa20Poly1305Decrypt::new(
            key_ref,
            encrypted_data,
        ),
    )
}
pub fn x_salsa20_poly1305_decrypt ( key_ref : XSalsa20Poly1305KeyRef , encrypted_data : XSalsa20Poly1305EncryptedData , ) -> ExternResult < Option < XSalsa20Poly1305Data > > { host_call :: < XSalsa20Poly1305Decrypt , Option < XSalsa20Poly1305Data > > ( __x_salsa20_poly1305_decrypt , holochain_zome_types :: x_salsa20_poly1305 :: XSalsa20Poly1305Decrypt :: new ( key_ref , encrypted_data , ) , ) }
Libsodium secret-key authenticated encryption: secretbox_open
Opens encrypted data created by secretbox.
Libsodium secret - key authenticated encryption : secretbox_open Opens encrypted data created by secretbox .
key_ref
XSalsa20Poly1305KeyRef
encrypted_data
XSalsa20Poly1305EncryptedData
key_ref
XSalsa20Poly1305KeyRef
encrypted_data
XSalsa20Poly1305EncryptedData
see
None