Class TlsCryptoUtils


  • public abstract class TlsCryptoUtils
    extends java.lang.Object
    • Constructor Detail

      • TlsCryptoUtils

        public TlsCryptoUtils()
    • Method Detail

      • getHash

        public static int getHash​(short hashAlgorithm)
      • getHashForHMAC

        public static int getHashForHMAC​(int macAlgorithm)
      • getHashForPRF

        public static int getHashForPRF​(int prfAlgorithm)
      • getHashOutputSize

        public static int getHashOutputSize​(int cryptoHashAlgorithm)
      • getSignature

        public static int getSignature​(short signatureAlgorithm)
      • hkdfExpandLabel

        public static TlsSecret hkdfExpandLabel​(TlsSecret secret,
                                                short hashAlgorithm,
                                                java.lang.String label,
                                                byte[] context,
                                                int length)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • hkdfExpandLabel

        public static TlsSecret hkdfExpandLabel​(TlsSecret secret,
                                                int cryptoHashAlgorithm,
                                                java.lang.String label,
                                                byte[] context,
                                                int length)
                                         throws java.io.IOException
        Throws:
        java.io.IOException