fn seal(c: []u8, m: []const u8, npub: [nonce_length]u8, k: [key_length]u8) void
[src]
Encrypt and authenticate m
using a nonce npub
and a key k
. c
must be exactly tag_length
longer than m
, as it will store both the ciphertext and the authentication tag.