Box
Functions
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
The crypto_box_beforenm() function computes a shared secret key given a public key pk and a secret key sk, and puts it into k (crypto_box_BEFORENMBYTES bytes).
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
This function encrypts a message m of length mlen with a nonce n and a secret key sk for a recipient whose public key is pk, and puts the encrypted message into c. Exactly mlen bytes will be put into c, since this function does not prepend the authentication tag. The tag, whose size is crypto_box_MACBYTES bytes, will be put into mac.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The crypto_box_easy() function encrypts a message m whose length is mlen bytes, with a recipient's public key pk, a sender's secret key sk and a nonce n. n should be crypto_box_NONCEBYTES bytes. c should be at least crypto_box_MACBYTES + mlen bytes long. This function writes the authentication tag, whose length is crypto_box_MACBYTES bytes, in c, immediately followed by the encrypted message, whose length is the same as the plaintext: mlen.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pk (crypto_box_PUBLICKEYBYTES bytes) and the secret key into sk (crypto_box_SECRETKEYBYTES bytes).
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_detached() function verifies and decrypts an encrypted message c whose length is clen using the recipient's secret key sk and the sender's public key pk. clen doesn't include the tag, so this length is the same as the plaintext. The plaintext is put into m after verifying that mac is a valid authentication tag for this ciphertext, with the given nonce n and key k. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The crypto_box_open_easy() function verifies and decrypts a ciphertext produced by crypto_box_easy(). c is a pointer to an authentication tag + encrypted message combination, as produced by crypto_box_easy(). clen is the length of this authentication tag + encrypted message combination. Put differently, clen is the number of bytes written by crypto_box_easy(), which is crypto_box_MACBYTES + the length of the message. The nonce n has to match the nonce used to encrypt and authenticate the message. pk is the public key of the sender that encrypted the message. sk is the secret key of the recipient that is willing to verify and decrypt it. The function throws BoxCorruptedOrTamperedDataException if the verification fails.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
The _afternm variants of the previously described functions accept a precalculated shared secret key k instead of a key pair.
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).
Using crypto_box_seed_keypair(), the key pair can also be deterministically derived from a single key seed (crypto_box_SEEDBYTES bytes).