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

   Fixes [CAMEL-28105](https://issues.apache.org/jira/browse/CAMEL-28105).
   
   ## Summary
   
   - Add default parameter set mappings in 
`KeyAlgorithmSupport.getDefaultParameterSpec(String)` for `MAYO` (`mayo5`) and 
`SNOVA` (`SNOVA_24_5_5_SHAKE_SSK`), matching `PQCDefaultMAYOMaterial` and 
`PQCDefaultSNOVAMaterial` on the signing path.
   - Throw an explicit `IllegalArgumentException` naming the algorithm in 
`KeyAlgorithmSupport.generateKeyPair`, 
`AwsSecretsManagerKeyLifecycleManager.generateKeyPair`, and 
`HashicorpVaultKeyLifecycleManager.generateKeyPair` when `parameterSpec == 
null` and `getDefaultParameterSpec(algorithm)` returns `null`, instead of 
falling back to `generator.initialize(256, ...)`. The `parameterSpec instanceof 
Integer` branch for explicit caller-supplied key sizes is preserved.
   - Add unit tests in `KeyAlgorithmSupportTest`, 
`InMemoryKeyLifecycleManagerTest`, and `KeyLifecycleParityTest` verifying 
default parameter specs for all `PQCSignatureAlgorithms` and 
`PQCKeyEncapsulationAlgorithms` members, spec-less key generation and rotation 
for `MAYO` and `SNOVA`, and explicit failure for unmapped algorithms without a 
spec.
   
   ## Testing
   
   - Ran `components/camel-pqc` unit tests (`../../mvnw -B test 
-Dmaven.repo.local=/home/oscerd/workspace/apache-camel/m2-28105 
-Dmaven.repo.local.tail=/home/oscerd/.m2/repository`): 505 tests run, 0 
failures, 0 errors, 1 pre-existing skipped (`KeyAlgorithmSupportTest`: 24/24, 
`InMemoryKeyLifecycleManagerTest`: 13/13, `KeyLifecycleParityTest`: 8/8).
   - Full reactor build was not run in this environment.
   
   _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