Lines Matching refs:checksum
689 * <P> Keys contain their own checksum instead of using
696 key.checksum = checkKey(key);
702 * <P> Keys contain their own checksum instead of using
709 key.checksum = checkKey(key);
722 if (key.checksum != checkKey(key)) {
758 /** Compute the checksum over the important bits of a key. */
760 CRC32 checksum = new CRC32();
761 checksum.update(key.type);
762 checksum.update((int) (key.id & 0xffff));
763 checksum.update((int) ((key.id >> 32) & 0xffff));
765 checksum.update(key.name.getBytes());
767 return checksum.getValue();
770 /** Serialize a Favorite for persistence, including a checksum wrapper. */
817 /** Deserialize a Favorite from persistence, after verifying checksum wrapper. */
862 /** Serialize a Screen for persistence, including a checksum wrapper. */
871 /** Deserialize a Screen from persistence, after verifying checksum wrapper. */
883 /** Serialize an icon Resource for persistence, including a checksum wrapper. */
894 /** Deserialize an icon resource from persistence, after verifying checksum wrapper. */
903 /** Serialize a widget for persistence, including a checksum wrapper. */
933 /** Deserialize a widget from persistence, after verifying checksum wrapper. */
991 // if we are here, then we have read a valid, checksum-verified journal
1082 /** Wrap a proto in a CheckedMessage and compute the checksum. */
1086 CRC32 checksum = new CRC32();
1087 checksum.update(wrapper.payload);
1088 wrapper.checksum = checksum.getValue();
1092 /** Unwrap a proto message from a CheckedMessage, verifying the checksum. */
1097 CRC32 checksum = new CRC32();
1098 checksum.update(wrapper.payload);
1099 if (wrapper.checksum != checksum.getValue()) {
1100 throw new InvalidProtocolBufferNanoException("checksum does not match");