Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

Commit 397e7d4

Browse files
author
Constanza Heath
committed
Remove whitespace
Signed-off-by: Constanza Heath <[email protected]>
1 parent e100a0d commit 397e7d4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

lib/hmac_prng.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
* hmac_prng.h -- Interface to an HMAC-PRNG implementation.
3232
*
3333
* Overview: A pseudo-random number generator (PRNG) generates a sequence
34-
* of numbers that have a distribution close to the one expected
35-
* for a sequence of truly random numbers. The NIST Special
36-
* Publication 800-90A specifies several mechanisms to generate
37-
* sequences of pseudo random numbers, including the HMAC-PRNG one
38-
* which is based on HMAC. TinyCrypt implements HMAC-PRNG with
39-
* certain modifications from the NIST SP 800-90A spec.
34+
* of numbers that have a distribution close to the one expected
35+
* for a sequence of truly random numbers. The NIST Special
36+
* Publication 800-90A specifies several mechanisms to generate
37+
* sequences of pseudo random numbers, including the HMAC-PRNG one
38+
* which is based on HMAC. TinyCrypt implements HMAC-PRNG with
39+
* certain modifications from the NIST SP 800-90A spec.
4040
*
4141
* Security: A cryptographically secure PRNG depends on the existence of an
42-
* entropy source to provide a truly random seed as well as the
43-
* security of the primitives used as the building blocks (HMAC and
44-
* SHA256, for TinyCrypt).
42+
* entropy source to provide a truly random seed as well as the
43+
* security of the primitives used as the building blocks (HMAC and
44+
* SHA256, for TinyCrypt).
4545
*
4646
* The NIST SP 800-90A standard tolerates a null personalization,
4747
* while TinyCrypt requires a non-null personalization. This is

lib/sha256.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int32_t tc_sha256_final (uint8_t *digest, TCSha256State_t s) {
134134
}
135135

136136
/* Initializing SHA-256 Hash constant words K.
137-
These values correspond to the first 32 bits of the fractional parts of the
137+
These values correspond to the first 32 bits of the fractional parts of the
138138
cube roots of the first 64 primes between 2 and 311. */
139139
static const uint32_t k256[64] = {
140140
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1,

0 commit comments

Comments
 (0)