@Test public void testDecryptionWithIvWithTagLength() throws CryptoException { NullCipher cipher = new NullCipher(); byte[] bDecrypted = cipher.decrypt(bIV, iTag, bMessage); assertArrayEquals(bMessage, bDecrypted); }
@Override public byte[] decrypt(byte[] someBytes) throws CryptoException { return someBytes; }
NullCipher implements EncryptionCipher, DecryptionCipher { @Override public byte[] decrypt(byte[] someBytes) throws CryptoException { return someBytes; } }
NullCipher implements EncryptionCipher, DecryptionCipher { @Override public byte[] decrypt(byte[] someBytes) throws CryptoException { return someBytes; } NullCipher(); }
NullCipher implements EncryptionCipher, DecryptionCipher { @Override public byte[] decrypt(byte[] someBytes) throws CryptoException { return someBytes; } NullCipher(); @Override int getBlocksize(); @Override byte[] encrypt(byte[] someBytes); @Override byte[] encrypt(byte[] iv, byte[] someBytes); @Override byte[] encrypt(byte[] iv, int tagLength, byte[] someBytes); @Override byte[] encrypt(byte[] iv, int tagLength, byte[] additionAuthenticatedData, byte[] someBytes); @Override byte[] getIv(); @Override void setIv(byte[] iv); @Override byte[] decrypt(byte[] someBytes); @Override byte[] decrypt(byte[] iv, byte[] someBytes); @Override byte[] decrypt(byte[] iv, int tagLength, byte[] someBytes); @Override byte[] decrypt(byte[] iv, int tagLength, byte[] additionAuthenticatedData, byte[] someBytes); }
NullCipher implements EncryptionCipher, DecryptionCipher { @Override public byte[] decrypt(byte[] someBytes) throws CryptoException { return someBytes; } NullCipher(); @Override int getBlocksize(); @Override byte[] encrypt(byte[] someBytes); @Override byte[] encrypt(byte[] iv, byte[] someBytes); @Override byte[] encrypt(byte[] iv, int tagLength, byte[] someBytes); @Override byte[] encrypt(byte[] iv, int tagLength, byte[] additionAuthenticatedData, byte[] someBytes); @Override byte[] getIv(); @Override void setIv(byte[] iv); @Override byte[] decrypt(byte[] someBytes); @Override byte[] decrypt(byte[] iv, byte[] someBytes); @Override byte[] decrypt(byte[] iv, int tagLength, byte[] someBytes); @Override byte[] decrypt(byte[] iv, int tagLength, byte[] additionAuthenticatedData, byte[] someBytes);  }