- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for mac (0.01 sec)
-
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
Providers.setProviderList(providers); } } public void testMultipleUpdates() throws Exception { Mac mac = Mac.getInstance("HmacSHA1"); mac.init(SHA1_KEY); mac.update("hello".getBytes(UTF_8)); mac.update("world".getBytes(UTF_8)); assertEquals( HashCode.fromBytes(mac.doFinal()), Hashing.hmacSha1(SHA1_KEY) .newHasher() .putString("hello", UTF_8)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 13.8K bytes - Viewed (0) -
src/test/java/jcifs/tests/PACTest.java
private static void testJavaHMAC ( String key, byte[] bytes, String expect ) throws NoSuchAlgorithmException, InvalidKeyException { Mac m = Mac.getInstance("HmacMD5"); m.init(new SecretKeySpec(Hex.decode(key), "HMAC")); byte[] mac = m.doFinal(bytes); checkBytes(Hex.decode(expect), mac); } @Test public void testRC4Checksum1 () throws PACDecodingException, GeneralSecurityException {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Oct 01 12:01:17 UTC 2023 - 22.3K bytes - Viewed (0) -
internal/crypto/key.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 19 20:28:10 UTC 2024 - 6.4K bytes - Viewed (0) -
ci/official/utilities/setup_macos.sh
# ============================================================================== # # macOS specific setup for all TF scripts. # # Mac version of Core utilities differ in usage. Since our scripts are written # with the GNU style, we need to set GNU utilities to be default on Mac. if [[ -n "$(which grealpath)" ]] && [[ -n "$(which gstat)" ]]; then alias realpath=grealpath alias stat=gstat
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Feb 15 15:23:28 UTC 2024 - 6.2K bytes - Viewed (0) -
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) -
src/main/java/org/codelibs/core/lang/SystemUtil.java
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.2K bytes - Viewed (0) -
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) -
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) -
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) -
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)