mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
changing {} style to match majority of previous style
This commit is contained in:
parent
da6cdf014b
commit
961d929f4d
320 changed files with 5502 additions and 10485 deletions
|
@ -9,8 +9,7 @@
|
|||
#include "iso14443crc.h"
|
||||
|
||||
|
||||
uint16_t UpdateCrc14443(uint8_t b, uint16_t *crc)
|
||||
{
|
||||
uint16_t UpdateCrc14443(uint8_t b, uint16_t *crc) {
|
||||
b = (b ^ (uint8_t)((*crc) & 0x00FF));
|
||||
b = (b ^ (b << 4));
|
||||
*crc = (*crc >> 8) ^ ((uint16_t) b << 8) ^ ((uint16_t) b << 3) ^ ((uint16_t) b >> 4);
|
||||
|
@ -18,8 +17,7 @@ uint16_t UpdateCrc14443(uint8_t b, uint16_t *crc)
|
|||
}
|
||||
|
||||
void ComputeCrc14443(uint16_t CrcType, const uint8_t *data, int length,
|
||||
uint8_t *TransmitFirst, uint8_t *TransmitSecond)
|
||||
{
|
||||
uint8_t *TransmitFirst, uint8_t *TransmitSecond) {
|
||||
uint8_t b;
|
||||
uint16_t crc = CrcType;
|
||||
|
||||
|
@ -36,8 +34,7 @@ void ComputeCrc14443(uint16_t CrcType, const uint8_t *data, int length,
|
|||
return;
|
||||
}
|
||||
|
||||
bool CheckCrc14443(uint16_t CrcType, const uint8_t *data, int length)
|
||||
{
|
||||
bool CheckCrc14443(uint16_t CrcType, const uint8_t *data, int length) {
|
||||
if (length < 3) return false;
|
||||
uint8_t b1, b2;
|
||||
ComputeCrc14443(CrcType, data, length - 2, &b1, &b2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue