We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb1152 commit c54dc45Copy full SHA for c54dc45
boot/bootutil/src/ed25519_psa.c
@@ -19,6 +19,16 @@ BOOT_LOG_MODULE_REGISTER(ed25519_psa);
19
#define EDDSA_KEY_LENGTH 32
20
#define EDDSA_SIGNAGURE_LENGTH 64
21
22
+int bootutil_crypto_backend_init(void)
23
+{
24
+ psa_status_t status = psa_crypto_init();
25
+ if (status != PSA_SUCCESS) {
26
+ BOOT_LOG_ERR("PSA crypto init failed %d\n", status);
27
+ return false;
28
+ }
29
+ return true;
30
+}
31
+
32
int ED25519_verify(const uint8_t *message, size_t message_len,
33
const uint8_t signature[EDDSA_SIGNAGURE_LENGTH],
34
const uint8_t public_key[EDDSA_KEY_LENGTH])
0 commit comments