-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mosip 33327 #1486
base: develop_module_Wise_Test_Rig
Are you sure you want to change the base?
Mosip 33327 #1486
Conversation
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: Sohan Kumar Dey <[email protected]>
MOSIP-31931
Signed-off-by: Sohan Kumar Dey <[email protected]>
MOSIP-31931
Signed-off-by: Sohan Kumar Dey <[email protected]>
IDA Fixes
Signed-off-by: Pankaj Godiyal <[email protected]>
MOSIP-32574
Signed-off-by: Sohan Kumar Dey <[email protected]>
MOSIP-30855 MOSIP-30854 MOSIP-30852 MOSIP-30851 MOSIP-30553
Signed-off-by: Sohan Kumar Dey <[email protected]>
MOSIP-30855 MOSIP-30854 MOSIP-30852 MOSIP-30851 MOSIP-30553
Signed-off-by: Sohan Kumar Dey <[email protected]>
MOSIP-30855 MOSIP-30854 MOSIP-30852 MOSIP-30851 MOSIP-30553
Signed-off-by: Nandhukumar <[email protected]>
INJIMOB-954
Signed-off-by: Nandhukumar <[email protected]>
INJIMOB-615
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: Nandhukumar <[email protected]>
INJIMOB-615
Signed-off-by: Nandhukumar <[email protected]>
INJIMOB-615
Signed-off-by: Nandhukumar <[email protected]>
Signed-off-by: kamalsingh <[email protected]>
Signed-off-by: kamalsingh <[email protected]>
Auth demo service changes
Signed-off-by: Nandhukumar <[email protected]>
Mosip 33327
Signed-off-by: Nandhukumar <[email protected]>
Mosip 33327
Signed-off-by: Nandhukumar <[email protected]>
Mosip 33327
Signed-off-by: Nandhukumar <[email protected]>
Mosip 33327
Signed-off-by: Nandhukumar <[email protected]>
Mosip 33327
AuthenticationUtil/src/main/java/io/mosip/testrig/auth/util/CryptoCoreUtil.java
Fixed
Show fixed
Hide fixed
AuthenticationUtil/src/main/java/io/mosip/testrig/auth/util/CryptoCoreUtil.java
Fixed
Show fixed
Hide fixed
AuthenticationUtil/src/main/java/io/mosip/testrig/auth/util/CryptoCoreUtil.java
Fixed
Show fixed
Hide fixed
AuthenticationUtil/src/main/java/io/mosip/testrig/auth/util/CryptoCoreUtil.java
Fixed
Show fixed
Hide fixed
AuthenticationUtil/src/main/java/io/mosip/testrig/auth/util/CryptoCoreUtil.java
Fixed
Show fixed
Hide fixed
AuthenticationUtil/src/main/java/io/mosip/testrig/auth/util/CryptoCoreUtil.java
Fixed
Show fixed
Hide fixed
AuthenticationUtil/src/main/java/io/mosip/testrig/auth/util/JWSSignAndVerifyController.java
Fixed
Show fixed
Hide fixed
AuthenticationUtil/src/main/java/io/mosip/testrig/auth/util/JWSSignAndVerifyController.java
Fixed
Show fixed
Hide fixed
AuthenticationUtil/src/main/java/io/mosip/testrig/auth/util/Encrypt.java
Fixed
Show fixed
Hide fixed
Signed-off-by: Sohan Kumar Dey <[email protected]>
Mosip 33327
Revert "Mosip 33327"
Signed-off-by: Nandhukumar <[email protected]>
MOSIP-33327
|
||
Cipher cipher; | ||
try { | ||
cipher = Cipher.getInstance(RSA_ECB_OAEP_PADDING); |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm High test
RSA/ECB/OAEPWITHSHA-256ANDMGF1PADDING
CryptoUtils.verifyData(data); | ||
Cipher cipher; | ||
try { | ||
cipher = Objects.isNull(storeType) ? Cipher.getInstance(RSA_ECB_NO_PADDING) : // NOSONAR using the padding for allowing OAEP padding in PKCS11 library |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm High test
RSA/ECB/NoPadding
Cipher cipher; | ||
try { | ||
cipher = Objects.isNull(storeType) ? Cipher.getInstance(RSA_ECB_NO_PADDING) : // NOSONAR using the padding for allowing OAEP padding in PKCS11 library | ||
Cipher.getInstance(RSA_ECB_NO_PADDING, storeType); // NOSONAR using the padding for allowing OAEP padding in PKCS11 library |
Check failure
Code scanning / CodeQL
Use of a broken or risky cryptographic algorithm High test
RSA/ECB/NoPadding
// Used as a hack for softhsm oeap padding decryption usecase will be when we | ||
// will use in HSM | ||
@SuppressWarnings("java:S106") | ||
private static final String RSA_ECB_NO_PADDING = "RSA/ECB/NoPadding"; // NOSONAR using the padding for allowing OAEP padding in PKCS11 library |
Check failure
Code scanning / CodeQL
Use of RSA algorithm without OAEP High test
initialize an RSA cipher
This specification is used to
initialize an RSA cipher
CryptoUtils.verifyData(data); | ||
Cipher cipher; | ||
try { | ||
cipher = Objects.isNull(storeType) ? Cipher.getInstance(RSA_ECB_NO_PADDING) : // NOSONAR using the padding for allowing OAEP padding in PKCS11 library |
Check failure
Code scanning / CodeQL
Use of RSA algorithm without OAEP High test
initialize an RSA cipher
Cipher cipher; | ||
try { | ||
cipher = Objects.isNull(storeType) ? Cipher.getInstance(RSA_ECB_NO_PADDING) : // NOSONAR using the padding for allowing OAEP padding in PKCS11 library | ||
Cipher.getInstance(RSA_ECB_NO_PADDING, storeType); // NOSONAR using the padding for allowing OAEP padding in PKCS11 library |
Check failure
Code scanning / CodeQL
Use of RSA algorithm without OAEP High test
initialize an RSA cipher
public static void turnOffSslChecking() throws NoSuchAlgorithmException, KeyManagementException { | ||
// Install the all-trusting trust manager | ||
final SSLContext sc = SSLContext.getInstance(Encrypt.SSL); | ||
sc.init(null, UNQUESTIONING_TRUST_MANAGER, null); |
Check failure
Code scanning / CodeQL
`TrustManager` that accepts all certificates High test
TrustManager
Encrypt$
|
||
} | ||
public static String trimBeginEnd(String pKey) { | ||
pKey = pKey.replaceAll("-*BEGIN([^-]*)-*(\r?\n)?", ""); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data High test
regular expression
user-provided value
} | ||
public static String trimBeginEnd(String pKey) { | ||
pKey = pKey.replaceAll("-*BEGIN([^-]*)-*(\r?\n)?", ""); | ||
pKey = pKey.replaceAll("-*END([^-]*)-*(\r?\n)?", ""); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data High test
No description provided.