private static class CryptoAES.Integrity extends Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
myKey |
private int |
mySeqNum |
private byte[] |
peerKey |
private int |
peerSeqNum |
private byte[] |
seqNum |
Constructor and Description |
---|
Integrity(byte[] outKey,
byte[] inKey) |
Modifier and Type | Method and Description |
---|---|
private int |
byteToInt(byte[] seqNum) |
private byte[] |
calculateHMAC(byte[] key,
byte[] seqNum,
byte[] msg,
int start,
int len) |
(package private) boolean |
compareHMAC(byte[] expectedHMAC,
byte[] peerSeqNum,
byte[] msg,
int start,
int len) |
(package private) boolean |
comparePeerSeqNum(byte[] peerSeqNum) |
(package private) byte[] |
getHMAC(byte[] msg,
int start,
int len) |
(package private) byte[] |
getSeqNum() |
(package private) void |
incMySeqNum() |
(package private) void |
incPeerSeqNum() |
private void |
intToByte(int num) |
private int mySeqNum
private int peerSeqNum
private byte[] seqNum
private byte[] myKey
private byte[] peerKey
Integrity(byte[] outKey, byte[] inKey) throws IOException
IOException
byte[] getHMAC(byte[] msg, int start, int len) throws SaslException
SaslException
boolean compareHMAC(byte[] expectedHMAC, byte[] peerSeqNum, byte[] msg, int start, int len) throws SaslException
SaslException
boolean comparePeerSeqNum(byte[] peerSeqNum)
byte[] getSeqNum()
void incMySeqNum()
void incPeerSeqNum()
private byte[] calculateHMAC(byte[] key, byte[] seqNum, byte[] msg, int start, int len) throws SaslException
SaslException
private void intToByte(int num)
private int byteToInt(byte[] seqNum)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.