< prev index next >
src/java.base/share/classes/com/sun/crypto/provider/RSACipher.java
Print this page
@@ -241,10 +241,11 @@
}
}
}
// initialize this cipher
+ @SuppressWarnings("deprecation")
private void init(int opmode, Key key, SecureRandom random,
AlgorithmParameterSpec params)
throws InvalidKeyException, InvalidAlgorithmParameterException {
boolean encrypt;
switch (opmode) {
@@ -422,10 +423,11 @@
throw new InvalidKeyException("Wrapping failed", e);
}
}
// see JCE spec
+ @SuppressWarnings("deprecation")
protected Key engineUnwrap(byte[] wrappedKey, String algorithm,
int type) throws InvalidKeyException, NoSuchAlgorithmException {
if (wrappedKey.length > buffer.length) {
throw new InvalidKeyException("Key is too long for unwrapping");
}
< prev index next >