UpdatedDecryp
Dependencies: BahlDecrypModified CyaSSL mbed nRF51822
Fork of Decryptulator by
Hashes/LookupTable.h@13:8b706583610a, 2017-05-09 (annotated)
- Committer:
- vbahl2
- Date:
- Tue May 09 03:06:55 2017 +0000
- Revision:
- 13:8b706583610a
UpdatedDecryp
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vbahl2 | 13:8b706583610a | 1 | #pragma once |
vbahl2 | 13:8b706583610a | 2 | |
vbahl2 | 13:8b706583610a | 3 | #include <stdio.h> |
vbahl2 | 13:8b706583610a | 4 | #include "mbed.h" |
vbahl2 | 13:8b706583610a | 5 | #include "ble/BLE.h" |
vbahl2 | 13:8b706583610a | 6 | #include "ble/BLEProtocol.h" |
vbahl2 | 13:8b706583610a | 7 | #include <map> |
vbahl2 | 13:8b706583610a | 8 | |
vbahl2 | 13:8b706583610a | 9 | using namespace std; |
vbahl2 | 13:8b706583610a | 10 | |
vbahl2 | 13:8b706583610a | 11 | class LookupTable{ |
vbahl2 | 13:8b706583610a | 12 | private: |
vbahl2 | 13:8b706583610a | 13 | pair<BLEProtocol::AddressBytes_t, unsigned char *> ** LookupTableStruct; |
vbahl2 | 13:8b706583610a | 14 | void buildInitialLookupTable(); |
vbahl2 | 13:8b706583610a | 15 | void lookupValue(); |
vbahl2 | 13:8b706583610a | 16 | void clearLookupTable(void); |
vbahl2 | 13:8b706583610a | 17 | public: |
vbahl2 | 13:8b706583610a | 18 | LookupTable(void); |
vbahl2 | 13:8b706583610a | 19 | ~LookupTable(void); |
vbahl2 | 13:8b706583610a | 20 | int insertValue(BLEProtocol::AddressBytes_t scanned_ble_address, unsigned char * encryptedCounter); |
vbahl2 | 13:8b706583610a | 21 | }; |