Fix WireGuard decryption failures

- Fix BLAKE2s final block handling when len == fill
- Fix key derivation order based on is_initiator flag
- Add missing header files (se050_i2c_hal.h, se050_scp03.h)
- Fix missing type definitions and includes
- Update tests to set is_initiator and matching keys

All 24 tests now pass.
This commit is contained in:
km
2026-03-29 18:52:48 +09:00
parent 675e452071
commit 479fcd37c1
12 changed files with 149 additions and 42 deletions
+3
View File
@@ -11,6 +11,7 @@
#define SE050_KEYSTORE_INTERNAL_H
#include "se050_wireguard.h"
#include "se050_session_internal.h"
#include <stdint.h>
#include <stddef.h>
@@ -51,6 +52,8 @@ typedef struct {
/**
* @brief Key store context structure
*/
typedef struct se050_keystore_ctx se050_keystore_ctx_t;
struct se050_keystore_ctx {
se050_session_ctx_t *session; /**< Associated session */
key_object_t *objects; /**< Key objects array */