public class IntegrityHmacSha1_96 extends IntegrityAlgorithm
Constructor and Description |
---|
IntegrityHmacSha1_96()
Initiates HMAC-SHA1-96 integrity algorithm.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
generateAuthCode(byte[] base)
Creates AuthCode field for message.
|
byte |
getCode()
Returns the algorithm's ID.
|
void |
initialize(byte[] sik)
Initializes Integrity Algorithm
|
public IntegrityHmacSha1_96() throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
- - when initiation of the algorithm failspublic void initialize(byte[] sik) throws java.security.InvalidKeyException
IntegrityAlgorithm
initialize
in class IntegrityAlgorithm
sik
- - Session Integrity Key calculated during the opening of the
session or user password if 'one-key' logins are enabled.java.security.InvalidKeyException
- - when initiation of the algorithm failspublic byte getCode()
IntegrityAlgorithm
getCode
in class IntegrityAlgorithm
public byte[] generateAuthCode(byte[] base)
IntegrityAlgorithm
generateAuthCode
in class IntegrityAlgorithm
base
- - data starting with the AuthType/Format field up to and
including the field that immediately precedes the AuthCode
fieldRakp1.calculateSik(com.veraxsystems.vxipmi.coding.commands.session.Rakp1ResponseData)