public int doFinal(byte[] out, int outOff) throws IllegalStateException, InvalidCipherTextException { return cipher.doFinal(out, outOff); } }
public int getOutputSize(int len) { return cipher.getOutputSize(len); }
public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException { cipher.init(forEncryption, params); }
int ciphertextLength = encryptCipher.getOutputSize(plaintextLength); encryptCipher.init(true, parameters); outputPos += encryptCipher.processBytes(plaintext, plaintextOffset, plaintextLength, output, outputPos); outputPos += encryptCipher.doFinal(output, outputPos);
public int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) { int len = cipher.processBytes(input, inputOffset, inputLength, output, outputOffset); try { return len + cipher.doFinal(output, outputOffset + len); } catch (InvalidCipherTextException e) { // TODO: throw new RuntimeCryptoException(e.toString()); } } }
bufLen = aeadBlockCipher.getOutputSize(updateSize); bufLen = aeadBlockCipher.getUpdateOutputSize(updateSize);
public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthException { return cipher.processBytes(in, inOff, len, out, outOff); }
public BlockCipher getUnderlyingCipher() { return cipher.getUnderlyingCipher(); }
public int getUpdateOutputSize(int len) { return cipher.getUpdateOutputSize(len); }
public int processByte(byte in, byte[] out, int outOff) throws DataLengthException { return cipher.processByte(in, out, outOff); }
int plaintextLength = decryptCipher.getOutputSize(ciphertextLength); decryptCipher.init(false, parameters); outputPos += decryptCipher.processBytes(ciphertext, ciphertextOffset, ciphertextLength, output, outputPos); outputPos += decryptCipher.doFinal(output, outputPos);
bufLen = aeadBlockCipher.getOutputSize(updateSize); bufLen = aeadBlockCipher.getUpdateOutputSize(updateSize);
public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthException { return cipher.processBytes(in, inOff, len, out, outOff); }
public org.spongycastle.crypto.BlockCipher getUnderlyingCipher() { return cipher.getUnderlyingCipher(); }
public int getUpdateOutputSize(int len) { return cipher.getUpdateOutputSize(len); }
public int processByte(byte in, byte[] out, int outOff) throws DataLengthException { return cipher.processByte(in, out, outOff); }
public void init(boolean forEncryption, CipherParameters params) throws IllegalArgumentException { cipher.init(forEncryption, params); }
public int doFinal(byte[] out, int outOff) throws IllegalStateException, InvalidCipherTextException { return cipher.doFinal(out, outOff); } }
public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthException { return cipher.processBytes(in, inOff, len, out, outOff); }
public int getOutputSize(int len) { return cipher.getOutputSize(len); }