Skip to content

Fix handles locking, key wiping, and curve checks - #70

Open
aidangarske wants to merge 13 commits into
wolfSSL:masterfrom
aidangarske:fenrir-fixes-handles
Open

aidangarske wants to merge 13 commits into
wolfSSL:masterfrom
aidangarske:fenrir-fixes-handles

Conversation

@aidangarske

Copy link
Copy Markdown
Member

F-7861 - deab681 - ParseECPrivateKeyDER now rejects curves other than P-256, derives the public point for private only DER, and ECC key handles report P-256.

F-9630 - f8f0092 - EccKey operations and Free now take a per-key lock, and wolfx509 certificate building locks its keys, which fixes data races between use and Free.

F-10946 - 6c3677e - RsaKey verify operations and Free now take a per-key lock.

F-12016 - cfa3983 - The AES-GCM wrapper now registers Wc_AesFree only after Wc_AesInit succeeds.

F-6116 - 263233a - ParseECPrivateKeyPEM now wipes the decoded private key DER.

F-9645 - 8088174 - The sha256 digest Write now panics on an update failure instead of returning a nonstandard error.

F-10933 - 70ed18a - SignDigest now returns an error for an ECC key with no RNG, and the docs say public only keys are verify only.

F-10954 - 83d4ea4 - AES-GCM decrypt now wipes its output when authentication fails.

F-12824 - a1afa3a - The SignDigest documentation now states the correct digest length.

F-12844 - 599e6da - PEM marshaling of private keys now wipes the temporary private key DER.

F-12031 - 3267240 - The RsaVerifyPSS documentation now states the correct salt length.

F-3022 - 95cf9d4 - AesGcmAEAD now has a Zero method that wipes its key.

CI - aab1a5e - The build workflow now runs go test ./sha256 in the full config.

@wolfSSL-Fenrir-bot wolfSSL-Fenrir-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fenrir Automated Review — PR #70

Scan targets checked: go-wolfssl-src, go-wolfssl-bugs
Coverage: 4 of 10 in-scope changed file(s) opened by the reviewer; not opened: handles/aes_handles_test.go, handles/ecc_handles_test.go, handles/rsa_handles_test.go, sha256/sha256.go, sha256/sha256_test.go, wolfx509/certgen_lock_test.go

Fenrir result: Approved ✅

No new issues found in the changed files.

Advisory only — this automated result does not count as a GitHub approval.

Review tier: Lite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants