Class GordianMacParameters
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.mac.GordianMacParameters
Mac Parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParameter Builder. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Obtain the key.byte[]getNonce()Obtain the Nonce.longObtain the Output length.byte[]Obtain the Personalisation.shortObtain the treeFanOut.intObtain the treeLeafLength.shortObtain the treeMaxDepth.static GordianMacParameterskey(GordianKey<GordianMacSpec> pKey) Generate keyOnly Parameters.static GordianMacParameterskeyAndNonce(GordianKey<GordianMacSpec> pKey, byte[] pNonce) Obtain keyAndNonce Parameters.static GordianMacParametersObtain keyAndRandomNonce Parameters.booleanIs the nonce randomly generated?
-
Method Details
-
key
Generate keyOnly Parameters.- Parameters:
pKey- the key- Returns:
- the macParameters
-
keyAndNonce
Obtain keyAndNonce Parameters.- Parameters:
pKey- the keypNonce- the nonce- Returns:
- the macParameters
-
keyWithRandomNonce
Obtain keyAndRandomNonce Parameters.- Parameters:
pKey- the key- Returns:
- the macParameters
-
getKey
Obtain the key.- Returns:
- the key
-
getNonce
public byte[] getNonce()Obtain the Nonce.- Returns:
- the nonce
-
randomNonce
public boolean randomNonce()Is the nonce randomly generated?- Returns:
- true/false
-
getPersonal
public byte[] getPersonal()Obtain the Personalisation.- Returns:
- the personalisation
-
getOutputLength
public long getOutputLength()Obtain the Output length.- Returns:
- the outLength
-
getTreeLeafLen
public int getTreeLeafLen()Obtain the treeLeafLength.- Returns:
- the leafLength
-
getTreeFanOut
public short getTreeFanOut()Obtain the treeFanOut.- Returns:
- the fanOut
-
getTreeMaxDepth
public short getTreeMaxDepth()Obtain the treeMaxDepth.- Returns:
- the maxDepth
-