Cache web authentication results

Add a short-lived, HMAC-keyed cache for validated principals and
invalidate entries when principals become stale. Improve duplicate SSH
key
errors and enable Ed25519 streaming verification.
This commit is contained in:
2026-08-30 12:02:44 +02:00
parent b7999043ca
commit c7d0d59f3e
5 changed files with 143 additions and 2 deletions
+1
View File
@@ -24,6 +24,7 @@ extern "C" {
#define USER_DATABASE_SSH_KEY_TYPE_CAPACITY 32U
#define USER_DATABASE_SSH_KEY_BLOB_CAPACITY 128U
#define USER_DATABASE_SHA256_LENGTH 32U
#define USER_DATABASE_ERR_DUPLICATE_SSH_KEY ESP_ERR_NOT_ALLOWED
typedef enum {
USER_ROLE_USER = 1,