key length can be obtained from the key

This commit is contained in:
Kohsuke Kawaguchi committed 2011-03-18 12:02:44 -07:00
1 parent eb19a453a9
commit c072b3cb6c
2 files changed
+3 -3

No files matched your search

@@ -226,8 +226,8 @@ public class UsageStatistics extends PageDecorator {
super.in = new CipherInputStream(in,sym);
}
public CombinedCipherInputStream(InputStream in, RSAKey key, String algorithm, int keyLength) throws IOException, GeneralSecurityException {
this(in,toCipher(key,Cipher.DECRYPT_MODE),algorithm,keyLength);
public CombinedCipherInputStream(InputStream in, RSAKey key, String algorithm) throws IOException, GeneralSecurityException {
this(in,toCipher(key,Cipher.DECRYPT_MODE),algorithm,key.getModulus().bitLength());
}
}