seos_central.h 778 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include <furi.h>
  3. #include <lib/toolbox/bit_buffer.h>
  4. #include <mbedtls/des.h>
  5. #include <mbedtls/aes.h>
  6. #include "secure_messaging.h"
  7. #include "seos_common.h"
  8. #include "seos_credential.h"
  9. #include "seos.h"
  10. #include "seos_att.h"
  11. #include "keys.h"
  12. #define BLE_START 0xc0
  13. typedef struct {
  14. Seos* seos;
  15. SeosAtt* seos_att;
  16. SeosPhase phase;
  17. AuthParameters params;
  18. SecureMessaging* secure_messaging;
  19. SeosCredential* credential;
  20. } SeosCentral;
  21. SeosCentral* seos_central_alloc(Seos* seos);
  22. void seos_central_free(SeosCentral* seos_central);
  23. void seos_central_start(SeosCentral* seos_central, FlowMode mode);
  24. void seos_central_stop(SeosCentral* seos_central);
  25. void seos_central_notify(void* context, const uint8_t* buffer, size_t buffer_len);