Class AuthenticationRakpNone
java.lang.Object
org.sentrysoftware.ipmi.core.coding.security.AuthenticationAlgorithm
org.sentrysoftware.ipmi.core.coding.security.AuthenticationRakpNone
RAKP-None authentication algorithm.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkKeyExchangeAuthenticationCode
(byte[] data, byte[] key, String password) Checks value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.boolean
doIntegrityCheck
(byte[] data, byte[] reference, byte[] sik) Performs Integrity Check in RAKP 4 message using the RAKP-None algorithm.byte
getCode()
int
byte[]
getKeyExchangeAuthenticationCode
(byte[] data, String password) Calculates value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.int
-
Constructor Details
-
AuthenticationRakpNone
public AuthenticationRakpNone()
-
-
Method Details
-
getCode
public byte getCode()- Specified by:
getCode
in classAuthenticationAlgorithm
- Returns:
- algorithm-specific code
-
checkKeyExchangeAuthenticationCode
Checks value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.- Specified by:
checkKeyExchangeAuthenticationCode
in classAuthenticationAlgorithm
- Parameters:
data
- - The base for authentication algorithm. Depends on RAKP Message.key
- - the Key Exchange Authentication Code to check.password
- - password of the user establishing a session- Returns:
- True if authentication check was successful, false otherwise.
-
getKeyExchangeAuthenticationCode
Calculates value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.- Specified by:
getKeyExchangeAuthenticationCode
in classAuthenticationAlgorithm
- Parameters:
data
- - The base for authentication algorithm. Depends on RAKP Message.password
- - password of the user establishing a session
-
doIntegrityCheck
public boolean doIntegrityCheck(byte[] data, byte[] reference, byte[] sik) Performs Integrity Check in RAKP 4 message using the RAKP-None algorithm.- Specified by:
doIntegrityCheck
in classAuthenticationAlgorithm
- Parameters:
data
- - The base for authentication algorithm.reference
- - The Integrity Check Value to validate.sik
- - The Session Integrity Key generated on base of RAKP Messages 1 and 2.- Returns:
- True if integrity check was successful, false otherwise.
- See Also:
-
getKeyLength
public int getKeyLength()- Specified by:
getKeyLength
in classAuthenticationAlgorithm
- Returns:
- length of the key for the RAKP2 message
-
getIntegrityCheckBaseLength
public int getIntegrityCheckBaseLength()- Specified by:
getIntegrityCheckBaseLength
in classAuthenticationAlgorithm
- Returns:
- length of the integrity check base for RAKP4 message
-