From: Dmitry Belyavskiy Date: Wed, 19 Sep 2018 10:26:23 +0000 (+0300) Subject: TODO X-Git-Tag: v3.0.0~340 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=ebb91ec8c33ce9f259d455605a884ffbd72996db;p=openssl-gost%2Fengine.git TODO --- 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