From 3c2967b5a1ef3e4f9cd6f166e71c3910295284d2 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Mon, 22 Jul 2019 09:20:54 +0200 Subject: [PATCH] Fix documentation for Dilithium `crypto_sign_open` It mentioned `sk` instead of `pk` as specified in the arguments. Closes #205. --- crypto_sign/dilithium2/clean/sign.c | 2 +- crypto_sign/dilithium3/clean/sign.c | 2 +- crypto_sign/dilithium4/clean/sign.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto_sign/dilithium2/clean/sign.c b/crypto_sign/dilithium2/clean/sign.c index 4fc469ef..b6b2e28f 100644 --- a/crypto_sign/dilithium2/clean/sign.c +++ b/crypto_sign/dilithium2/clean/sign.c @@ -367,7 +367,7 @@ int PQCLEAN_DILITHIUM2_CLEAN_crypto_sign(uint8_t *sm, * - unsigned long long *mlen: pointer to output length of message * - const unsigned char *sm: pointer to signed message * - unsigned long long smlen: length of signed message -* - const unsigned char *sk: pointer to bit-packed public key +* - const unsigned char *pk: pointer to bit-packed public key * * Returns 0 if signed message could be verified correctly and -1 otherwise **************************************************/ diff --git a/crypto_sign/dilithium3/clean/sign.c b/crypto_sign/dilithium3/clean/sign.c index 057ee1bb..8818a8ab 100644 --- a/crypto_sign/dilithium3/clean/sign.c +++ b/crypto_sign/dilithium3/clean/sign.c @@ -367,7 +367,7 @@ int PQCLEAN_DILITHIUM3_CLEAN_crypto_sign(uint8_t *sm, * - unsigned long long *mlen: pointer to output length of message * - const unsigned char *sm: pointer to signed message * - unsigned long long smlen: length of signed message -* - const unsigned char *sk: pointer to bit-packed public key +* - const unsigned char *pk: pointer to bit-packed public key * * Returns 0 if signed message could be verified correctly and -1 otherwise **************************************************/ diff --git a/crypto_sign/dilithium4/clean/sign.c b/crypto_sign/dilithium4/clean/sign.c index 3961bb7c..70c4679b 100644 --- a/crypto_sign/dilithium4/clean/sign.c +++ b/crypto_sign/dilithium4/clean/sign.c @@ -367,7 +367,7 @@ int PQCLEAN_DILITHIUM4_CLEAN_crypto_sign(uint8_t *sm, * - unsigned long long *mlen: pointer to output length of message * - const unsigned char *sm: pointer to signed message * - unsigned long long smlen: length of signed message -* - const unsigned char *sk: pointer to bit-packed public key +* - const unsigned char *pk: pointer to bit-packed public key * * Returns 0 if signed message could be verified correctly and -1 otherwise **************************************************/