- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 78 for mac (0.05 sec)
-
guava/src/com/google/common/hash/MacHashFunction.java
} private static boolean supportsClone(Mac mac) { try { Object unused = mac.clone(); return true; } catch (CloneNotSupportedException e) { return false; } } private static Mac getMac(String algorithmName, Key key) { try { Mac mac = Mac.getInstance(algorithmName); mac.init(key); return mac; } catch (NoSuchAlgorithmException e) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 15 22:31:55 UTC 2022 - 3.6K bytes - Viewed (0) -
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/main/java/jcifs/pac/PacMac.java
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 md.update((byte) ( ms_usage & 0xFF ));
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 7K 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) -
src/main/java/jcifs/smb/NtlmUtil.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; } /** * * @param domain * @param username
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 12:07:20 UTC 2020 - 9.7K 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/NetbiosAddress.java
/** * Retrieves the MAC address of the remote network interface. Samba returns all zeros. * * @param tc * context to use * * @return the MAC address as an array of six bytes * @throws UnknownHostException * if the host cannot be resolved to * determine the MAC address. */
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
private static final int SIGNATURE_LENGTH = 16; private final Mac digest; /** * @param sessionKey * @param dialect * @param preauthIntegrityHash * @throws GeneralSecurityException * */ public Smb2SigningDigest ( byte[] sessionKey, int dialect, byte[] preauthIntegrityHash ) throws GeneralSecurityException { Mac m; byte[] signingKey; switch ( dialect ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Aug 17 17:34:29 UTC 2021 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmContext.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 12:07:20 UTC 2020 - 15.7K bytes - Viewed (0)