Class GordianMacSpecBuilder
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.mac.GordianMacSpecBuilder
Mac Specification Builder.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GordianMacSpecblake2bMac(GordianLength pKeyLength, GordianLength pLength) Create blake2bMacSpec.static GordianMacSpecblake2Mac(GordianLength pKeyLength, GordianDigestSpec pSpec) Create blake2MacSpec.static GordianMacSpecblake2sMac(GordianLength pKeyLength, GordianLength pLength) Create blake2sMacSpec.static GordianMacSpecblake2XMac(GordianLength pKeyLength, GordianDigestSubSpec.GordianDigestState pState) Create blake2MacSpec.static GordianMacSpecblake3Mac(GordianLength pMacLength) Create blake3MacSpec.static GordianMacSpeccbcMac(GordianSymKeySpec pSymKeySpec) Create cbcMacSpec.static GordianMacSpeccfbMac(GordianSymKeySpec pSymKeySpec) Create cfbMacSpec.static GordianMacSpeccMac(GordianSymKeySpec pSymKeySpec) Create cMacSpec.static GordianMacSpecgMac(GordianSymKeySpec pSymKeySpec) Create gMacSpec.static GordianMacSpecgostMac()Create gostMacSpec.static GordianMacSpechMac(GordianDigestSpec pDigestSpec) Create hMacSpec.static GordianMacSpechMac(GordianDigestSpec pDigestSpec, GordianLength pKeyLength) Create hMacSpec.static GordianMacSpechMac(GordianDigestType pDigestType) Create hMacSpec.static GordianMacSpechMac(GordianDigestType pDigestType, GordianLength pKeyLength) Create hMacSpec.static GordianMacSpeckalynaMac(GordianSymKeySpec pKeySpec) Create kalynaMacSpec.static GordianMacSpeckMac(GordianLength pKeyLength) Create skeinMacSpec.static GordianMacSpeckMac(GordianLength pKeyLength, GordianDigestSpec pSpec) Create KMACSpec.static GordianMacSpeckupynaMac(GordianLength pKeyLength) Create kupynaMacSpec.static GordianMacSpeckupynaMac(GordianLength pKeyLength, GordianLength pLength) Create kupynaMacSpec.static GordianMacSpecCreate poly1305MacSpec.static GordianMacSpecpoly1305Mac(GordianSymKeySpec pSymKeySpec) Create poly1305MacSpec.static GordianMacSpecsipHash(GordianSipHashSpec pSpec) Create sipHashSpec.static GordianMacSpecskeinMac(GordianLength pKeyLength) Create skeinMacSpec.static GordianMacSpecskeinMac(GordianLength pKeyLength, GordianLength pLength) Create skeinMacSpec.static GordianMacSpecskeinMac(GordianLength pKeyLength, GordianDigestSpec pSpec) Create skeinMacSpec.static GordianMacSpecskeinMac(GordianLength pKeyLength, GordianDigestSubSpec.GordianDigestState pState, GordianLength pLength) Create skeinMacSpec.static GordianMacSpecskeinXMac(GordianLength pKeyLength, GordianDigestSubSpec.GordianDigestState pState) Create skeinXMacSpec.static GordianMacSpecvmpcMac(GordianLength pKeyLength) Create vmpcMacSpec.static GordianMacSpeczucMac(GordianLength pKeyLength, GordianLength pLength) Create zucMacSpec.
-
Method Details
-
hMac
Create hMacSpec.- Parameters:
pDigestType- the digestType- Returns:
- the MacSpec
-
hMac
Create hMacSpec.- Parameters:
pDigestType- the digestTypepKeyLength- the keyLength- Returns:
- the MacSpec
-
hMac
Create hMacSpec.- Parameters:
pDigestSpec- the digestSpec- Returns:
- the MacSpec
-
hMac
Create hMacSpec.- Parameters:
pDigestSpec- the digestSpecpKeyLength- the keyLength- Returns:
- the MacSpec
-
gMac
Create gMacSpec.- Parameters:
pSymKeySpec- the symKeySpec- Returns:
- the MacSpec
-
cMac
Create cMacSpec.- Parameters:
pSymKeySpec- the symKeySpec- Returns:
- the MacSpec
-
kMac
Create skeinMacSpec.- Parameters:
pKeyLength- the keyLength- Returns:
- the MacSpec
-
kMac
Create KMACSpec.- Parameters:
pKeyLength- the keyLengthpSpec- the Shake Spec- Returns:
- the MacSpec
-
poly1305Mac
Create poly1305MacSpec.- Returns:
- the MacSpec
-
poly1305Mac
Create poly1305MacSpec.- Parameters:
pSymKeySpec- the symKeySpec- Returns:
- the MacSpec
-
skeinMac
Create skeinMacSpec.- Parameters:
pKeyLength- the keyLength- Returns:
- the MacSpec
-
skeinMac
Create skeinMacSpec.- Parameters:
pKeyLength- the keyLengthpLength- the length- Returns:
- the MacSpec
-
skeinMac
public static GordianMacSpec skeinMac(GordianLength pKeyLength, GordianDigestSubSpec.GordianDigestState pState, GordianLength pLength) Create skeinMacSpec.- Parameters:
pKeyLength- the keyLengthpState- the digestStatepLength- the length- Returns:
- the MacSpec
-
skeinMac
Create skeinMacSpec.- Parameters:
pKeyLength- the keyLengthpSpec- the skeinDigestSpec- Returns:
- the MacSpec
-
skeinXMac
public static GordianMacSpec skeinXMac(GordianLength pKeyLength, GordianDigestSubSpec.GordianDigestState pState) Create skeinXMacSpec.- Parameters:
pKeyLength- the keyLengthpState- the state- Returns:
- the MacSpec
-
blake2sMac
Create blake2sMacSpec.- Parameters:
pKeyLength- the lengthpLength- the length- Returns:
- the MacSpec
-
blake2bMac
Create blake2bMacSpec.- Parameters:
pKeyLength- the lengthpLength- the length- Returns:
- the MacSpec
-
blake2Mac
Create blake2MacSpec.- Parameters:
pKeyLength- the keyLengthpSpec- the blake digestSpec- Returns:
- the MacSpec
-
blake2XMac
public static GordianMacSpec blake2XMac(GordianLength pKeyLength, GordianDigestSubSpec.GordianDigestState pState) Create blake2MacSpec.- Parameters:
pKeyLength- the keyLengthpState- the blake state- Returns:
- the MacSpec
-
blake3Mac
Create blake3MacSpec.- Parameters:
pMacLength- the macLength- Returns:
- the MacSpec
-
kalynaMac
Create kalynaMacSpec.- Parameters:
pKeySpec- the keySpec- Returns:
- the MacSpec
-
kupynaMac
Create kupynaMacSpec.- Parameters:
pKeyLength- the keyLength- Returns:
- the MacSpec
-
kupynaMac
Create kupynaMacSpec.- Parameters:
pKeyLength- the keyLengthpLength- the length- Returns:
- the MacSpec
-
vmpcMac
Create vmpcMacSpec.- Parameters:
pKeyLength- the keyLength- Returns:
- the MacSpec
-
gostMac
Create gostMacSpec.- Returns:
- the MacSpec
-
sipHash
Create sipHashSpec.- Parameters:
pSpec- the sipHashSpec- Returns:
- the MacSpec
-
cbcMac
Create cbcMacSpec.- Parameters:
pSymKeySpec- the symKeySpec- Returns:
- the MacSpec
-
cfbMac
Create cfbMacSpec.- Parameters:
pSymKeySpec- the symKeySpec- Returns:
- the MacSpec
-
zucMac
Create zucMacSpec.- Parameters:
pKeyLength- the keyLengthpLength- the length- Returns:
- the MacSpec
-