if (params.getInitializationVector() == null) { try { cipher.init(Cipher.ENCRYPT_MODE, cipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(params.getPlaintextKey(), params.getAlgorithmName()), new IvParameterSpec(params.getInitializationVector())); } catch (InvalidKeyException e) { log.error("Accumulo encountered an unknown error in generating the"
cipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(params.getPlaintextKey(), params.getAlgorithmName()), new IvParameterSpec(params.getInitializationVector())); } catch (InvalidKeyException e) { log.error("Error when trying to initialize cipher with secret key");
if (cryptoParams.getInitializationVector() != null) { tempDataOutputStream.writeInt(cryptoParams.getInitializationVector().length); tempDataOutputStream.write(cryptoParams.getInitializationVector()); } else {
dataOut.writeInt(params.getInitializationVector().length); dataOut.write(params.getInitializationVector());
allIsWell = validateNotNull(params.getEncryptedInputStream(), allIsWell, errorBuf, "No encrypted input stream was specified."); allIsWell = validateNotNull(params.getInitializationVector(), allIsWell, errorBuf, "No initialization vector was specified."); allIsWell = validateNotNull(params.getEncryptedKey(), allIsWell, errorBuf,