< prev index next >
src/java.base/share/classes/com/sun/crypto/provider/RSACipher.java
Print this page
*** 241,250 ****
--- 241,251 ----
}
}
}
// initialize this cipher
+ @SuppressWarnings("deprecation")
private void init(int opmode, Key key, SecureRandom random,
AlgorithmParameterSpec params)
throws InvalidKeyException, InvalidAlgorithmParameterException {
boolean encrypt;
switch (opmode) {
*** 422,431 ****
--- 423,433 ----
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 >