Karel Miko
5b05baaf36
BLAKE3
2026-08-04 11:26:06 +02:00
Steffen Jaeckel
82b193d7c6
Add ARIA to latex-tabels tool & PEM docs.
...
Fixes: 05ad38ab66 ("With ARIA added, we can now decrypt ARIA encrypted PEM files.")
Fixes : libtom/libtomcrypt#760
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-08-03 11:33:39 +02:00
Karel Miko
9e2984aa7e
SHA-512 accelerated by x86 (alternative)
2026-08-01 11:17:36 +02:00
Steffen Jaeckel
fb857d83ed
Auto-generate table of hashes.
...
Fixes: 6c885c7732 ("SM3 hash function")
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-07-31 23:57:51 +02:00
Karel Miko
511252c49e
update SIV doc - fix adnum; explain no associated data vs. empty associated data
2026-07-30 15:39:27 +02:00
Karel Miko
39f5e1fae8
EAX properly handle taglen boundaries
2026-07-21 10:56:44 +02:00
Karel Miko
6c885c7732
SM3 hash function
2026-05-19 13:29:36 +02:00
Karel Miko
37a2e345a4
AES-GCM-SIV
2026-05-19 13:12:32 +02:00
Karel Miko
9b268d6258
KMAC - NIST SP 800-185
2026-05-19 13:03:25 +02:00
Karel Miko
4d513a02fc
ARIA block cipher (RFC 5794)
2026-05-16 11:38:38 +02:00
Karel Miko
1e4d471a9f
RFC 8702: RSA-PSS-SHAKE128/256 and ECDSA-SHAKE128/256
2026-05-06 09:23:52 +02:00
Karel Miko
8a1b70a040
add FRP256v1 (French governmental ECC curve referenced in wycheproof test suite)
2026-04-30 08:44:46 +02:00
Karel Miko
076a11037a
Ed448 + X448
2026-04-24 11:49:23 +02:00
Steffen Jaeckel
800e5ce319
Remove OCB v1.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-24 10:45:24 +02:00
Steffen Jaeckel
f5438b298d
Deprecate OCB v1.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-24 09:45:26 +02:00
Steffen Jaeckel
8c82c8786b
Update OCB docs regarding patents.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-24 09:45:26 +02:00
Karel Miko
0e4c5aff7e
XChaCha20 / XChaCha20-Poly1305
2026-04-24 09:41:08 +02:00
Steffen Jaeckel
57b92e7351
Add a sentence about the origins of the CHC hash.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-23 09:13:02 +02:00
Karel Miko
fa26d13016
RSA: update documentation (crypt.tex) to reflect the latest changes
2026-04-15 11:12:30 +02:00
Steffen Jaeckel
66e677aedd
Introduce new RSA API.
...
This also:
a) deprecates the old RSA and PKCS#1 API.
b) reverts the changes done to them in order to make the now deprecated API
compatible again with the last release.
The fixes commit mentioned below is the testcase for the Bleichenbacher
attack, which works now again as expected.
Fixes: 9d03c38e ("add flags to `der_decode_sequence()`")
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-15 11:12:30 +02:00
Karel Miko
3aed12c410
The scrypt Password-Based Key Derivation Function (RFC 7914)
2026-04-14 13:59:38 +02:00
Karel Miko
458b392d01
Argon2 password hashing function (RFC 9106)
2026-04-12 14:48:32 +02:00
Steffen Jaeckel
cc53195945
Update docs.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-04-09 15:40:07 +02:00
Steffen Jaeckel
63af5f6dc1
Update docs of ecc_free().
...
This fixes #710
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2026-02-04 11:30:24 +01:00
Marek Knápek
6832f3c106
Add KangarooTwelve XOF functions.
...
KangarooTwelve 128bits and KangarooTwelve 256 bits.
https://keccak.team/files/TurboSHAKE.pdf
https://www.rfc-editor.org/rfc/rfc9861.txt
https://datatracker.ietf.org/doc/html/rfc9861
2025-11-28 19:05:31 +01:00
Steffen Jaeckel
2c487a2e4b
Update docs.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-11-25 10:09:14 +01:00
Steffen Jaeckel
7f73f83853
Update docs
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-11-18 18:53:26 +01:00
Steffen Jaeckel
d8a62f3367
Create table of supported ECC curves programmatically
...
Related to #349
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-11-03 13:56:58 +01:00
Steffen Jaeckel
934bd7e0fe
Remove init_{GMP,LTM,TFM}()
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-11-03 13:52:34 +01:00
Steffen Jaeckel
5e0d801c1d
Clarify MPI providers a bit further
...
This closes #354
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-11-03 13:51:37 +01:00
Steffen Jaeckel
46fa363f2c
Finish up RFC6979 ECDSA keygen
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-09-04 17:36:30 +02:00
Russ Williams
d376af52ca
RFC6979: implementation, tests, docs
2025-09-04 17:36:30 +02:00
Steffen Jaeckel
46f33c6b5d
Update ecc_recover_key() docs.
...
This also adds a note about the potential limitation of the signature
formats, depending on the tailoring.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-03-02 12:09:24 +01:00
Steffen Jaeckel
bdffc3d53e
Update docs.
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-03-02 12:09:24 +01:00
Steffen Jaeckel
47c721c164
Update doc formatting
...
* make PDF content copy&paste-able
* add new `\code{}` command
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-03-02 12:09:24 +01:00
Steffen Jaeckel
08b69be797
minor changes for amalgamation
...
* de-duplicate `struct oid_to_pbes`
* add makefile target
* add amalgamation to release
* fix `small` demo
* add header guards for `tomcrypt_private.h`
* update docs
* add CI job with amalgamated library
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-02-20 14:43:06 +01:00
Richard Levitte
894f33b81c
Add contrib/libtomcrypt.cmake, and write about it in doc/crypt.tex
...
contrib/libtomcrypt.cmake is a snippet that can be used by any CMake
based project that wants to link with libtomcrypt, no matter if it
was installed with libtomcrypt-config.cmake or libtomcrypt.pc.
Fixes #681
2025-02-18 21:27:38 +01:00
Steffen Jaeckel
ad2696f24f
Update SIV a bit
...
* Rename `siv_{en,de}crypt()` to `siv_{en,de}crypt_memory()`.
* The number of AAD components per SIV operation must not exceed 126.
* Init OMAC only once per SIV operation.
All OMAC operations start off with the same key. Instead of
re-initializing the OMAC context for each operation, init once and
store the context.
* Add SIV to timing demo.
* Add 1000-times-encrypt-then-decrypt test for SIV.
* Update docs.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2025-01-01 17:05:36 +01:00
Steffen Jaeckel
2400883060
Remove remaining footers
...
Fixes 24765c30c5
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-11-20 12:59:49 +01:00
Richard Levitte
88315ff8df
Constify all the functions in ltc_math_descriptor appropriately
...
This includes amending the documentation in doc/crypt.tex
This also includes removing unnecessary casts in src/math/*.c
2024-11-08 17:15:39 +01:00
Richard Levitte
dd3b9e59e1
Fix PEM documentation
2024-09-20 11:24:19 +02:00
Chao Wei
6f15a45adc
Add SM4 block cipher
...
SM4 (formerly SMS4)[1] is a block cipher used in the Chinese
National Standard for Wireless LAN WAPI (Wired Authentication
and Privacy Infrastructure).
--from wikipedia
2024-08-30 05:30:48 +02:00
Steffen Jaeckel
2594f3a7d2
Update docs
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-08-20 13:29:27 +02:00
Steffen Jaeckel
2613264cef
We can now also decrypt PEM files encrypted in CFB1 and CFB8 mode
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-08-20 13:29:27 +02:00
Steffen Jaeckel
cf79facfb9
Add support for CFB1 and CFB8
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-08-20 13:29:27 +02:00
Steffen Jaeckel
478f43fc56
Add support for reading authorized_keys files
...
This also changes the requirements when calling `ecc_find_curve()` that
the `cu` argument can be NULL.
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-08-20 13:29:27 +02:00
Steffen Jaeckel
c0be0aa0bf
Add support for more types of encrypted PEM files
...
1. ChaCha20, two-key 3DES and DES-X encrypted OpenSSL PEM files
2. AES-GCM and Chacha20+Poly1305 encrypted SSH keys
* OpenSSH uses a slightly different algorithm for its
`chacha20-poly1305@openssh.com` than defined in the RFC.
Therefore add an `openssh_compat` flag to
`chacha20poly1305_state`.
* Add the option to give a 16byte IV and no counter, when calling
`chacha20poly1305_memory()`
* Add support for DES-X
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-08-20 13:29:27 +02:00
Steffen Jaeckel
65e05bfa56
Update docs
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-08-20 13:29:27 +02:00
Steffen Jaeckel
661f5845fe
distinguish between Ed25519 and X25519
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-08-20 13:29:27 +02:00
Steffen Jaeckel
39d4b089ac
Update docs
...
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
2024-08-20 13:29:27 +02:00