private SaltedSecretKey createSaltedSecretKey(CipherSpec cipherSpec) throws InvalidKeySpecException, NoSuchAlgorithmException, NoSuchProviderException { byte[] salt = CipherUtil.createRandomArray(MultiCipherOutputStream.SALT_SIZE); return createSaltedSecretKey(cipherSpec, salt); }
SaltedSecretKey saltedSecretKey = createSaltedSecretKey(cipherSpec, salt); secretKeyCacheEntry = new SecretKeyCacheEntry(saltedSecretKey);
SaltedSecretKey saltedSecretKey = createSaltedSecretKey(cipherSpec);