Yawning Angel
c25e7cb3bc
core/crypto/aegis: AEGIS is RFC 10032 now
2026-09-30 11:56:30 +09:00
gingerBill
5a4e0de0cc
Merge pull request #7594 from bplu4t2f/fix-7583
...
Fix 7583: -strict-style requires comma before newline after proc parameters which have a default value.
2026-09-29 13:11:39 +01:00
Ihor Antonov
0aee554caa
core/crypto/_fiat/field_p256r1: fix fe_sqrt addition chain base
...
Step 4 (t0 = x^0xc) passed x^1 (&xx) instead of x^3 (out1), producing
an incorrect exponent and rejecting valid quadratic residues. This broke
compressed SEC1 P-256 point decoding via pt_set_sec_bytes.
2026-09-25 13:49:23 -07:00
bplu4t2f
a7b67e4473
-strict-style requires comma before newline after proc parameters which have a default value ( #7583 )
2026-09-19 12:16:55 +02:00
Yawning Angel
65450b78ab
core/crypto/mlkem: Fix compiler error on key_size(&Encapsualtion_Key)
2026-08-05 18:26:44 +09:00
Yawning Angel
a51cdd43bf
core/crypto/kmac: Early reject pathologically short tags in verify
2026-08-05 18:07:32 +09:00
Yawning Angel
97b38169de
core/crypto/chacha20: Explicitly allow the one final block
...
Only affects the incremental use case where the internal counter is
exactly the maximum.
2026-08-05 18:04:06 +09:00
Yawning Angel
3bdb32949b
core/crypto/noise: Reject encrypt/decrypt when n == 2^64 - 1
...
Spec defines the maximal value of `n` as reserved.
2026-08-05 17:33:31 +09:00
Yawning Angel
6e682a768e
core/crypto/pbkdf2: Ensure non-zero iteration count
2026-08-05 17:31:31 +09:00
Yawning Angel
e57af19fcd
core/crypto/_fiat: Fix coditional in ensure
...
Callers in core also check so there is no user visible impact.
2026-08-04 20:07:19 +09:00
mo
8e4611fb74
Fix typo in constant name and a different comment
2026-07-31 22:38:54 +12:00
zhibog
2efcd11ab4
[core:crypto] Add TurboSHAKE
2026-07-14 16:28:29 +02:00
kalsprite
2d8502a1fa
pr comment fixes
2026-07-13 22:56:01 -07:00
kalsprite
4aa30314c9
add limbo
2026-07-12 15:05:36 -07:00
kalsprite
df044411d9
attach nc
2026-07-12 12:58:45 -07:00
kalsprite
e4fc7a3a9e
rsa, x509 write path
2026-07-12 12:14:32 -07:00
kalsprite
2fd11467c8
Merge branch 'master' into x.508
2026-07-12 10:51:44 -07:00
Yawning Angel
e1d32cb19f
core/cryto/rsa: Initial import
2026-07-12 06:17:08 +09:00
Yawning Angel
483221ef97
core/crypto/_bigint: Initial import
2026-07-12 06:17:08 +09:00
Yawning Angel
f259b416e3
core/crypto/_subtle: Cleanups, dedup from RSA code
2026-07-12 03:28:20 +09:00
Yawning Angel
98e22205af
core/crypto/ed25519: Add missing require_results annotations
2026-07-12 03:28:20 +09:00
gingerBill
3b56706439
Merge pull request #6471 from Carlyle-Foster/master
...
rename DEFAULT_PAGE_SIZE to PAGE_SIZE
2026-06-23 12:08:37 +01:00
kalsprite
04b614e1ad
update ecdsa to use asn1
2026-06-22 22:41:42 -07:00
kalsprite
ef0e991437
relax roots
2026-06-14 00:16:41 -07:00
kalsprite
4876cf03bf
asn1 DER reader/writer and X.509 reader
2026-06-13 23:40:08 -07:00
Yawning Angel
ccc17780b4
core/crypto/mldsa: Initial import
2026-05-19 19:32:50 +09:00
Yawning Angel
0c1c0372c7
core/crypto/mlkem: Minor cleanups
2026-05-19 19:32:50 +09:00
Yawning Angel
d5903be4e5
core/crypto/noise: Stop cheating and reaching into "opaque" structs
2026-05-19 19:32:50 +09:00
Yawning Angel
104da7d54b
core/crypto/ecdh: Add private_key_public_bytes
2026-05-19 19:32:50 +09:00
Yawning Angel
c3e7a9026b
core/crypto/ed25519: Add private_key_public_bytes
2026-05-19 19:32:50 +09:00
Yawning Angel
675389aeab
core/crypto/ecdsa: Minor additions and cleanups
2026-05-19 19:32:50 +09:00
Yawning Angel
d2c29c025e
core/crypto/mlkem: Initial import
2026-05-06 09:53:02 +09:00
Yawning Angel
a3d7300e55
core/crypto/ecdh,ecdsa: Add require_results annotations
2026-05-06 09:53:02 +09:00
Yawning Angel
e3504c94ad
core/crypto: Get rid of set (only used by legacy)
2026-05-06 09:53:02 +09:00
Yawning Angel
4e8c80f80b
core/crypto/noise: Move the smoke tests to the standard location
2026-04-20 21:34:24 +09:00
Yawning Angel
81011ec361
core/crypto/noise: Add support for deferred patterns
2026-04-20 21:34:24 +09:00
Yawning Angel
81c89a6094
core/crypto/noise: Rename things to match convention
2026-04-20 21:34:24 +09:00
Yawning Angel
2a61f0920d
core/crypto/noise: Fix HandshakeState_[Read,Write]Message
...
Per the specification EncryptAndHash/DecryptAndHash are always called.
2026-04-20 19:25:30 +09:00
Lord_Hellgrim
2623a8fa9f
Added noise package to core:crypto
...
Special thanks to Yawning for review, guidance, and massive updates.
2026-04-20 19:25:30 +09:00
Yawning Angel
19f249b475
core/crypto/ecdh: Add private_key_set and public_key_set
2026-04-20 19:25:30 +09:00
Yawning Angel
64868089a6
core/crypto/ed25519: Add private_key_set, public_key_(set,clear)
2026-04-20 19:25:30 +09:00
Yawning Angel
bd7b67317d
core/crypto/ecdsa: Add private_key_set and public_key_set
2026-04-20 19:25:30 +09:00
Yawning Angel
0af538c70a
core/crypto: Fix doc comment (No functional changes)
2026-04-20 15:16:46 +09:00
Stefan Stefanov
b52cc45053
core/crypto/aes: Fix src size check
...
Fixed a faulty check that would check the `dst` twice instead of
checking the `src` and `dst` input parameters in `encrypt_ecb()` &
`decrypt_ecb()`.
2026-04-01 23:05:29 +03:00
Carlyle
b169c048fe
made PAGE_SIZE more consistent
2026-03-24 17:58:11 -07:00
Yawning Angel
36a3f691c1
core/crypto/sha2: Add Aarch64 SHA512 acceleration
2026-03-17 04:39:15 +09:00
Yawning Angel
ccb56de19a
core/crypto/sha2: Add scaffolding for SHA512 acceleration
2026-03-16 16:05:21 +09:00
Yawning Angel
a030fb6596
core/crypto/sha2: Remove the broken Intel intrinsic kludge
2026-03-16 15:52:59 +09:00
Yawning Angel
9194b599ec
core/crypto/sha2: Add ARMv8 SHA256 acceleration
2026-03-15 18:44:29 +09:00
Yawning Angel
3139b7e755
core/crypto/aes: Migrate to generic SIMD + HW AES
2026-03-13 22:01:16 +09:00