- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for doFinal (0.08 sec)
-
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 )); md.update((byte) ( ( ms_usage >> 8 ) & 0xFF ));
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
mac.init(MD5_KEY); mac.update(input.getBytes(UTF_8)); assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString()); assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashString(input, UTF_8).toString()); assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashBytes(input.getBytes(UTF_8)).toString());
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/org/codelibs/core/crypto/CachedCipher.java
public byte[] encrypto(final byte[] data) { final Cipher cipher = pollEncryptoCipher(); byte[] encrypted; try { encrypted = cipher.doFinal(data); } catch (final IllegalBlockSizeException e) { throw new IllegalBlockSizeRuntimeException(e); } catch (final BadPaddingException e) { throw new BadPaddingRuntimeException(e);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
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/pac/kerberos/KerberosEncData.java
cipher.init(Cipher.DECRYPT_MODE, dataKey); int plainDataLength = data.length - KerberosConstants.CHECKSUM_SIZE; byte[] plainData = cipher.doFinal(data, KerberosConstants.CHECKSUM_SIZE, plainDataLength); byte[] plainDataChecksum = getHmac(plainData, codeHmac); if ( plainDataChecksum.length >= KerberosConstants.CHECKSUM_SIZE )
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/jcifs/smb/NtlmContext.java
} if ( ( this.ntlmsspFlags & NtlmFlags.NTLMSSP_NEGOTIATE_KEY_EXCH ) != 0 ) { try { trunc = this.sealClientHandle.doFinal(trunc); if ( log.isDebugEnabled() ) { log.debug("Encrypted " + Hexdump.toHexString(trunc)); } } catch ( GeneralSecurityException e ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 12:07:20 UTC 2020 - 15.7K bytes - Viewed (0) -
guava/src/com/google/common/hash/MacHashFunction.java
checkState(!done, "Cannot re-use a Hasher after calling hash() on it"); } @Override public HashCode hash() { checkNotDone(); done = true; return HashCode.fromBytesNoCopy(mac.doFinal()); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 15 22:31:55 UTC 2022 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/tests/PACTest.java
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 { String data = "fifteen sixteen";
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Oct 01 12:01:17 UTC 2023 - 22.3K bytes - Viewed (0) -
common-protos/k8s.io/api/flowcontrol/v1beta3/generated.proto
// Limited priority levels in proportion to their NCS values: // // NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) // sum_ncs = sum[limited priority level k] NCS(k) // // Bigger numbers mean a larger nominal concurrency limit, // at the expense of every other Limited priority level. // This field has a default value of 30. // +optional optional int32 nominalConcurrencyShares = 1;
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 19.5K bytes - Viewed (0) -
common-protos/k8s.io/api/flowcontrol/v1beta1/generated.proto
// (BorrowingCL) and is a limit on the total number of seats that this // level may borrow at any one time. // This field holds the ratio of that limit to the level's nominal // concurrency limit. When this field is non-nil, it must hold a // non-negative integer and the limit is calculated as follows. // // BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) //
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 19.4K bytes - Viewed (0)