Class HQCKeyFactorySpi
- java.lang.Object
-
- java.security.KeyFactorySpi
-
- org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi
-
- org.bouncycastle.pqc.jcajce.provider.hqc.HQCKeyFactorySpi
-
- All Implemented Interfaces:
AsymmetricKeyInfoConverter
- Direct Known Subclasses:
HQCKeyFactorySpi.HQC128
,HQCKeyFactorySpi.HQC192
,HQCKeyFactorySpi.HQC256
public class HQCKeyFactorySpi extends BaseKeyFactorySpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HQCKeyFactorySpi.HQC128
static class
HQCKeyFactorySpi.HQC192
static class
HQCKeyFactorySpi.HQC256
-
Constructor Summary
Constructors Constructor Description HQCKeyFactorySpi()
HQCKeyFactorySpi(ASN1ObjectIdentifier keyOids)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.PrivateKey
engineGeneratePrivate(java.security.spec.KeySpec keySpec)
java.security.PublicKey
engineGeneratePublic(java.security.spec.KeySpec keySpec)
java.security.spec.KeySpec
engineGetKeySpec(java.security.Key key, java.lang.Class keySpec)
java.security.Key
engineTranslateKey(java.security.Key key)
java.security.PrivateKey
generatePrivate(PrivateKeyInfo keyInfo)
java.security.PublicKey
generatePublic(SubjectPublicKeyInfo keyInfo)
-
-
-
Constructor Detail
-
HQCKeyFactorySpi
public HQCKeyFactorySpi()
-
HQCKeyFactorySpi
public HQCKeyFactorySpi(ASN1ObjectIdentifier keyOids)
-
-
Method Detail
-
engineGeneratePrivate
public java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
- Overrides:
engineGeneratePrivate
in classBaseKeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
-
engineGeneratePublic
public java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException
- Overrides:
engineGeneratePublic
in classBaseKeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
-
engineGetKeySpec
public final java.security.spec.KeySpec engineGetKeySpec(java.security.Key key, java.lang.Class keySpec) throws java.security.spec.InvalidKeySpecException
- Specified by:
engineGetKeySpec
in classjava.security.KeyFactorySpi
- Throws:
java.security.spec.InvalidKeySpecException
-
engineTranslateKey
public final java.security.Key engineTranslateKey(java.security.Key key) throws java.security.InvalidKeyException
- Specified by:
engineTranslateKey
in classjava.security.KeyFactorySpi
- Throws:
java.security.InvalidKeyException
-
generatePrivate
public java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
generatePublic
public java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
-