oscerd opened a new pull request, #31348:
URL: https://github.com/apache/camel/pull/31348

   [CAMEL-28104](https://issues.apache.org/jira/browse/CAMEL-28104): Add 
default parameter specs for `MAYO` and `SNOVA` in 
`KeyAlgorithmSupport.getDefaultParameterSpec(String)`.
   
   ### Summary
   
   - `PQCSignatureAlgorithms` declares `MAYO` and `SNOVA` and 
`PQCParameterSpecResolver` supports both algorithms, but 
`KeyAlgorithmSupport.getDefaultParameterSpec(String)` previously returned 
`null` for both.
   - Without an explicit `AlgorithmParameterSpec`, key lifecycle 
`generateKeyPair` and `rotateKey` operations fell back to 
`KeyPairGenerator.initialize(256, random)`, which BouncyCastle's `Mayo` and 
`Snova` generators reject with `InvalidParameterException: use 
AlgorithmParameterSpec`.
   - Added `MAYO` (`mayo5`) and `SNOVA` (`SNOVA_24_5_5_SHAKE_SSK`) cases to 
`KeyAlgorithmSupport.getDefaultParameterSpec(String)`, matching 
`PQCDefaultMAYOMaterial` and `PQCDefaultSNOVAMaterial`.
   - Added unit and lifecycle tests in `KeyAlgorithmSupportTest` covering 
default parameter resolution, key generation, and key rotation for `MAYO` and 
`SNOVA`.
   
   ### Testing
   
   - Ran `../../mvnw -B test 
-Dmaven.repo.local=/home/oscerd/workspace/apache-camel/m2-28104 
-Dmaven.repo.local.tail=/home/oscerd/.m2/repository` in `components/camel-pqc`: 
483 tests run, 0 failures, 0 errors, 1 skipped (`KeyAlgorithmSupportTest`: 6 
tests run, 0 failures, 0 errors, 0 skipped).
   - Full reactor build (`mvn -B clean install -DskipTests -DskipITs`) was not 
executed in this step and remains for maintainer verification if needed.
   
   _Antigravity on behalf of oscerd_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to