Skip to content

Commit b621330

Browse files
authored
Merge pull request #197 from libtom/update/doc
Update documentation
2 parents a9d9466 + f8d132e commit b621330

25 files changed

Lines changed: 1159 additions & 220 deletions

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ The following list does not claim to be complete resp. to be available across al
8989
| `sizes` | builds the `sizes` binary, printing all internal data sizes on invocation *\*4* |
9090
| `constants` | builds the `constants` binary, printing all internal constants on invocation *\*4* |
9191
| `openssl-enc` | builds the `openssl-enc` binary, which is more or less compatible to [`openssl enc`](https://linux.die.net/man/1/enc) *\*4* *\*5* |
92-
| `test` | builds the `test` binary, which runs all algorithm self-tests + some extended tests *\*4* *\*6* |
93-
| `timing` | builds the `timing` binary, which can be used to measure timings for algorithms and modes *\*4* *\*6* |
92+
| `test` | builds the `test` binary, which runs all algorithm self-tests + some extended tests *\*4* |
93+
| `timing` | builds the `timing` binary, which can be used to measure timings for algorithms and modes *\*4* |
9494
| `bins` | builds `hashsum` *\*4* |
9595
| `all_test` | builds `test`, `hashsum`, `ltcrypt`, `small`, `tv_gen`, `sizes` & `constants` *\*4* |
9696
| `docs` | builds the developer documentation `doc/crypt.pdf` |
@@ -105,8 +105,6 @@ The following list does not claim to be complete resp. to be available across al
105105

106106
*\*5* broken build in some configurations, therefore not built by default
107107

108-
*\*6* requires define of one of `USE_GMP`, `USE_LTM` or `USE_TFM` (+ the appropriate MPI provider)
109-
110108
*\*7* also builds the necessary artifact(s) before installing it
111109

112110
*\*8* also have a look at the 'Installation' section of this file

TODO

Lines changed: 0 additions & 3 deletions
This file was deleted.

changes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ v1.18.0
2222
XTS mode and RSA private key operations with keys without CRT parameters
2323
-- RC2 now also works with smaller key-sizes
2424
-- Improved/extended several tests & demos
25+
-- Hardened DSA and RSA by testing (through Karel's perl-CryptX)
26+
against Google's "Wycheproof" and Kudelski Security's "CDF"
2527
-- Fixed all compiler warnings
2628
-- Fixed several build issues on FreeBSD, NetBSD, Linux x32 ABI, HP-UX/IA64,
2729
Mac OS X, Windows (32&64bit, MingW&MSVC) ...
@@ -33,7 +35,7 @@ v1.18.0
3335
-- Add Base64-URL de-/encoding and some strict variants
3436
-- Add Blake2b & Blake2s (hash & mac), thanks to Kelvin Sherlock
3537
-- Add Camellia block cipher
36-
-- Add ChaCha20 (stream cipher), Poly1305 (mac), ChaCha20Poly1305 (encauth)
38+
-- Add ChaCha (stream cipher), Poly1305 (mac), ChaCha20Poly1305 (encauth)
3739
-- Add constant-time mem-compare mem_neq()
3840
-- Add DER GeneralizedTime de-/encoding
3941
-- Add DSA and ECC key generation FIPS-186-4 compliance

doc/crypt.tex

Lines changed: 1112 additions & 173 deletions
Large diffs are not rendered by default.

doc/makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ docdvi: crypt.tex
5555
latex crypt $(silent_stdout)
5656
latex crypt $(silent_stdout)
5757

58+
termdoc: docdvi
59+
dvi2tty crypt.dvi -w120
60+
5861
clean:
5962
rm -f $(LEFTOVERS)
6063
rm -rf doxygen/

src/encauth/chachapoly/chacha20poly1305_memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
Process an entire GCM packet in one call.
1616
@param key The secret key
1717
@param keylen The length of the secret key
18-
@param iv The initial vector
19-
@param ivlen The length of the initial vector
18+
@param iv The initialization vector
19+
@param ivlen The length of the initialization vector
2020
@param aad The additional authentication data (header)
2121
@param aadlen The length of the aad
2222
@param in The plaintext

src/encauth/gcm/gcm_memory.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
@param cipher Index of cipher to use
2121
@param key The secret key
2222
@param keylen The length of the secret key
23-
@param IV The initial vector
24-
@param IVlen The length of the initial vector
23+
@param IV The initialization vector
24+
@param IVlen The length of the initialization vector
2525
@param adata The additional authentication data (header)
2626
@param adatalen The length of the adata
2727
@param pt The plaintext

src/headers/tomcrypt_cipher.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,8 @@ extern struct ltc_cipher_descriptor {
499499
/** Accelerated GCM packet (one shot)
500500
@param key The secret key
501501
@param keylen The length of the secret key
502-
@param IV The initial vector
503-
@param IVlen The length of the initial vector
502+
@param IV The initialization vector
503+
@param IVlen The length of the initialization vector
504504
@param adata The additional authentication data (header)
505505
@param adatalen The length of the adata
506506
@param pt The plaintext

src/mac/hmac/hmac_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int hmac_init(hmac_state *hmac, int hash, const unsigned char *key, unsigned lon
7575
zeromem((hmac->key) + keylen, (size_t)(LTC_HMAC_BLOCKSIZE - keylen));
7676
}
7777

78-
/* Create the initial vector for step (3) */
78+
/* Create the initialization vector for step (3) */
7979
for(i=0; i < LTC_HMAC_BLOCKSIZE; i++) {
8080
buf[i] = hmac->key[i] ^ 0x36;
8181
}

src/modes/cbc/cbc_getiv.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
#ifdef LTC_CBC_MODE
1717

1818
/**
19-
Get the current initial vector
20-
@param IV [out] The destination of the initial vector
21-
@param len [in/out] The max size and resulting size of the initial vector
19+
Get the current initialization vector
20+
@param IV [out] The destination of the initialization vector
21+
@param len [in/out] The max size and resulting size of the initialization vector
2222
@param cbc The CBC state
2323
@return CRYPT_OK if successful
2424
*/

0 commit comments

Comments
 (0)