forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit tests in "crypto/fips1402" passing on RHEL 8.6 with BC FIPS appr…
…oved mode. Cleanup (keycloak#13406) Closes keycloak#13128
- Loading branch information
Showing
36 changed files
with
323 additions
and
280 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
common/src/main/java/org/keycloak/common/crypto/CryptoConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.keycloak.common.crypto; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Marek Posolda</a> | ||
*/ | ||
public class CryptoConstants { | ||
|
||
// JWE algorithms | ||
public static final String A128KW = "A128KW"; | ||
public static final String RSA1_5 = "RSA1_5"; | ||
public static final String RSA_OAEP = "RSA-OAEP"; | ||
public static final String RSA_OAEP_256 = "RSA-OAEP-256"; | ||
|
||
/** Name of Java security provider used with non-fips BouncyCastle. Should be used in non-FIPS environment */ | ||
public static final String BC_PROVIDER_ID = "BC"; | ||
|
||
/** Name of Java security provider used with fips BouncyCastle. Should be used in FIPS environment */ | ||
public static final String BCFIPS_PROVIDER_ID = "BCFIPS"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
common/src/main/java/org/keycloak/common/crypto/CryptoProviderTypes.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,18 @@ | |
|
||
package org.keycloak.jose.jwe; | ||
|
||
import org.keycloak.common.crypto.CryptoConstants; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Marek Posolda</a> | ||
*/ | ||
public class JWEConstants { | ||
|
||
public static final String DIR = "dir"; | ||
public static final String A128KW = "A128KW"; | ||
public static final String RSA1_5 = "RSA1_5"; | ||
public static final String RSA_OAEP = "RSA-OAEP"; | ||
public static final String RSA_OAEP_256 = "RSA-OAEP-256"; | ||
public static final String DIRECT = "dir"; | ||
public static final String A128KW = CryptoConstants.A128KW; | ||
public static final String RSA1_5 = CryptoConstants.RSA1_5; | ||
public static final String RSA_OAEP = CryptoConstants.RSA_OAEP; | ||
public static final String RSA_OAEP_256 = CryptoConstants.RSA_OAEP_256; | ||
|
||
public static final String A128CBC_HS256 = "A128CBC-HS256"; | ||
public static final String A192CBC_HS384 = "A192CBC-HS384"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
core/src/main/java/org/keycloak/jose/jwe/alg/KeyEncryptionJWEAlgorithmProvider.java
This file was deleted.
Oops, something went wrong.
67 changes: 0 additions & 67 deletions
67
core/src/main/java/org/keycloak/jose/jwe/alg/RsaKeyEncryption256JWEAlgorithmProvider.java
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
core/src/main/java/org/keycloak/jose/jwe/alg/RsaKeyEncryptionJWEAlgorithmProvider.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.