SEC-1689: Re-instate crypto as separate library (for use in non-Spring Security apps), as well as packaging with core.
This commit is contained in:
12
crypto/crypto.gradle
Normal file
12
crypto/crypto.gradle
Normal file
@@ -0,0 +1,12 @@
|
||||
// crypto module build file
|
||||
|
||||
// jdkVersion = System.properties['java.version']
|
||||
// isJdk6 = jdkVersion >= '1.6'
|
||||
int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
|
||||
|
||||
test {
|
||||
if (maxAESKeySize < 256) {
|
||||
println "AES keysize limited to $maxAESKeySize, skipping EncryptorsTests"
|
||||
exclude '**/EncryptorsTests.class'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user