Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for hmacMd5 (0.07 seconds)

  1. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        assertEquals(
            "Hashing.hmacMd5(Key[algorithm=HmacMD5, format=RAW])", Hashing.hmacMd5(keyData).toString());
    
        assertEquals(
            "Hashing.hmacSha1(Key[algorithm=HmacSHA1, format=RAW])",
            Hashing.hmacSha1(SHA1_KEY).toString());
        assertEquals(
            "Hashing.hmacSha1(Key[algorithm=HmacSHA1, format=RAW])",
            Hashing.hmacSha1(keyData).toString());
    
    Created: 2025-12-26 12:43
    - Last Modified: 2024-12-27 16:19
    - 13.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        assertEquals(
            "Hashing.hmacMd5(Key[algorithm=HmacMD5, format=RAW])", Hashing.hmacMd5(keyData).toString());
    
        assertEquals(
            "Hashing.hmacSha1(Key[algorithm=HmacSHA1, format=RAW])",
            Hashing.hmacSha1(SHA1_KEY).toString());
        assertEquals(
            "Hashing.hmacSha1(Key[algorithm=HmacSHA1, format=RAW])",
            Hashing.hmacSha1(keyData).toString());
    
    Created: 2025-12-26 12:43
    - Last Modified: 2024-12-27 16:19
    - 13.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/hash/Hashing.java

       * href="https://datatracker.ietf.org/doc/html/rfc6151#section-2.3">over {@code hmacMd5}</a>.
       *
       * @param key the secret key
       * @throws IllegalArgumentException if the given key is inappropriate for initializing this MAC
       * @since 20.0
       */
      public static HashFunction hmacMd5(Key key) {
        return new MacHashFunction("HmacMD5", key, hmacToString("hmacMd5", key));
      }
    
      /**
    Created: 2025-12-26 12:43
    - Last Modified: 2025-07-17 15:26
    - 29.8K bytes
    - Click Count (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosConstantsTest.java

            assertEquals(23, KerberosConstants.RC4_ENC_TYPE, "RC4_ENC_TYPE should have the correct value.");
            assertEquals("HmacMD5", KerberosConstants.HMAC_ALGORITHM, "HMAC_ALGORITHM should have the correct value.");
        }
    Created: 2025-12-20 13:44
    - Last Modified: 2025-08-14 05:31
    - 1.1K bytes
    - Click Count (1)
  5. src/main/java/jcifs/pac/kerberos/KerberosConstants.java

        /** RC4 encryption type identifier */
        int RC4_ENC_TYPE = 23;
        /** RC4 algorithm name */
        String RC4_ALGORITHM = "ARCFOUR";
        /** HMAC algorithm name */
        String HMAC_ALGORITHM = "HmacMD5";
        /** Size of confounder in bytes */
        int CONFOUNDER_SIZE = 8;
        /** Size of checksum in bytes */
        int CHECKSUM_SIZE = 16;
    
    Created: 2025-12-20 13:44
    - Last Modified: 2025-08-16 01:32
    - 1.9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/pac/PacMac.java

         */
        public static byte[] calculateMacArcfourHMACMD5(int keyusage, Key key, byte[] data) throws GeneralSecurityException {
            int ms_usage = mapArcfourMD5KeyUsage(keyusage);
            Mac mac = Mac.getInstance("HmacMD5");
            MessageDigest md = MessageDigest.getInstance("MD5");
            mac.init(key);
            byte[] dk = mac.doFinal(MD5_CONSTANT);
            try {
                // little endian
    Created: 2025-12-20 13:44
    - Last Modified: 2025-08-16 01:32
    - 9K bytes
    - Click Count (0)
Back to Top