2011-06-09 19:01:25 -04:00
|
|
|
// crypto module build file
|
|
|
|
|
|
|
|
// jdkVersion = System.properties['java.version']
|
|
|
|
// isJdk6 = jdkVersion >= '1.6'
|
|
|
|
int maxAESKeySize = javax.crypto.Cipher.getMaxAllowedKeyLength('AES')
|
|
|
|
|
2014-04-11 10:57:18 -04:00
|
|
|
configure(project.tasks.withType(Test)) {
|
2015-03-23 12:14:26 -04:00
|
|
|
if (maxAESKeySize < 256) {
|
|
|
|
println "AES keysize limited to $maxAESKeySize, skipping EncryptorsTests"
|
|
|
|
exclude '**/EncryptorsTests.class'
|
|
|
|
}
|
2011-06-09 19:01:25 -04:00
|
|
|
}
|
2016-02-26 06:36:44 -05:00
|
|
|
|
|
|
|
dependencies {
|
2016-03-03 15:34:23 -05:00
|
|
|
optional 'org.bouncycastle:bcpkix-jdk15on:1.54'
|
2016-02-26 06:36:44 -05:00
|
|
|
}
|