public class CRC13239
extends java.lang.Object
Utility methods for calculating and verifying the CRC13239 checksum used for YubiKeys.
Modifier and Type | Field and Description |
---|---|
static short |
CRC_OK_RESIDUAL
When verifying a checksum the CRC_OK_RESIDUAL should be the remainder
|
Modifier and Type | Method and Description |
---|---|
static short |
getCRC(byte[] buf,
int len)
Method for calculating a CRC13239 checksum over a byte buffer.
|
public static final short CRC_OK_RESIDUAL
When verifying a checksum the CRC_OK_RESIDUAL should be the remainder