|
1 | 1 | #include "NfcManager.hpp" |
2 | | -#include "HomeKey.h" |
| 2 | +#include "DDKReaderData.h" |
3 | 3 | #include "ReaderDataManager.hpp" |
4 | 4 | #include "esp32-hal.h" |
5 | 5 | #include "eventStructs.hpp" |
6 | 6 | #include "fmt/ranges.h" |
7 | 7 | #include "freertos/idf_additions.h" |
8 | | -#include "hkAuthContext.h" |
| 8 | +#include "DDKAuthContext.h" |
9 | 9 | #include "pn532_hal/spi.hpp" |
10 | 10 | #include "soc/gpio_num.h" |
11 | 11 | #include "utils.hpp" |
@@ -159,7 +159,7 @@ void NfcManager::authPrecomputeTask() { |
159 | 159 | uxQueueMessagesWaiting(m_authCtxReadyQueue)); |
160 | 160 |
|
161 | 161 | auto startTime = std::chrono::high_resolution_clock::now(); |
162 | | - item->ctx = new (std::nothrow) HKAuthenticationContext(kHomeKey, item->nfcFn, item->readerData, item->saveFn); |
| 162 | + item->ctx = new (std::nothrow) DDKAuthenticationContext(kHomeKey, item->nfcFn, item->readerData, item->saveFn); |
163 | 163 | auto stopTime = std::chrono::high_resolution_clock::now(); |
164 | 164 | const auto durationMs = |
165 | 165 | std::chrono::duration_cast<std::chrono::milliseconds>(stopTime - startTime).count(); |
@@ -504,8 +504,7 @@ void NfcManager::handleHomeKeyAuth() { |
504 | 504 | m_readerDataManager.updateReaderData(data); |
505 | 505 | invalidateAuthCache(); |
506 | 506 | }; |
507 | | - // |
508 | | - HKAuthenticationContext authCtx(kHomeKey, nfcFn, readerData, saveFn); |
| 507 | + DDKAuthenticationContext authCtx(kHomeKey, nfcFn, readerData, saveFn); |
509 | 508 | auto authResult = authCtx.authenticate(authFlow); |
510 | 509 | publishAuthResult(authResult, readerData.reader_id); |
511 | 510 | }; |
|
0 commit comments