jdk/src/jdk.crypto.ucrypto/solaris/classes/com/oracle/security/ucrypto/NativeRSACipher.java
changeset 28092 a67de45e0b25
parent 27182 4525d13b8af1
child 32275 17eeb583a331
equal deleted inserted replaced
28091:cbd670e95e2f 28092:a67de45e0b25
   176         }
   176         }
   177     }
   177     }
   178 
   178 
   179     // see JCE spec
   179     // see JCE spec
   180     @Override
   180     @Override
       
   181     @SuppressWarnings("deprecation")
   181     protected synchronized void engineInit(int opmode, Key newKey,
   182     protected synchronized void engineInit(int opmode, Key newKey,
   182             AlgorithmParameterSpec params, SecureRandom random)
   183             AlgorithmParameterSpec params, SecureRandom random)
   183             throws InvalidKeyException, InvalidAlgorithmParameterException {
   184             throws InvalidKeyException, InvalidAlgorithmParameterException {
   184         if (newKey == null) {
   185         if (newKey == null) {
   185             throw new InvalidKeyException("Key cannot be null");
   186             throw new InvalidKeyException("Key cannot be null");
   329         }
   330         }
   330     }
   331     }
   331 
   332 
   332     // see JCE spec
   333     // see JCE spec
   333     @Override
   334     @Override
       
   335     @SuppressWarnings("deprecation")
   334     protected synchronized Key engineUnwrap(byte[] wrappedKey,
   336     protected synchronized Key engineUnwrap(byte[] wrappedKey,
   335             String wrappedKeyAlgorithm, int wrappedKeyType)
   337             String wrappedKeyAlgorithm, int wrappedKeyType)
   336             throws InvalidKeyException, NoSuchAlgorithmException {
   338             throws InvalidKeyException, NoSuchAlgorithmException {
   337 
   339 
   338         if (wrappedKey.length > buffer.length) {
   340         if (wrappedKey.length > buffer.length) {