mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Fix typos
This commit is contained in:
@@ -29,7 +29,7 @@ fill_block(const block *prev_block, const block *ref_block, block *next_block)
|
||||
copy_block(&blockR, ref_block);
|
||||
xor_block(&blockR, prev_block);
|
||||
copy_block(&block_tmp, &blockR);
|
||||
/* Now blockR = ref_block + prev_block and bloc_tmp = ref_block + prev_block
|
||||
/* Now blockR = ref_block + prev_block and block_tmp = ref_block + prev_block
|
||||
Apply Blake2 on columns of 64-bit words: (0,1,...,15), then
|
||||
(16,17,..31)... finally (112,113,...127) */
|
||||
for (i = 0; i < 8; ++i) {
|
||||
@@ -70,7 +70,7 @@ fill_block_with_xor(const block *prev_block, const block *ref_block,
|
||||
copy_block(&block_tmp, &blockR);
|
||||
xor_block(&block_tmp,
|
||||
next_block); /* Saving the next block contents for XOR over */
|
||||
/* Now blockR = ref_block + prev_block and bloc_tmp = ref_block + prev_block
|
||||
/* Now blockR = ref_block + prev_block and block_tmp = ref_block + prev_block
|
||||
* + next_block */
|
||||
/* Apply Blake2 on columns of 64-bit words: (0,1,...,15) , then
|
||||
(16,17,..31)... finally (112,113,...127) */
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
This file is adapted from ref10/scalarmult.c:
|
||||
The code for Mongomery ladder is replace by the ladder assembly function;
|
||||
The code for Montgomery ladder is replaced by the ladder assembly function;
|
||||
Inversion is done in the same way as amd64-51/.
|
||||
(fe is first converted into fe51 after Mongomery ladder)
|
||||
(fe is first converted into fe51 after Montgomery ladder)
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
#ifndef scalarmult_poly1305_H
|
||||
#define scalarmult_poly1305_H
|
||||
#ifndef scalarmult_curve25519_H
|
||||
#define scalarmult_curve25519_H
|
||||
|
||||
typedef struct crypto_scalarmult_curve25519_implementation {
|
||||
int (*mult)(unsigned char *q, const unsigned char *n,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define crypto_hash_sha256_H
|
||||
|
||||
/*
|
||||
* WARNING: Unless you absolutely need to use SHA256 for interoperability,
|
||||
* WARNING: Unless you absolutely need to use SHA256 for interoperability
|
||||
* purposes, you might want to consider crypto_generichash() instead.
|
||||
* Unlike SHA256, crypto_generichash() is not vulnerable to length
|
||||
* extension attacks.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define crypto_hash_sha512_H
|
||||
|
||||
/*
|
||||
* WARNING: Unless you absolutely need to use SHA512 for interoperability,
|
||||
* WARNING: Unless you absolutely need to use SHA512 for interoperability
|
||||
* purposes, you might want to consider crypto_generichash() instead.
|
||||
* Unlike SHA512, crypto_generichash() is not vulnerable to length
|
||||
* extension attacks.
|
||||
|
||||
Reference in New Issue
Block a user