2011-01-13 22:40:47 -05:00
|
|
|
// crypto module build file
|
|
|
|
|
|
2011-01-20 02:13:33 +00:00
|
|
|
// jdkVersion = System.properties['java.version']
|
|
|
|
|
// isJdk6 = jdkVersion >= '1.6'
|
|
|
|
|
int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
|
2011-01-13 22:40:47 -05:00
|
|
|
|
2011-01-19 23:43:13 +00:00
|
|
|
test {
|
2011-01-20 02:13:33 +00:00
|
|
|
if (maxAESKeySize < 256) {
|
|
|
|
|
println "AES keysize limited to $maxAESKeySize, skipping EncryptorsTests"
|
2011-01-19 23:43:13 +00:00
|
|
|
exclude '**/EncryptorsTests.class'
|
|
|
|
|
}
|
2011-01-13 22:40:47 -05:00
|
|
|
}
|