Package org.conscrypt

Class OpenSslSlhDsaKeyFactory


  • @Internal
    public final class OpenSslSlhDsaKeyFactory
    extends java.security.KeyFactorySpi
    An implementation of a KeyFactorySpi for SLH-DSL keys based on BoringSSL.
    • Field Detail

      • x509Preamble

        static final byte[] x509Preamble
      • pkcs8Preamble

        static final byte[] pkcs8Preamble
    • Constructor Detail

      • OpenSslSlhDsaKeyFactory

        public OpenSslSlhDsaKeyFactory()
    • Method Detail

      • makePublicKeyFromRaw

        private OpenSslSlhDsaPublicKey makePublicKeyFromRaw​(byte[] raw)
                                                     throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • engineGeneratePublic

        protected java.security.PublicKey engineGeneratePublic​(java.security.spec.KeySpec keySpec)
                                                        throws java.security.spec.InvalidKeySpecException
        Specified by:
        engineGeneratePublic in class java.security.KeyFactorySpi
        Throws:
        java.security.spec.InvalidKeySpecException
      • makePrivateKeyFromRaw

        private OpenSslSlhDsaPrivateKey makePrivateKeyFromRaw​(byte[] raw)
                                                       throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • engineGeneratePrivate

        protected java.security.PrivateKey engineGeneratePrivate​(java.security.spec.KeySpec keySpec)
                                                          throws java.security.spec.InvalidKeySpecException
        Specified by:
        engineGeneratePrivate in class java.security.KeyFactorySpi
        Throws:
        java.security.spec.InvalidKeySpecException
      • engineGetKeySpec

        protected <T extends java.security.spec.KeySpec> T engineGetKeySpec​(java.security.Key key,
                                                                            java.lang.Class<T> keySpec)
                                                                     throws java.security.spec.InvalidKeySpecException
        Specified by:
        engineGetKeySpec in class java.security.KeyFactorySpi
        Throws:
        java.security.spec.InvalidKeySpecException
      • engineTranslateKey

        protected java.security.Key engineTranslateKey​(java.security.Key key)
                                                throws java.security.InvalidKeyException
        Specified by:
        engineTranslateKey in class java.security.KeyFactorySpi
        Throws:
        java.security.InvalidKeyException