Interface GordianMacParamsBuilder
public interface GordianMacParamsBuilder
MacParams Builder.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the parameters.key(GordianKey<GordianMacSpec> pKey) Generate keyOnly Parameters.keyAndNonce(GordianKey<GordianMacSpec> pKey, byte[] pNonce) Obtain keyAndNonce Parameters.Obtain keyAndRandomNonce Parameters.setKey(GordianKey<GordianMacSpec> pKey) Set the key.setNonce(byte[] pNonce) Set the nonce.setOutputLength(long pOutLen) Set the output length.setPersonalisation(byte[] pPersonal) Set the personalisation.setTreeConfig(int pFanOut, int pMaxDepth, int pLeafLen) Set the treeConfig.Use random nonce.
-
Method Details
-
setKey
Set the key.- Parameters:
pKey- the key- Returns:
- the Builder
-
setNonce
Set the nonce.- Parameters:
pNonce- the nonce- Returns:
- the Builder
-
withRandomNonce
GordianMacParamsBuilder withRandomNonce()Use random nonce.- Returns:
- the Builder
-
setPersonalisation
Set the personalisation.- Parameters:
pPersonal- the personalisation- Returns:
- the Builder
-
setOutputLength
Set the output length.- Parameters:
pOutLen- the outputLen- Returns:
- the Builder
-
setTreeConfig
Set the treeConfig.- Parameters:
pFanOut- the fanout.pMaxDepth- the maxDepth.pLeafLen- the leafLength.- Returns:
- the Builder
-
build
GordianMacParams build()Build the parameters.- Returns:
- the parameters
-
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
-