polyfills.h 485 B

1234567891011121314
  1. #pragma once
  2. #include <furi_hal_crypto.h>
  3. #ifndef FURI_HAL_CRYPTO_ENCLAVE_USER_KEY_SLOT_START
  4. // FW Crypto API is outdated, let's polyfill it
  5. #define FURI_HAL_CRYPTO_ENCLAVE_USER_KEY_SLOT_START (12u)
  6. #define FURI_HAL_CRYPTO_ENCLAVE_USER_KEY_SLOT_END (100u)
  7. #define furi_hal_crypto_enclave_ensure_key furi_hal_crypto_verify_key
  8. #define furi_hal_crypto_enclave_load_key furi_hal_crypto_store_load_key
  9. #define furi_hal_crypto_enclave_unload_key furi_hal_crypto_store_unload_key
  10. #endif