Interface ScramHmac

    • Method Detail

      • hmac

        byte[] hmac​(byte[] key,
                    byte[] str)
             throws java.security.InvalidKeyException
        RFC 5802 § 2.2 HMAC(key, str).
        Parameters:
        key - TODO javadoc me please
        str - TODO javadoc me please
        Returns:
        the HMAC-SHA1 value of the input.
        Throws:
        java.security.InvalidKeyException - in case there was an invalid key.