Move library specific logic to the backend#1283
Move library specific logic to the backend#1283KostasTsiounis wants to merge 1 commit intoIBM:mainfrom
Conversation
src/main/java/com/ibm/crypto/plus/provider/ock/NativeOCKImplementation.java
Show resolved
Hide resolved
|
Looking at the code. I think it can be made a little simpler. The only difference between FIPS and non-FIPS is the context. So, there really is no need for a FIPS version and non-FIPS version. Update the provider to include isFIPS() which I think was done and use that for creating context and which context to use. The other thing that we need to look at is the cleanup stuff in the provider. The question will be if we need to move this to the native provider implementation. Because at some point what needs to be done for ICC, may not be what needs to be done for OpenSSL. |
I'm not sure if it would be simpler. The
I think this way a better separation of concerns is created and we avoid additional checks. Unless I'm missing something and you have another way to do it that I haven't considered of course.
I'm guessing you're talking about the |
1889d87 to
48f1918
Compare
johnpeck-us-ibm
left a comment
There was a problem hiding this comment.
I am okay with these changes
48f1918 to
53bf01d
Compare
53bf01d to
ad55e76
Compare
Library specific logic, such as contexts and choice of FIPS or non-FIPS binaries, is performed in the provider. This change moves said logic and functionality to the backend, in order to decouple it and allow for introduction of different libraries seamlessly. Signed-off-by: Kostas Tsiounis <kostas.tsiounis@ibm.com>
ad55e76 to
3f08863
Compare
Library specific logic, such as contexts and choice of
FIPSornon-FIPSbinaries, is performed in the provider.This change moves said logic and functionality to the backend, in order to decouple it and allow for introduction of different libraries seamlessly.
Signed-off-by: Kostas Tsiounis kostas.tsiounis@ibm.com