Top Inners Fields Constructors Methods
org.bouncycastle.pqc.jcajce.provider.dilithium

public Class DilithiumKeyFactorySpi

extends BaseKeyFactorySpi
Class Inheritance
Known Direct Subclasses
org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi.Base2, org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi.Base3, org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi.Base5, org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi.Base2_AES, org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi.Base3_AES, org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi.Base5_AES
Imports
java.io.IOException, java.security.InvalidKeyException, .Key, .KeyFactorySpi, .NoSuchAlgorithmException, .PrivateKey, .PublicKey, java.security.spec.InvalidKeySpecException, .KeySpec, .PKCS8EncodedKeySpec, .X509EncodedKeySpec, java.util.HashSet, .Set, org.bouncycastle.asn1.ASN1ObjectIdentifier, .ASN1Primitive, org.bouncycastle.asn1.bc.BCObjectIdentifiers, org.bouncycastle.asn1.pkcs.PrivateKeyInfo, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo, org.bouncycastle.jcajce.provider.util.AsymmetricKeyInfoConverter, org.bouncycastle.pqc.crypto.crystals.dilithium.DilithiumParameters, org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
private static final Set<ASN1ObjectIdentifier>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public final KeySpec
engineGetKeySpec(Key
the key.
key
,
Class<T>
the specification class in which the key material should be returned.
keySpec
)

Implements abstract java.security.KeyFactorySpi.engineGetKeySpec.

Returns a specification (key material) of the given key object.
public final Key
engineTranslateKey(Key
the key whose provider is unknown or untrusted.
key
)

Implements abstract java.security.KeyFactorySpi.engineTranslateKey.

Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.
public PrivateKey
public PublicKey
Inherited from org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi:
engineGeneratePrivateengineGeneratePublic

Field Detail

keyOidsback to summary
private static final Set<ASN1ObjectIdentifier> keyOids

Hides org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi.keyOids.

Constructor Detail

DilithiumKeyFactorySpiback to summary
public DilithiumKeyFactorySpi()
DilithiumKeyFactorySpiback to summary
public DilithiumKeyFactorySpi(ASN1ObjectIdentifier keyOid)

Method Detail

engineGetKeySpecback to summary
public final KeySpec engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException

Implements abstract java.security.KeyFactorySpi.engineGetKeySpec.

Doc from java.security.KeyFactorySpi.engineGetKeySpec.

Returns a specification (key material) of the given key object. keySpec identifies the specification class in which the key material should be returned. It could, for example, be DSAPublicKeySpec.class, to indicate that the key material should be returned in an instance of the DSAPublicKeySpec class.

Parameters
key:Key

the key.

keySpec:Class<T>

the specification class in which the key material should be returned.

Returns:KeySpec

the underlying key specification (key material) in an instance of the requested specification class.

Exceptions
InvalidKeySpecException:
if the requested key specification is inappropriate for the given key, or the given key cannot be dealt with (e.g., the given key has an unrecognized format).
engineTranslateKeyback to summary
public final Key engineTranslateKey(Key key) throws InvalidKeyException

Implements abstract java.security.KeyFactorySpi.engineTranslateKey.

Doc from java.security.KeyFactorySpi.engineTranslateKey.

Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory.

Parameters
key:Key

the key whose provider is unknown or untrusted.

Returns:Key

the translated key.

Exceptions
InvalidKeyException:
if the given key cannot be processed by this key factory.
generatePrivateback to summary
public PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws IOException

Implements org.bouncycastle.jcajce.provider.util.AsymmetricKeyInfoConverter.generatePrivate.

generatePublicback to summary
public PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws IOException

Implements org.bouncycastle.jcajce.provider.util.AsymmetricKeyInfoConverter.generatePublic.

org.bouncycastle.pqc.jcajce.provider.dilithium back to summary

public Class DilithiumKeyFactorySpi.Base2

extends DilithiumKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi:
engineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

Base2back to summary
public Base2()
org.bouncycastle.pqc.jcajce.provider.dilithium back to summary

public Class DilithiumKeyFactorySpi.Base2_AES

extends DilithiumKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi:
engineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

Base2_AESback to summary
public Base2_AES()
org.bouncycastle.pqc.jcajce.provider.dilithium back to summary

public Class DilithiumKeyFactorySpi.Base3

extends DilithiumKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi:
engineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

Base3back to summary
public Base3()
org.bouncycastle.pqc.jcajce.provider.dilithium back to summary

public Class DilithiumKeyFactorySpi.Base3_AES

extends DilithiumKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi:
engineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

Base3_AESback to summary
public Base3_AES()
org.bouncycastle.pqc.jcajce.provider.dilithium back to summary

public Class DilithiumKeyFactorySpi.Base5

extends DilithiumKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi:
engineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

Base5back to summary
public Base5()
org.bouncycastle.pqc.jcajce.provider.dilithium back to summary

public Class DilithiumKeyFactorySpi.Base5_AES

extends DilithiumKeyFactorySpi
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.pqc.jcajce.provider.dilithium.DilithiumKeyFactorySpi:
engineGetKeySpecengineTranslateKeygeneratePrivategeneratePublic

Constructor Detail

Base5_AESback to summary
public Base5_AES()