Class HMACTest


  • public class HMACTest
    extends java.lang.Object
    HMAC is a hash function based message authentication code. HMACTest compares the HMAC created by Mozilla, IBM and Sun JCE.
    • Constructor Summary

      Constructors 
      Constructor Description
      HMACTest​(java.lang.String[] argv)  
    • Constructor Detail

      • HMACTest

        public HMACTest​(java.lang.String[] argv)
                 throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • compareHMAC

        public boolean compareHMAC​(java.lang.String alg,
                                   SecretKeyFacade sk,
                                   java.lang.String clearText)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • doHMAC

        public void doHMAC​(java.lang.String alg,
                           SecretKeyFacade sk,
                           java.lang.String clearText)
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • fipsMode

        public boolean fipsMode()
      • main

        public static void main​(java.lang.String[] argv)
        Main test method.
        Parameters:
        argv -