]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
TODO
authorDmitry Belyavskiy <beldmit@gmail.com>
Wed, 19 Sep 2018 10:26:23 +0000 (13:26 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Wed, 19 Sep 2018 10:26:23 +0000 (13:26 +0300)
gost_omac.c

index 2000152d4101a936657ace013441d4c167f082d8..83f4acdcf16991ea5eba5fcf5334aaa8e3559c18 100644 (file)
@@ -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