Class GordianKeyPairSpecBuilder
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianKeyPairSpecBuilder
Asymmetric KeyPair Specification Builder.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GordianKeyPairSpecbike(GordianBIKESpec pSpec) Create BIKEKey.static GordianKeyPairSpeccmce(GordianCMCESpec pSpec) Create CMCEKey.static GordianKeyPairSpeccomposite(GordianKeyPairSpec... pSpecs) Create CompositeKey.static GordianKeyPairSpeccomposite(List<GordianKeyPairSpec> pSpecs) Create CompositeKey.static GordianKeyPairSpecdh(GordianDHGroup pGroup) Create DHKey.static GordianKeyPairSpecdsa(GordianDSAKeyType pKeyType) Create DSAKey.static GordianKeyPairSpecdstu4145(GordianDSTU4145Elliptic pCurve) Create DSTU4145Key.static GordianKeyPairSpecec(GordianDSAElliptic pCurve) Create ECKey.static GordianKeyPairSpeced25519()Create EdDSA25519 Key.static GordianKeyPairSpeced448()Create EdDSA448 Key.static GordianKeyPairSpecelGamal(GordianDHGroup pGroup) Create ElGamalKey.static GordianKeyPairSpecfalcon(GordianFalconSpec pSpec) Create FalconKey.static GordianKeyPairSpecfrodo(GordianFRODOSpec pSpec) Create FRODOKey.static GordianKeyPairSpecgost2012(GordianGOSTElliptic pCurve) Create GOST2012Key.static GordianKeyPairSpechqc(GordianHQCSpec pSpec) Create HQCKey.static GordianKeyPairSpechss(GordianLMSKeySpec pKeySpec, int pDepth) Create hssKey.static GordianKeyPairSpeclms(GordianLMSKeySpec pKeySpec) Create lmsKey.static GordianKeyPairSpecmayo(GordianMayoSpec pSpec) Create MayoKey.static GordianKeyPairSpecmldsa(GordianMLDSASpec pSpec) Create MLDSAKey.static GordianKeyPairSpecmlkem(GordianMLKEMSpec pSpec) Create MLKEMKey.static GordianKeyPairSpecnewHope()Create newHopeKey.static GordianKeyPairSpecntru(GordianNTRUSpec pSpec) Create NTRUKey.static GordianKeyPairSpecntruprime(GordianNTRUPrimeSpec pSpec) Create NTRUPRIMEKey.static GordianKeyPairSpecpicnic(GordianPicnicSpec pSpec) Create PicnicKey.static GordianKeyPairSpecrsa(GordianRSAModulus pModulus) Create RSAKey.static GordianKeyPairSpecsaber(GordianSABERSpec pSpec) Create SABERKey.static GordianKeyPairSpecslhdsa(GordianSLHDSASpec pSpec) Create SLHDSAKey.static GordianKeyPairSpecsm2(GordianSM2Elliptic pCurve) Create SM2Key.static GordianKeyPairSpecsnova(GordianSnovaSpec pSpec) Create SnovaKey.static GordianKeyPairSpecx25519()Create EdDSA25519 Key.static GordianKeyPairSpecx448()Create EdX448 Key.static GordianKeyPairSpecxmss(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight) Create xmssKey.static GordianKeyPairSpecxmssmt(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight, GordianXMSSKeySpec.GordianXMSSMTLayers pLayers) Create xmssMTKey.
-
Method Details
-
rsa
Create RSAKey.- Parameters:
pModulus- the modulus- Returns:
- the KeySpec
-
ec
Create ECKey.- Parameters:
pCurve- the curve- Returns:
- the KeySpec
-
sm2
Create SM2Key.- Parameters:
pCurve- the curve- Returns:
- the KeySpec
-
dstu4145
Create DSTU4145Key.- Parameters:
pCurve- the curve- Returns:
- the KeySpec
-
gost2012
Create GOST2012Key.- Parameters:
pCurve- the curve- Returns:
- the KeySpec
-
dsa
Create DSAKey.- Parameters:
pKeyType- the keyType- Returns:
- the KeySpec
-
dh
Create DHKey.- Parameters:
pGroup- the group- Returns:
- the KeySpec
-
elGamal
Create ElGamalKey.- Parameters:
pGroup- the group- Returns:
- the KeySpec
-
x25519
Create EdDSA25519 Key.- Returns:
- the KeySpec
-
x448
Create EdX448 Key.- Returns:
- the KeySpec
-
ed25519
Create EdDSA25519 Key.- Returns:
- the KeySpec
-
ed448
Create EdDSA448 Key.- Returns:
- the KeySpec
-
xmss
public static GordianKeyPairSpec xmss(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight) Create xmssKey.- Parameters:
pDigestType- the xmss digestTypepHeight- the height- Returns:
- the KeySpec
-
xmssmt
public static GordianKeyPairSpec xmssmt(GordianXMSSKeySpec.GordianXMSSDigestType pDigestType, GordianXMSSKeySpec.GordianXMSSHeight pHeight, GordianXMSSKeySpec.GordianXMSSMTLayers pLayers) Create xmssMTKey.- Parameters:
pDigestType- the xmss digestTypepHeight- the heightpLayers- the layers- Returns:
- the KeySpec
-
lms
Create lmsKey.- Parameters:
pKeySpec- the keySpec- Returns:
- the KeySpec
-
hss
Create hssKey.- Parameters:
pKeySpec- the keySpecpDepth- the treeDepth- Returns:
- the KeySpec
-
newHope
Create newHopeKey.- Returns:
- the KeySpec
-
slhdsa
Create SLHDSAKey.- Parameters:
pSpec- the SLHDSA Spec- Returns:
- the KeySpec
-
cmce
Create CMCEKey.- Parameters:
pSpec- the CMCE Spec- Returns:
- the KeySpec
-
frodo
Create FRODOKey.- Parameters:
pSpec- the FRODO Spec- Returns:
- the KeySpec
-
saber
Create SABERKey.- Parameters:
pSpec- the SABER Spec- Returns:
- the KeySpec
-
mlkem
Create MLKEMKey.- Parameters:
pSpec- the MLKEM Spec- Returns:
- the KeySpec
-
mldsa
Create MLDSAKey.- Parameters:
pSpec- the MLDSA Spec- Returns:
- the KeySpec
-
hqc
Create HQCKey.- Parameters:
pSpec- the HQC Spec- Returns:
- the KeySpec
-
bike
Create BIKEKey.- Parameters:
pSpec- the BIKE Spec- Returns:
- the KeySpec
-
ntru
Create NTRUKey.- Parameters:
pSpec- the NTRU Spec- Returns:
- the KeySpec
-
ntruprime
Create NTRUPRIMEKey.- Parameters:
pSpec- the NTRUPRIME Spec- Returns:
- the KeySpec
-
falcon
Create FalconKey.- Parameters:
pSpec- the FALCON Spec- Returns:
- the KeySpec
-
picnic
Create PicnicKey.- Parameters:
pSpec- the Picnic Spec- Returns:
- the KeySpec
-
mayo
Create MayoKey.- Parameters:
pSpec- the Mayo Spec- Returns:
- the KeySpec
-
snova
Create SnovaKey.- Parameters:
pSpec- the Snova Spec- Returns:
- the KeySpec
-
composite
Create CompositeKey.- Parameters:
pSpecs- the list of keySpecs- Returns:
- the KeySpec
-
composite
Create CompositeKey.- Parameters:
pSpecs- the list of keySpecs- Returns:
- the KeySpec
-