Skip to content

Add Ability to use Config File#1167

Merged
jasonkatonica merged 1 commit into
IBM:mainfrom
johnpeck-us-ibm:ProvUptOpenSSLV3
May 6, 2026
Merged

Add Ability to use Config File#1167
jasonkatonica merged 1 commit into
IBM:mainfrom
johnpeck-us-ibm:ProvUptOpenSSLV3

Conversation

@johnpeck-us-ibm

@johnpeck-us-ibm johnpeck-us-ibm commented Feb 10, 2026

Copy link
Copy Markdown
Member

Added the ability to use a config file to create a a new OpenJCEPlus provider based on that file

Signed-off-by: John Peck 140550562+johnpeck-us-ibm@users.noreply.github.com

@johnpeck-us-ibm johnpeck-us-ibm self-assigned this Feb 10, 2026
@johnpeck-us-ibm johnpeck-us-ibm marked this pull request as draft February 10, 2026 17:03
Comment thread src/test/ProviderDefAttrs.config
@johnpeck-us-ibm

Copy link
Copy Markdown
Member Author

I got the properties working. Now just need to deal with defaults

@johnpeck-us-ibm

Copy link
Copy Markdown
Member Author

I have added two new files. to base. BackendCryptoInterface and BankendCryptoSelector. These are files we will need for the selection of the backend. The Basically when a function in base needs to determine the back end to use it can call the BankendCryptoselector with the provider, the type (cipher, message digest, etc) and the algorithm it will return the backend. All the bankend calls will be of the format in BackendCryptoInterface. We may need to remove some calls and modify the function parameters but this is a start. So for example in Digest.java in where it calls NativeInterface.DIGEST_create today in would first call (BankendCryptoSelector.selectBackend(Provider, "Digest", )).DIGEST_create

@johnpeck-us-ibm johnpeck-us-ibm force-pushed the ProvUptOpenSSLV3 branch 2 times, most recently from fb660bd to 16d4c4b Compare April 7, 2026 15:27
@johnpeck-us-ibm johnpeck-us-ibm marked this pull request as ready for review April 7, 2026 17:01
@johnpeck-us-ibm

Copy link
Copy Markdown
Member Author

Moved test cases and added documentation.

Comment thread src/main/java/com/ibm/crypto/plus/provider/DefaultProviderAttrs.java Outdated
Comment thread src/main/java/com/ibm/crypto/plus/provider/OpenJCEPlus.java Outdated
Comment thread src/main/java/com/ibm/crypto/plus/provider/OpenJCEPlus.java Outdated
Comment thread src/main/java/com/ibm/crypto/plus/provider/OpenJCEPlusFIPS.java
Comment thread src/main/java/com/ibm/crypto/plus/provider/ProviderServiceReader.java Outdated
Comment thread src/main/java/com/ibm/crypto/plus/provider/ProviderServiceReader.java Outdated
Comment thread src/main/java/com/ibm/crypto/plus/provider/ProviderServiceReader.java Outdated
Comment thread src/main/java/com/ibm/crypto/plus/provider/OpenJCEPlus.java
Comment thread src/main/java/com/ibm/crypto/plus/provider/ProviderServiceReader.java Outdated
Comment thread PROVIDER_CONFIG_FORMAT.md
Comment thread PROVIDER_CONFIG_FORMAT.md
Comment thread PROVIDER_CONFIG_FORMAT.md Outdated
Comment thread PROVIDER_CONFIG_FORMAT.md Outdated
Comment thread src/main/java/com/ibm/crypto/plus/provider/OpenJCEPlus.java
Comment thread src/test/java/ibm/jceplus/junit/tests/TestProviderServices.java
Comment thread src/test/java/ibm/jceplus/junit/tests/TestProviderServices.java
Comment thread src/test/java/ibm/jceplus/junit/tests/TestProviderServices.java
Comment thread src/test/java/ibm/jceplus/junit/tests/TestProviderServices.java Outdated
Added the ability to use a config file to create a
a new OpenJCEPlus provider based on that file. Update
the providers to use this config to create FIPS and
non-FIPS

Signed-off-by: johnpeck-us-ibm <johnpeck@us.ibm.com>

@jasonkatonica jasonkatonica left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@KostasTsiounis KostasTsiounis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

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