diff options
author | Roberto Tyley <roberto.tyley@gmail.com> | 2014-07-15 01:38:01 +0400 |
---|---|---|
committer | Roberto Tyley <roberto.tyley@gmail.com> | 2014-07-26 11:23:17 +0400 |
commit | 7cb752aaf746dc0b473afeb9e892b7fbc12666c5 (patch) | |
tree | cc4f91ddc18332b5adbe82e3fcb040d976c90105 /pg/src/main/java/org/bouncycastle/bcpg/CRC24.java | |
parent | 551830f8ea5177042af2c7dd1fc90888bc67387d (diff) |
Execute become-spongy.sh
https://github.com/rtyley/spongycastle/blob/3040af/become-spongy.sh
Diffstat (limited to 'pg/src/main/java/org/bouncycastle/bcpg/CRC24.java')
-rw-r--r-- | pg/src/main/java/org/bouncycastle/bcpg/CRC24.java | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/pg/src/main/java/org/bouncycastle/bcpg/CRC24.java b/pg/src/main/java/org/bouncycastle/bcpg/CRC24.java deleted file mode 100644 index 82c4b9a8..00000000 --- a/pg/src/main/java/org/bouncycastle/bcpg/CRC24.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.bouncycastle.bcpg; - -public class CRC24 -{ - private static final int CRC24_INIT = 0x0b704ce; - private static final int CRC24_POLY = 0x1864cfb; - - private int crc = CRC24_INIT; - - public CRC24() - { - } - - public void update( - int b) - { - crc ^= b << 16; - for (int i = 0; i < 8; i++) - { - crc <<= 1; - if ((crc & 0x1000000) != 0) - { - crc ^= CRC24_POLY; - } - } - } - - public int getValue() - { - return crc; - } - - public void reset() - { - crc = CRC24_INIT; - } -} |