public abstract class DesCbcDecoder extends Decoder
Constructor and Description |
---|
DesCbcDecoder() |
Modifier and Type | Method and Description |
---|---|
int |
blockSize() |
protected abstract byte[] |
calculateChecksum(byte[] data,
int size) |
static void |
cbc_encrypt(byte[] input,
byte[] output,
byte[] key,
byte[] ivec,
boolean encrypt) |
int |
confounderSize() |
byte[] |
decrypt(byte[] cipher,
byte[] key,
byte[] ivec,
int usage) |
byte[] |
decrypt(byte[] cipher,
byte[] key,
int usage) |
protected boolean |
isChecksumValid(byte[] data) |
int |
keySize() |
checksumSize, dataSize, decryptedData, getInstace, startOfChecksum, startOfData
protected abstract byte[] calculateChecksum(byte[] data, int size) throws NegotiationException
NegotiationException
public int confounderSize()
confounderSize
in class Decoder
public byte[] decrypt(byte[] cipher, byte[] key, int usage) throws NegotiationException
decrypt
in class Decoder
NegotiationException
public byte[] decrypt(byte[] cipher, byte[] key, byte[] ivec, int usage) throws NegotiationException
NegotiationException
protected boolean isChecksumValid(byte[] data) throws NegotiationException
NegotiationException
public static void cbc_encrypt(byte[] input, byte[] output, byte[] key, byte[] ivec, boolean encrypt) throws NegotiationException
NegotiationException
Copyright © 2018 JBoss by Red Hat. All rights reserved.