Searched refs:checksum (Results 1 - 25 of 25) sorted by relevance

/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/
H A DArcFourHmac.java62 byte[] checksum, byte[] plaintext, int start, int len)
64 return CRYPTO.encryptSeq(baseKey, usage, checksum, plaintext, start, len);
68 public static byte[] decryptSeq(byte[] baseKey, int usage, byte[] checksum, argument
71 return CRYPTO.decryptSeq(baseKey, usage, checksum, ciphertext, start, len);
81 /* Encrypt plaintext; do not add confounder, or checksum */
94 /* Decrypt ciphertext; do not remove confounder, or check checksum */
61 encryptSeq(byte[] baseKey, int usage, byte[] checksum, byte[] plaintext, int start, int len) argument
H A DDesMacKCksumType.java72 * Calculates keyed checksum.
73 * @param data the data used to generate the checksum.
75 * @param key the key used to encrypt the checksum.
76 * @return keyed checksum.
97 byte[] key, byte[] checksum, int usage) throws KrbCryptoException {
99 return isChecksumEqual(checksum, new_cksum);
96 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
H A DHmacMd5ArcFourCksumType.java36 * This class encapsulates the checksum type for HMAC RC4
75 * Calculates keyed checksum.
76 * @param data the data used to generate the checksum.
78 * @param key the key used to encrypt the checksum.
79 * @return keyed checksum.
94 * Verifies keyed checksum.
97 * @param key the key used to encrypt the checksum.
98 * @param checksum
102 byte[] key, byte[] checksum, int usage) throws KrbCryptoException {
108 return isChecksumEqual(checksum, newCksu
101 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
[all...]
H A DHmacSha1Aes128CksumType.java36 * This class encapsulates the checksum type for AES128
75 * Calculates keyed checksum.
76 * @param data the data used to generate the checksum.
78 * @param key the key used to encrypt the checksum.
79 * @return keyed checksum.
94 * Verifies keyed checksum.
97 * @param key the key used to encrypt the checksum.
98 * @param checksum
102 byte[] key, byte[] checksum, int usage) throws KrbCryptoException {
107 return isChecksumEqual(checksum, newCksu
101 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
[all...]
H A DHmacSha1Aes256CksumType.java36 * This class encapsulates the checksum type for AES256
75 * Calculates keyed checksum.
76 * @param data the data used to generate the checksum.
78 * @param key the key used to encrypt the checksum.
79 * @return keyed checksum.
94 * Verifies keyed checksum.
97 * @param key the key used to encrypt the checksum.
98 * @param checksum
102 byte[] key, byte[] checksum, int usage) throws KrbCryptoException {
107 return isChecksumEqual(checksum, newCksu
101 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
[all...]
H A DHmacSha1Des3KdCksumType.java69 * Calculates keyed checksum.
70 * @param data the data used to generate the checksum.
72 * @param key the key used to encrypt the checksum.
73 * @return keyed checksum.
88 * Verifies keyed checksum.
91 * @param key the key used to encrypt the checksum.
92 * @param checksum
96 byte[] key, byte[] checksum, int usage) throws KrbCryptoException {
102 return isChecksumEqual(checksum, newCksum);
95 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
H A DCrc32CksumType.java76 byte[] key, byte[] checksum, int usage) {
75 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
H A DRsaMd5CksumType.java69 * Calculates checksum using MD5.
70 * @param data the data used to generate the checksum.
72 * @return the checksum.
100 byte[] key, byte[] checksum, int usage) throws KrbCryptoException {
99 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
H A DDesMacCksumType.java73 * Calculates keyed checksum.
74 * @param data the data used to generate the checksum.
76 * @param key the key used to encrypt the checksum.
77 * @return keyed checksum.
124 * Verifies keyed checksum.
127 * @param key the key used to encrypt the checksum.
128 * @param checksum
134 byte[] key, byte[] checksum, int usage) throws KrbCryptoException {
135 byte[] cksum = decryptKeyedChecksum(checksum, key);
158 * Decrypts keyed checksum
133 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
[all...]
H A DRsaMd5DesCksumType.java74 * Calculates keyed checksum.
75 * @param data the data used to generate the checksum.
77 * @param key the key used to encrypt the checksum.
78 * @return keyed checksum.
119 * Verifies keyed checksum.
122 * @param key the key used to encrypt the checksum.
123 * @param checksum
129 byte[] key, byte[] checksum, int usage) throws KrbCryptoException {
130 //decrypt checksum
131 byte[] cksum = decryptKeyedChecksum(checksum, ke
128 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
[all...]
H A DCksumType.java122 * Returns default checksum type.
160 byte[] key, byte[] checksum, int usage) throws KrbCryptoException;
159 verifyKeyedChecksum(byte[] data, int size, byte[] key, byte[] checksum, int usage) argument
/openjdk7/jdk/src/share/classes/sun/security/krb5/
H A DChecksum.java41 * This class encapsulates the concept of a Kerberos checksum.
46 private byte[] checksum; field in class:Checksum
49 // Checksum type |sumtype |checksum
87 * If the default checksum is not
96 System.out.println("Exception in getting default checksum "+
98 "Setting default checksum to be RSA-MD5");
116 "checksum value " +
118 "safe default checksum to be RSA-MD5");
127 * @data the byte array of checksum.
128 * @new_cksumType the type of checksum
[all...]
/openjdk7/jdk/src/share/classes/sun/security/jgss/krb5/
H A DMessageToken.java43 * data besides just the sequence number and checksum. This class
68 * Where "s" indicates the size of the checksum.
78 /* Fields in header minus checksum size */
90 /* Use a DES MAC MD5 checksum */
93 /* Use DES MAC checksum. */
97 /* Use a HMAC SHA1 DES3 -KD checksum */
136 private byte[] checksum = null; field in class:MessageToken
203 checksum = new byte[cipherHelper.getChecksumLength()];
204 readFully(is, checksum);
206 // debug("\n\tRead checksum
[all...]
H A DWrapToken_v2.java44 * is replaced by (confounder || data || tokenHeader || checksum).
148 * Make sure checksum is not corrupt
152 "Corrupt checksum in Wrap token");
191 tokenData = new byte[dataLen + checksum.length];
193 System.arraycopy(checksum, 0, tokenData, dataLen, checksum.length);
H A DMessageToken_v2.java43 * checksum. This class encapsulates the commonality in the structure of
65 * by the checksum for Wrap tokens without
139 byte[] checksum = null; field in class:MessageToken_v2
242 // Read checksum
244 checksum = new byte[chkLen];
246 checksum, 0, chkLen);
288 * Generates the checksum field and the sequence number field.
291 * @param data the application data to checksum
295 * @throws GSSException if an error occurs in the checksum calculation or
331 checksum
[all...]
H A DInitSecContextToken.java62 Checksum checksum = gssChecksum.getChecksum();
71 checksum);
H A DMicToken_v2.java61 "Corrupt checksum or sequence number in MIC token");
72 "Corrupt checksum or sequence number in MIC token");
116 os.write(checksum);
H A DInitialToken.java210 // be passed in if this checksum type denotes a
213 public OverloadedChecksum(Krb5Context context, Checksum checksum, argument
219 if (checksum == null) {
225 checksumBytes = checksum.getBytes();
232 "Incorrect checksum");
H A DCipherHelper.java70 * A zero initial vector to be used for checksum calculation and for
184 // fall through to encrypt checksum
336 // Krb5Token.debug("\nAES calculate checksum on: " +
343 // Krb5Token.debug("\nAES128 checksum: " +
358 // Krb5Token.debug("\nAES256 checksum: " +
414 // ivec passed is the checksum
415 byte[] checksum;
417 checksum = ivec;
419 checksum = new byte[HMAC_CHECKSUM_SIZE];
420 System.arraycopy(ivec, 0, checksum,
[all...]
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/crypto/dk/
H A DArcFourCrypto.java138 * Calculate the checksum
171 // Generate checksum of message
185 // Generate checksum
197 throw new GeneralSecurityException("checksum size too short: " +
206 byte[] checksum, byte[] plaintext, int start, int len)
218 kSeq = getHmac(kSeq, checksum);
232 byte[] checksum, byte[] ciphertext, int start, int len)
245 kSeq = getHmac(kSeq, checksum);
291 // generate checksum using K2
292 byte[] checksum
205 encryptSeq(byte[] baseKey, int usage, byte[] checksum, byte[] plaintext, int start, int len) argument
231 decryptSeq(byte[] baseKey, int usage, byte[] checksum, byte[] ciphertext, int start, int len) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/util/calendar/
H A DZoneInfo.java121 private int checksum; field in class:ZoneInfo
209 * @param checksum CRC32 value with all transitions table entry
220 int checksum,
228 this.checksum = checksum;
755 return getLastRawOffset() ^ checksum;
775 && (checksum == that.checksum));
812 return (checksum == ((ZoneInfo)other).checksum);
217 ZoneInfo(String ID, int rawOffset, int dstSavings, int checksum, long[] transitions, int[] offsets, int[] simpleTimeZoneParams, boolean willGMTOffsetChange) argument
[all...]
H A DZoneInfoFile.java127 * checksum crc32;
149 * <code>raw_offset</code>, <code>dstsaving</code> and <code>checksum</code>
214 * <p><strong>1.6 <code>checksum</code> structure</strong><p>
217 * checksum {
224 * See {@link ZoneInfo#checksum ZoneInfo.checksum}.
605 int checksum = 0;
639 checksum = val;
736 return new ZoneInfo(id, rawOffset, dstSavings, checksum,
/openjdk7/jdk/src/share/classes/java/text/
H A DRuleBasedBreakIterator.java312 private long checksum; field in class:RuleBasedBreakIterator
341 * In <code>header</code>, each field except for checksum implies the
344 * <code>checksum</code> is a CRC32 value of all in <code>body</code>.
354 * u8 checksum;
388 checksum = BreakIterator.getLong(buffer, 28);
483 /* Read data: totalDataSize + 8(for checksum) */
531 if (checksum != other.checksum) {
551 sb.append("checksum=0x" + Long.toHexString(checksum));
[all...]
/openjdk7/jdk/make/tools/src/build/tools/javazic/
H A DTimezone.java191 * @return the checksum (crc32) value of the trasition table
362 void checksum() { method in class:Timezone
H A DZoneinfo.java559 tz.checksum();

Completed in 51 milliseconds