public class CTRCipher
extends mybouncycastle.org.bouncycastle.crypto.BufferedBlockCipher
Modifier and Type | Field and Description |
---|---|
static boolean |
DECRYPT_MODE |
static boolean |
ENCRYPT_MODE |
(package private) static int |
IV_SIZE |
(package private) static int |
KEY_SIZE |
Modifier | Constructor and Description |
---|---|
private |
CTRCipher(mybouncycastle.org.bouncycastle.crypto.BlockCipher blockCipher) |
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
static final int KEY_SIZE
static final int IV_SIZE
private CTRCipher(mybouncycastle.org.bouncycastle.crypto.BlockCipher blockCipher)
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.InvalidCipherTextException
public byte[] decryptBuffer(byte[] cipherText) throws mybouncycastle.org.bouncycastle.crypto.InvalidCipherTextException
mybouncycastle.org.bouncycastle.crypto.InvalidCipherTextException
Copyright © 2023. All rights reserved.