Class IntegrityHmacSha1_96
java.lang.Object
org.sentrysoftware.ipmi.core.coding.security.IntegrityAlgorithm
org.sentrysoftware.ipmi.core.coding.security.IntegrityHmacSha1_96
HMAC-SHA1-96 integrity algorithm.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]generateAuthCode(byte[] base) Creates AuthCode field for message.bytegetCode()Returns the algorithm's ID.voidinitialize(byte[] sik) Initializes Integrity Algorithm
-
Field Details
-
ALGORITHM_NAME
- See Also:
-
-
Constructor Details
-
IntegrityHmacSha1_96
Initiates HMAC-SHA1-96 integrity algorithm.- Throws:
NoSuchAlgorithmException- - when initiation of the algorithm fails
-
-
Method Details
-
initialize
Description copied from class:IntegrityAlgorithmInitializes Integrity Algorithm- Overrides:
initializein classIntegrityAlgorithm- Parameters:
sik- - Session Integrity Key calculated during the opening of the session or user password if 'one-key' logins are enabled.- Throws:
InvalidKeyException
-
getCode
public byte getCode()Description copied from class:IntegrityAlgorithmReturns the algorithm's ID.- Specified by:
getCodein classIntegrityAlgorithm
-
generateAuthCode
public byte[] generateAuthCode(byte[] base) Description copied from class:IntegrityAlgorithmCreates AuthCode field for message.- Specified by:
generateAuthCodein classIntegrityAlgorithm- Parameters:
base- - data starting with the AuthType/Format field up to and including the field that immediately precedes the AuthCode field- Returns:
- AuthCode field. Might be null if empty AuthCOde field is generated.
- See Also:
-