fn decrypt(m: []u8, c: []const u8, tag: [tag_length]u8, ad: []const u8, npub: [nonce_length]u8, k: [key_length]u8) AuthenticationError!void

m: message: output buffer should be of size c.len c: ciphertext tag: authentication tag ad: Associated Data npub: public nonce k: private key

Parameters

m: []u8,
c: []const u8,
tag: [tag_length]u8,
ad: []const u8,
npub: [nonce_length]u8,
k: [key_length]u8,