Class JcaTlsEdDSASigner

    • Field Detail

      • privateKey

        protected final java.security.PrivateKey privateKey
      • algorithmType

        protected final short algorithmType
      • algorithmName

        protected final java.lang.String algorithmName
    • Constructor Detail

      • JcaTlsEdDSASigner

        public JcaTlsEdDSASigner​(JcaTlsCrypto crypto,
                                 java.security.PrivateKey privateKey,
                                 short algorithmType,
                                 java.lang.String algorithmName)
    • Method Detail

      • generateRawSignature

        public byte[] generateRawSignature​(SignatureAndHashAlgorithm algorithm,
                                           byte[] hash)
                                    throws java.io.IOException
        Description copied from interface: TlsSigner
        Generate an encoded signature based on the passed in hash,
        Specified by:
        generateRawSignature in interface TlsSigner
        Parameters:
        algorithm - the signature algorithm to use.
        hash - the hash calculated for the signature.
        Returns:
        an encoded signature.
        Throws:
        java.io.IOException - in case of an exception processing the hash.