@Override public CryptoModuleParameters decryptSecretKey(CryptoModuleParameters params) { params.setPlaintextKey(params.getEncryptedKey()); return params; }
Key plaintextKey = cipher.unwrap(params.getEncryptedKey(), params.getAlgorithmName(), Cipher.SECRET_KEY); params.setPlaintextKey(plaintextKey.getEncoded());
Key plaintextKey = cipher.unwrap(params.getEncryptedKey(), params.getAlgorithmName(), Cipher.SECRET_KEY); params.setPlaintextKey(plaintextKey.getEncoded());
dataOut.writeInt(params.getEncryptedKey().length); dataOut.write(params.getEncryptedKey()); dataOut.writeInt(params.getBlockStreamSize());
allIsWell = validateNotNull(params.getInitializationVector(), allIsWell, errorBuf, "No initialization vector was specified."); allIsWell = validateNotNull(params.getEncryptedKey(), allIsWell, errorBuf, "No encrypted key was specified.");