public class CTRCipher
extends mybouncycastle.org.bouncycastle.crypto.BufferedBlockCipher
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DECRYPT_MODE |
static boolean |
ENCRYPT_MODE |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decryptBuffer(byte[] cipherText) |
byte[] |
encryptBuffer(byte[] plainText) |
static CTRCipher |
getCipher(byte[] symmetricKey,
byte[] iv,
boolean cryptMode) |
public static final boolean ENCRYPT_MODE
public static final boolean DECRYPT_MODE
public static CTRCipher getCipher(byte[] symmetricKey, byte[] iv, boolean cryptMode)
public byte[] encryptBuffer(byte[] plainText)
throws mybouncycastle.org.bouncycastle.crypto.InvalidCipherTextException
mybouncycastle.org.bouncycastle.crypto.InvalidCipherTextExceptionpublic byte[] decryptBuffer(byte[] cipherText)
throws mybouncycastle.org.bouncycastle.crypto.InvalidCipherTextException
mybouncycastle.org.bouncycastle.crypto.InvalidCipherTextExceptionCopyright © 2023. All rights reserved.