From ebb91ec8c33ce9f259d455605a884ffbd72996db Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Wed, 19 Sep 2018 13:26:23 +0300 Subject: [PATCH] TODO --- gost_omac.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gost_omac.c b/gost_omac.c index 2000152..83f4acd 100644 --- a/gost_omac.c +++ b/gost_omac.c @@ -14,7 +14,19 @@ typedef struct omac_ctx { size_t dgst_size; int cipher_nid; int key_set; +/* + * Here begins stuff related to TLSTREE processing + * We MUST store the original key to derive TLSTREE keys from it + * and TLS seq no. + * */ unsigned char key[32]; +/* + * TODO + * TLSTREE intermediate values should be recalculated only when + * C_i & (seq_no+1) != C_i & (seq_no) + * so somewhen we will store C_i & (seq_no) in this structure + * to avoid redundant hash calculations. + * */ } OMAC_CTX; #define MAX_GOST_OMAC_SIZE 16 -- 2.39.2