Package org.conscrypt

Class OpenSslMlDsaKeyFactory

    • Constructor Detail

      • OpenSslMlDsaKeyFactory

        private OpenSslMlDsaKeyFactory​(MlDsaAlgorithm defaultAlgorithm)
    • Method Detail

      • supportsAlgorithm

        abstract boolean supportsAlgorithm​(MlDsaAlgorithm algorithm)
      • makePublicKeyFromRaw

        private OpenSslMlDsaPublicKey makePublicKeyFromRaw​(byte[] raw,
                                                           MlDsaAlgorithm algorithm)
                                                    throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • makePublicKey

        private OpenSslMlDsaPublicKey makePublicKey​(OpenSSLKey key)
                                             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
      • makePrivateKeyFromSeed

        private OpenSslMlDsaPrivateKey makePrivateKeyFromSeed​(byte[] seed,
                                                              MlDsaAlgorithm algorithm)
                                                       throws java.security.spec.InvalidKeySpecException
        Throws:
        java.security.spec.InvalidKeySpecException
      • makePrivateKey

        private OpenSslMlDsaPrivateKey makePrivateKey​(OpenSSLKey key)
                                               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