Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 78 for mac (0.02 sec)

  1. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

            Key macKey = new SecretKeySpec(key.clone(), KerberosConstants.HMAC_ALGORITHM);
            Mac mac = Mac.getInstance(KerberosConstants.HMAC_ALGORITHM);
            mac.init(macKey);
            return mac.doFinal(data);
        }
    
    
        public String getUserRealm () {
            return this.userRealm;
        }
    
    
        public String getUserPrincipalName () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/SMBSigningDigest.java

     */
    package jcifs.internal;
    
    
    /**
     * @author mbechler
     *
     */
    public interface SMBSigningDigest {
    
        /**
         * Performs MAC signing of the SMB. This is done as follows.
         * The signature field of the SMB is overwritten with the sequence number;
         * The MD5 digest of the MAC signing key + the entire SMB is taken;
         * The first 8 bytes of this are placed in the signature field.
         *
         * @param data
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/SystemUtil.java

        /**
         * <code>line.separator</code> システムプロパティ。例えばMac OS Xなら
         * <code>&quot;\n&quot;</code>
         */
        public static final String LINE_SEPARATOR = System.getProperty("line.separator");
    
        /**
         * <code>path.separator</code> システムプロパティ。例えばMac OS Xなら
         * <code>&quot;:&quot;</code>
         */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. internal/kms/kms.go

    	return plaintext, err
    }
    
    // MAC generates the checksum of the given req.Message using the key
    // with the req.Name at the KMS.
    func (k *KMS) MAC(ctx context.Context, req *MACRequest) ([]byte, error) {
    	if req.Name == "" {
    		req.Name = k.DefaultKey
    	}
    
    	start := time.Now()
    	mac, err := k.conn.MAC(ctx, req)
    	k.updateMetrics(err, time.Since(start))
    
    	return mac, err
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. 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 hmacMd5(Key key) {
        return new MacHashFunction("HmacMD5", key, hmacToString("hmacMd5", key));
      }
    
      /**
       * Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  6. internal/kms/kes.go

    			return nil, ErrPermission
    		}
    		return nil, errDecryptionFailed(err)
    	}
    	return plaintext, nil
    }
    
    // MAC generates the checksum of the given req.Message using the key
    // with the req.Name at the KMS.
    func (c *kesConn) MAC(ctx context.Context, req *MACRequest) ([]byte, error) {
    	mac, err := c.client.HMAC(context.Background(), req.Name, req.Message)
    	if err != nil {
    		if errors.Is(err, kes.ErrKeyNotFound) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. internal/kms/stub.go

    	}, nil
    }
    
    // Decrypt is a non-functional stub.
    func (s StubKMS) Decrypt(_ context.Context, req *DecryptRequest) ([]byte, error) {
    	return req.Ciphertext, nil
    }
    
    // MAC is a non-functional stub.
    func (s StubKMS) MAC(_ context.Context, m *MACRequest) ([]byte, error) {
    	return m.Message, nil
    }
    
    // containsKeyName returns true if the given key name exists in the stub KMS.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivatorTest.java

        }
    
        @Test
        public void testCapitalOsName() {
            Profile profile = newProfile(ActivationOS.newBuilder()
                    .family("Mac")
                    .name("Mac OS X")
                    .arch("aarch64")
                    .version("14.5"));
    
            assertActivation(false, profile, newContext(null, newProperties("linux", "6.5.0-1014-aws", "amd64")));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

            hmac.update(serverChallenge);
            hmac.update(clientData, offset, length);
            byte[] mac = hmac.digest();
            byte[] ret = new byte[mac.length + clientData.length];
            System.arraycopy(mac, 0, ret, 0, mac.length);
            System.arraycopy(clientData, 0, ret, mac.length, clientData.length);
            return ret;
        }
        public static byte[] getLMv2Response(
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 22.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SigningDigest.java

                log.flush();
            }
            updates = 0;
    
            return b;
        }
    
        /**
         * Performs MAC signing of the SMB.  This is done as follows.
         * The signature field of the SMB is overwritted with the sequence number;
         * The MD5 digest of the MAC signing key + the entire SMB is taken;
         * The first 8 bytes of this are placed in the signature field.
         *
         * @param data The data.
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7K bytes
    - Viewed (0)
Back to top