openbeacon: use 24c3 key

This commit is contained in:
schneider 2011-07-18 10:31:58 +02:00
parent 0343e5f895
commit a684899016
1 changed files with 4 additions and 3 deletions

View File

@ -5,8 +5,9 @@
#include "sysdefs.h"
#include "filesystem/ff.h"
const uint32_t key[4] = {0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF};
const uint8_t useencryption = 0;
//const uint32_t key[4] = {0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF};
const uint32_t key[4] = { 0xB4595344,0xD3E119B6,0xA814D0EC,0xEFF5A24E };
const uint8_t useencryption = 1;
const uint8_t mac[5] = {1,2,3,2,1};
uint32_t oid = 0;
@ -70,7 +71,7 @@ uint8_t openbeaconSendPacket(uint32_t id, uint32_t seq,
buf[12]=0xff; // salt (0xffff always?)
buf[13]=0xff;
return nrf_snd_pkt_crc_encr(32,buf,useencryption?key:NULL);
return nrf_snd_pkt_crc_encr(16,buf,useencryption?key:NULL);
}
uint8_t openbeaconSend(void)