Class ConfidentialityNone
java.lang.Object
org.metricshub.ipmi.core.coding.security.ConfidentialityAlgorithm
org.metricshub.ipmi.core.coding.security.ConfidentialityNone
Class representing no confidentiality algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decrypt(byte[] data) Decrypts the data.byte[]encrypt(byte[] data) Encrypts the data.bytegetCode()Returns the algorithm's ID.intgetConfidentialityOverheadSize(int payloadSize) Calculates size of the confidentiality header and trailer specific for the algorithm.Methods inherited from class org.metricshub.ipmi.core.coding.security.ConfidentialityAlgorithm
initialize
-
Constructor Details
-
ConfidentialityNone
public ConfidentialityNone()
-
-
Method Details
-
getCode
public byte getCode()Description copied from class:ConfidentialityAlgorithmReturns the algorithm's ID.- Specified by:
getCodein classConfidentialityAlgorithm
-
encrypt
public byte[] encrypt(byte[] data) Description copied from class:ConfidentialityAlgorithmEncrypts the data.- Specified by:
encryptin classConfidentialityAlgorithm- Parameters:
data- - payload to be encrypted- Returns:
- encrypted data encapsulated in COnfidentiality Header and Trailer.
-
decrypt
public byte[] decrypt(byte[] data) Description copied from class:ConfidentialityAlgorithmDecrypts the data.- Specified by:
decryptin classConfidentialityAlgorithm- Parameters:
data- - encrypted data encapsulated in COnfidentiality Header and Trailer.- Returns:
- decrypted data.
-
getConfidentialityOverheadSize
public int getConfidentialityOverheadSize(int payloadSize) Description copied from class:ConfidentialityAlgorithmCalculates size of the confidentiality header and trailer specific for the algorithm.- Specified by:
getConfidentialityOverheadSizein classConfidentialityAlgorithm- Parameters:
payloadSize- - size of the data that will be encrypted
-