Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for HmacSHA256 (0.04 sec)

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

            Hashing.hmacSha1(keyData).toString());
    
        assertEquals(
            "Hashing.hmacSha256(Key[algorithm=HmacSHA256, format=RAW])",
            Hashing.hmacSha256(SHA256_KEY).toString());
        assertEquals(
            "Hashing.hmacSha256(Key[algorithm=HmacSHA256, format=RAW])",
            Hashing.hmacSha256(keyData).toString());
    
        assertEquals(
            "Hashing.hmacSha512(Key[algorithm=HmacSHA512, format=RAW])",
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/Hashing.java

       * @throws IllegalArgumentException if the given key is inappropriate for initializing this MAC
       * @since 20.0
       */
      public static HashFunction hmacSha256(Key key) {
        return new MacHashFunction("HmacSHA256", key, hmacToString("hmacSha256", key));
      }
    
      /**
       * Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                // Set signed flag
                SMBUtil.writeInt4(ServerMessageBlock2.SMB2_FLAGS_SIGNED, data, 16);
    
                // Create valid signature using HmacSHA256
                Mac mac = Mac.getInstance("HmacSHA256");
                mac.init(new SecretKeySpec(sessionKey, "HmacSHA256"));
    
                // Zero signature field for calculation
                for (int i = 0; i < SIGNATURE_LENGTH; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/Hashing.java

       * @throws IllegalArgumentException if the given key is inappropriate for initializing this MAC
       * @since 20.0
       */
      public static HashFunction hmacSha256(Key key) {
        return new MacHashFunction("HmacSHA256", key, hmacToString("hmacSha256", key));
      }
    
      /**
       * Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:06:57 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                throws GeneralSecurityException {
            switch (dialect) {
            case Smb2Constants.SMB2_DIALECT_0202:
            case Smb2Constants.SMB2_DIALECT_0210:
                this.algorithmName = "HmacSHA256";
                this.provider = null;
                this.signingKey = sessionKey.clone();
                break;
            case Smb2Constants.SMB2_DIALECT_0300:
            case Smb2Constants.SMB2_DIALECT_0302:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. docs/smb3-features/03-multi-channel-design.md

        public byte[] generateChannelBindingHash(ChannelInfo channel) throws GeneralSecurityException {
            // Use HMAC-SHA256 for channel binding
            Mac mac = Mac.getInstance("HmacSHA256");
            SecretKeySpec keySpec = new SecretKeySpec(sessionKey, "HmacSHA256");
            mac.init(keySpec);
            
            // Include channel-specific data
            mac.update(channel.getLocalInterface().getAddress().getAddress());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top