Skip to content

Commit 2dc4afc

Browse files
authored
chore: fix typos across codebase (open-quantum-safe#2244)
* Update PROCEDURES.md Signed-off-by: sukrucildirr <sukrucildirr@gmail.com> * Update FUZZING.md Signed-off-by: sukrucildirr <sukrucildirr@gmail.com> * Update vectors_kem.c Signed-off-by: sukrucildirr <sukrucildirr@gmail.com> * Update ossl_functions.h Signed-off-by: sukrucildirr <sukrucildirr@gmail.com> --------- Signed-off-by: sukrucildirr <sukrucildirr@gmail.com>
1 parent da42a97 commit 2dc4afc

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/FUZZING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ You'll now be able to run a fuzz test e.g.
4343
#9764 NEW cov: 4 ft: 708 corp: 100/318b lim: 43 exec/s: 9764 rss: 362Mb L: 41/41 MS: 4 EraseBytes-InsertRepeatedBytes-CMP-ChangeBit- DE: "\0004m\372"-
4444
...
4545
```
46-
The fuzzer will run indefinetely or;
46+
The fuzzer will run indefinitely or;
4747
- until it finds a bug and crashes,
4848
- you manually stop the fuzzer i.e. CTRL-C
4949
- you set a timeout using the command line.

docs/PROCEDURES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To add a new, or changed dependency:
3232

3333
### Github Actions
3434

35-
All actions used in `.github/worfklows` should pin the exact version of the action they are using, for
35+
All actions used in `.github/workflows` should pin the exact version of the action they are using, for
3636
example a step such as:
3737

3838
```yaml

src/common/ossl_functions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// This file lists all OpenSSL functions used throughout the liboqs source code.
44
//
55
// Note that this file is included multiple times to generate custom
6-
// code by definining the FUNC macro, so no header guard should be
6+
// code by defining the FUNC macro, so no header guard should be
77
// added here.
88

99
VOID_FUNC(void, ERR_print_errors_fp, (FILE *fp), (fp))

tests/vectors_kem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static inline bool sanityCheckSK(const uint8_t *sk, const char *method_name) {
117117
fprintf(stderr, "K value can be fetched only for ML-KEM !\n");
118118
return false;
119119
}
120-
/* calcualte hash of the public key(len = 384k+32) stored in private key at offset of 384k */
120+
/* calculate hash of the public key(len = 384k+32) stored in private key at offset of 384k */
121121
OQS_SHA3_sha3_256(pkdig, sk + (ML_KEM_POLYBYTES * K), (ML_KEM_POLYBYTES * K) + 32);
122122
/* compare it with public key hash stored at 768k+32 offset */
123123
if (0 != memcmp(pkdig, sk + (ML_KEM_POLYBYTES * K * 2) + 32, SHA3_256_OP_LEN)) {
@@ -170,7 +170,7 @@ static inline bool sanityCheckPK(const uint8_t *pk, size_t pkLen, const char *me
170170
buff_enc[3 * j + 2] = (uint8_t)(t1 >> 4);
171171
}
172172
}
173-
/* compare the encoded value with original public key. discard value of `rho(32 bytes)` during comparision as its not encoded */
173+
/* compare the encoded value with original public key. discard value of `rho(32 bytes)` during comparison as its not encoded */
174174
if (0 != memcmp(buffe, pk, pkLen - 32)) {
175175
return false;
176176
}

0 commit comments

Comments
 (0)