David Garske
1cb9b5d6c1
Merge pull request #133 from roberthdevries/pipeline-use-uv-and-ruff
...
Change workflow to using uv and ruff.
2026-07-08 12:26:11 -07:00
David Garske
2281b705df
Merge pull request #125 from roberthdevries/add-more-typing
...
Add typing: asn, exceptions, hashes, pwdbased, utils.
2026-07-08 12:26:02 -07:00
Robert de Vries
1a2829a4cd
Fixed a few type annotations and added bad type tests.
...
Also added one note to the ChangeLog.
2026-07-08 15:22:37 +02:00
Robert de Vries
3b5050657f
Fix more review comments and remove requirements sub-directory.
...
All information in requirements is now present in the pyproject.toml file.
2026-07-08 14:39:24 +02:00
Robert de Vries
0d2e15ffed
Addressed multiple review comments.
2026-07-06 22:42:35 +02:00
Robert de Vries
35f9108a5f
Update Makefile so that lint, test, test-all, check-all work again.
2026-07-06 22:29:31 +02:00
Robert de Vries
55d4a35805
Address review comments
...
* Update README.rst to fix remaining unclarities in using uv to
install locally built version and various other smaller issues.
* Pipeline changes:
* Build wheel
* Test against locally built wheel
* Make sure no-pqc version doesn't have ML-DSA/ML-KEM enabled.
2026-07-06 22:29:31 +02:00
Robert de Vries
04b58c0038
Fix ruff errors
2026-07-06 22:29:31 +02:00
Robert de Vries
2c35de76c7
Revert to actions/*v3
2026-07-06 22:29:31 +02:00
Robert de Vries
5126115d38
Fixed github actions document and processed review comments.
2026-07-06 22:29:31 +02:00
Robert de Vries
3078cd5b69
Change workflow to using uv and ruff.
...
uv is used to manage virtual environments and building wheels and
source distributions.
This replaces tox.
ruff is used to do static checking.
README is updated to reflect this change.
2026-07-06 22:29:31 +02:00
Robert de Vries
397725336e
Address more review comments.
2026-07-06 22:27:34 +02:00
Robert de Vries
47b0ac5af9
Fix ruff issues.
2026-07-06 22:13:48 +02:00
Robert de Vries
147021d07c
Enable and fix test_chacha_enc_dec.
2026-07-06 22:02:48 +02:00
Robert de Vries
00c57b5e91
Rebased on master and fixed any (extra) issues found with ruff and ty.
2026-07-06 22:02:48 +02:00
Robert de Vries
7f82b412e3
Address more review comments.
2026-07-06 22:02:48 +02:00
Robert de Vries
97766d708b
Address more review comments.
...
Also added a line to the change log to mention that typing information
has been added.
2026-07-06 22:02:48 +02:00
Robert de Vries
66b2ffb7c8
Addressed more review comments.
2026-07-06 22:02:48 +02:00
Robert de Vries
fda2869cce
Add py.typed file to indicate that this library has typing annotations.
2026-07-06 22:02:48 +02:00
Robert de Vries
747243cc50
Address more review comments.
...
Tests are now also type checked as this helps verifying the correctness
of the type annotations.
2026-07-06 22:02:48 +02:00
Robert de Vries
1fb34e5cd8
Address review comments and annotate overrides.
2026-07-06 22:02:48 +02:00
Robert de Vries
2081edd6d7
Add typing information to ciphers.py
...
This has some fallout in random.py to simplify checks.
Also one test is slightly adapted to produced the desired failure.
2026-07-06 22:02:48 +02:00
Robert de Vries
d1ac3d5f37
Add typing: asn, exceptions, hashes, hkdf, pwdbased, utils.
2026-07-06 22:02:46 +02:00
David Garske
257151a82c
Merge pull request #127 from roberthdevries/enable-more-ruff-checks
...
Enable more ruff rules requiring only minor or no fixes.
2026-07-06 08:19:19 -07:00
David Garske
b370c19fd9
Merge pull request #136 from roberthdevries/re-instate-coverage-test
...
Reinstate the possibility to run coverage tests using make cov.
2026-07-06 08:08:44 -07:00
Robert de Vries
ba7f942657
Reinstate the possibility to run coverage tests using make cov.
2026-07-05 16:35:30 +02:00
Robert de Vries
fe648f183b
Remove obsolete boiler plate comment from the ruff example configuration.
2026-07-04 16:54:59 +02:00
Robert de Vries
7edbd3e45c
Enable more ruff rules requiring only minor or no fixes.
...
Extra rules:
All E pycodestyle error rules
C4 flake8-comprehensions
DTZ flake8-datetimez
EXE flake8-executable
FA flake8-future-annotations
INT flake8-gettext
ISC flake8-implicit-str-concat
ICN flake8-import-conventions
LOG flake8-logging
G flake8-logging-format
RSE flake8-raise
SLOT flake8-slots
TID flake8-tidy-imports
TC flake8-type-checking
FLY flynt
PERF Perflint
W pycodestyle warnings
FURB refurb
Ignore E501: line too long
2026-07-04 16:54:56 +02:00
David Garske
c69d2f1eea
Merge pull request #134 from mjdemilliano/prepare-v5.9.2
...
Prepare for v5.9.2 release
2026-07-02 16:42:48 -07:00
David Garske
17aa8b6c6c
Merge pull request #128 from julek-wolfssl/fenrir/20260623
...
Fenrir fixes (2026-06-23)
2026-07-02 16:20:26 -07:00
Martijn de Milliano
38c541ab42
ML-DSA: Move check on signing/verifying without context to top
...
This makes it more clear what the requirements for calling this
function are and avoids unnecessary computations for objects
which are not used.
2026-07-02 13:21:58 +02:00
Martijn de Milliano
8f214f77cd
Update changelog
2026-07-02 08:29:17 +02:00
Martijn de Milliano
fbe650ac8e
Fix typo in comment
2026-07-01 08:13:51 +02:00
Martijn de Milliano
9cf73e0c42
Update skip reason for test_encrypt_short_tag
2026-06-30 18:55:36 +02:00
Martijn de Milliano
c0803d0c66
Update ML-KEM and ML-DSA feature selection + detection
2026-06-30 18:53:45 +02:00
lealem47
5a4d8d2053
Merge pull request #129 from sebastian-carpenter/no-max-dep-version
...
modify version bounds for dependencies
2026-06-30 08:40:55 -06:00
Martijn de Milliano
319c9200ff
Prepare for v5.9.2 release
2026-06-30 16:33:18 +02:00
Martijn de Milliano
28b0c9a6bf
Process review comments on test_encrypt_short_tag
2026-06-30 16:25:51 +02:00
David Garske
c1c06c59f5
Merge pull request #132 from roberthdevries/fix-const-in-func-defs
...
Fix some function definitions to match const-ness as defined in headers.
2026-06-29 17:32:18 -07:00
Martijn de Milliano
c4d926950c
AES-GCM stream tests
...
Test response by library explicitly when called with unsupported
number of tag bytes.
2026-06-29 18:41:17 +02:00
Martijn de Milliano
0466adbf1b
ML-DSA: Add missing test cases
...
- Test signing with empty context
- Test deterministic signing with context
2026-06-29 18:41:17 +02:00
Martijn de Milliano
afcebbf946
Rename flag to ML_DSA_NO_CTX_ENABLED
2026-06-29 18:41:17 +02:00
Martijn de Milliano
408ac74e9a
Move MIN_AUTH_TAG_SZ next to AES-GCM-stream
...
This place is more logical
2026-06-29 18:41:01 +02:00
Robert de Vries
9e84d054d1
Fix some function definitions to match const-ness as defined in headers.
2026-06-27 22:09:34 +02:00
Martijn de Milliano
f8e56cd063
ML-DSA: fix ML_DSA_NO_CTX detection and add to default features
...
Also detect WOLFSSL_DILITHIUM_FIPS204_DRAFT as implying no-ctx support,
mirroring the logic in dilithium.h. Add ML_DSA_NO_CTX to the default
features dict for consistency with peer flags.
2026-06-26 00:35:32 +02:00
Martijn de Milliano
fc5ea53605
Update AESGCM test
...
Read minimum supported tag size from settings and make the
test less ambiguous.
2026-06-26 00:31:05 +02:00
Martijn de Milliano
aec3f2d553
Add tests for no-context signing
2026-06-26 00:10:34 +02:00
Martijn de Milliano
8d87cb4d13
ML-DSA: fix wording of message and docstrings
2026-06-26 00:05:15 +02:00
sebastian-carpenter
dbb21f3a99
modify version bounds for dependencies
...
* Remove bound for maximum version
* Synchronize minimum version for cffi to 1.17
2026-06-24 12:07:02 -06:00
Juliusz Sosinowicz
b13aeea62b
Address Copilot review on wolfcrypt-py (F-4015, F-4463)
...
- ChaCha.set_iv(): only mark _iv_set after _set_key() succeeds, and clear
it first, so a failed re-key cannot leave encrypt()/decrypt() unblocked
with a stale or partially-applied IV. Add a regression test.
- Update _Cipher.new()/encrypt()/decrypt() docstrings that still referred
to CFB/segment-size behavior to match the actually supported modes
(MODE_CBC, MODE_CTR) and their IV requirements.
2026-06-24 08:48:54 +00:00