From 4720b5ac21163936fb47f524037a6f12ce6e6ce2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 22 Jul 2026 18:31:50 +0200 Subject: rewrite: the beginning This a giant fuck-you to myself while I have nothing (actually, tons of things) to do in a hospital. * The giant screens of preprocessor code are gone, they always sucked, fuck them. * Switched everything to the "boxes" interface as the only one remaining. * Restuctured things in aes/ so that the files they're in make at least a little bit of sense. * Removed a bunch of cruft and prematurely generic code. * This is half-baked at best: I just made sure that the tests pass. A lot of cleanup awaits. --- aes/src/error.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'aes/src/error.c') diff --git a/aes/src/error.c b/aes/src/error.c index 8de8a5d..004c869 100644 --- a/aes/src/error.c +++ b/aes/src/error.c @@ -220,3 +220,7 @@ AES_StatusCode aes_error_missing_padding(AES_ErrorDetails* err_details) { AES_StatusCode aes_error_memory_allocation(AES_ErrorDetails* err_details) { return aes_make_error(err_details, AES_MEMORY_ALLOCATION_ERROR); } + +AES_StatusCode aes_error_mode_requires_init_vector(AES_ErrorDetails* err_details) { + return aes_make_error(err_details, AES_MODE_REQUIRES_INIT_VECTOR_ERROR); +} -- cgit v1.3