Maven module :un.api : api-encoding :
Class : un.impl.cryptography.modes.CipherMode
Extends/Implements : -
Subclasses : -

author  Bertrand COTE


Variables : -
Functions : cipher, cipher, invCipher, invCipher, getNewCipher




Encrypts input array(The IV must be prepended to the input text).
param  input the text to cipher (The IV is prepended to the input text).
return  the cipherText.
public byte[] cipher (byte[] input)


Encrypts inputStream (The IV must be prepended to the input text),
and put the ciphered text to the outputStream.
param  input
param  output
throws  IOException
public void cipher (ByteInputStream input, ByteOutputStream output)


Decrypts input array.
param  input the cipheText.
return  the plainText without the IV.
throws  un.impl.cryptography.paddings.InvalidPadException
public byte[] invCipher (byte[] input)

public void invCipher (ByteInputStream input, ByteOutputStream output)

CipherMode getNewCipher (byte[] key, CipherAlgorithm algorithm, Padding padding)