public abstract class AesCtsHmacSha1Decoder extends Decoder
Constructor and Description |
---|
AesCtsHmacSha1Decoder() |
Modifier and Type | Method and Description |
---|---|
int |
blockSize() |
int |
checksumSize() |
int |
confounderSize() |
byte[] |
decrypt(byte[] cipher,
byte[] key,
byte[] ivec,
int usage) |
byte[] |
decrypt(byte[] cipher,
byte[] key,
int usage) |
protected byte[] |
decrypt(byte[] baseKey,
int usage,
byte[] ivec,
byte[] cipherText,
int start,
int length) |
protected byte[] |
decryptCTS(byte[] baseKey,
int usage,
byte[] ivec,
byte[] ciphertext,
int start,
int len,
boolean confounder_exists) |
byte[] |
decryptedData(byte[] data) |
protected byte[] |
dk(byte[] key,
byte[] constant) |
protected Cipher |
getCipher(byte[] key,
byte[] ivec,
int mode) |
protected byte[] |
getHmac(byte[] key,
byte[] msg) |
protected abstract int |
getKeySeedLength() |
protected byte[] |
randomToKey(byte[] in) |
dataSize, getInstace, keySize, startOfChecksum, startOfData
public int checksumSize()
checksumSize
in class Decoder
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 byte[] decrypt(byte[] baseKey, int usage, byte[] ivec, byte[] cipherText, int start, int length) throws GeneralSecurityException
GeneralSecurityException
protected byte[] decryptCTS(byte[] baseKey, int usage, byte[] ivec, byte[] ciphertext, int start, int len, boolean confounder_exists) throws GeneralSecurityException
GeneralSecurityException
protected byte[] getHmac(byte[] key, byte[] msg) throws GeneralSecurityException
GeneralSecurityException
protected byte[] dk(byte[] key, byte[] constant) throws GeneralSecurityException
GeneralSecurityException
protected byte[] randomToKey(byte[] in)
protected Cipher getCipher(byte[] key, byte[] ivec, int mode) throws GeneralSecurityException
GeneralSecurityException
public byte[] decryptedData(byte[] data)
decryptedData
in class Decoder
protected abstract int getKeySeedLength()
Copyright © 2018 JBoss by Red Hat. All rights reserved.