Class IntegrityAlgorithm
java.lang.Object
org.sentrysoftware.ipmi.core.coding.security.IntegrityAlgorithm
- Direct Known Subclasses:
IntegrityHmacSha1_96,IntegrityNone
Interface for Integrity Algorithms. All classes extending this one must
implement constructor(byte[]).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]generateAuthCode(byte[] base) Creates AuthCode field for message.abstract bytegetCode()Returns the algorithm's ID.voidinitialize(byte[] sik) Initializes Integrity Algorithm
-
Constructor Details
-
IntegrityAlgorithm
public IntegrityAlgorithm()
-
-
Method Details
-
initialize
Initializes Integrity Algorithm- 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 abstract byte getCode()Returns the algorithm's ID. -
generateAuthCode
public abstract byte[] generateAuthCode(byte[] base) Creates AuthCode field for message.- 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:
-