Here are the examples of the java api class com.google.bitcoin.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher taken from open source projects.
1. DESExample#process()
Project: bitcoin-android
File: DESExample.java
File: DESExample.java
private void process() { /* * Setup the DESede cipher engine, create a PaddedBufferedBlockCipher * in CBC mode. */ cipher = new PaddedBufferedBlockCipher(new CBCBlockCipher(new DESedeEngine())); if (encrypt) { performEncrypt(key); } else { performDecrypt(key); } // after processing clean up the files try { in.close(); out.flush(); out.close(); } catch (IOException closing) { } }