From: Loup Vaillant Date: Fri, 14 Jan 2022 22:03:32 +0000 (+0100) Subject: Renamed 'Sha512' to 'SHA-512' X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=e1f162bfe85fc45ec7bfca9fe1f014ad925e6f3c;p=Monocypher.git Renamed 'Sha512' to 'SHA-512' --- diff --git a/tests/speed/speed-sodium.c b/tests/speed/speed-sodium.c index 857308a..2161a8f 100644 --- a/tests/speed/speed-sodium.c +++ b/tests/speed/speed-sodium.c @@ -181,7 +181,7 @@ int main() print("Poly1305 ",poly1305() *MUL,"megabytes per second"); print("Auth'd encryption",authenticated()*MUL,"megabytes per second"); print("BLAKE2b ",blake2b() *MUL,"megabytes per second"); - print("Sha512 ",sha512() *MUL,"megabytes per second"); + print("SHA-512 ",sha512() *MUL,"megabytes per second"); print("Argon2i, 3 passes",argon2i() *MUL,"megabytes per second"); print("x25519 ",x25519() ,"exchanges per second"); print("EdDSA(sign) ",edDSA_sign() ,"signatures per second"); diff --git a/tests/speed/speed-tweetnacl.c b/tests/speed/speed-tweetnacl.c index 204f9d2..5db83c4 100644 --- a/tests/speed/speed-tweetnacl.c +++ b/tests/speed/speed-tweetnacl.c @@ -160,7 +160,7 @@ int main() print("Salsa20 ",salsa20() *MUL,"megabytes per second"); print("Poly1305 ",poly1305() *MUL,"megabytes per second"); print("Auth'd encryption",authenticated()*MUL,"megabytes per second"); - print("Sha512 ",sha512() *MUL,"megabytes per second"); + print("SHA-512 ",sha512() *MUL,"megabytes per second"); print("x25519 ",x25519() ,"exchanges per second"); print("EdDSA(sign) ",edDSA_sign() ,"signatures per second"); print("EdDSA(check) ",edDSA_check() ,"checks per second"); diff --git a/tests/speed/speed.c b/tests/speed/speed.c index ee64bb8..60be9e2 100644 --- a/tests/speed/speed.c +++ b/tests/speed/speed.c @@ -208,7 +208,7 @@ int main() print("Poly1305 ",poly1305() *MUL ,"megabytes per second"); print("Auth'd encryption ",authenticated()*MUL ,"megabytes per second"); print("BLAKE2b ",blake2b() *MUL ,"megabytes per second"); - print("Sha512 ",sha512() *MUL ,"megabytes per second"); + print("SHA-512 ",sha512() *MUL ,"megabytes per second"); print("Argon2i, 3 passes ",argon2i() *MUL ,"megabytes per second"); print("x25519 ",x25519() ,"exchanges per second"); print("EdDSA(sign) ",edDSA_sign() ,"signatures per second"); diff --git a/tests/test.c b/tests/test.c index fa427c3..29beb3e 100644 --- a/tests/test.c +++ b/tests/test.c @@ -585,7 +585,7 @@ static int p_sha512() // Compare the results (must be the same) status |= memcmp(hash_chunk, hash_whole, 64); } - printf("%s: Sha512 (incremental)\n", status != 0 ? "FAILED" : "OK"); + printf("%s: SHA-512 (incremental)\n", status != 0 ? "FAILED" : "OK"); return status; } @@ -602,7 +602,7 @@ static int p_sha512_overlap() crypto_sha512(input+i, input + 64, SHA_512_BLOCK_SIZE); status |= memcmp(hash, input + i, 64); } - printf("%s: Sha512 (overlapping i/o)\n", status != 0 ? "FAILED" : "OK"); + printf("%s: SHA-512 (overlapping i/o)\n", status != 0 ? "FAILED" : "OK"); return status; }