X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_omac.c;h=83f4acdcf16991ea5eba5fcf5334aaa8e3559c18;hb=ad49fa11916e86b4f28d561e288b44895787e240;hp=2000152d4101a936657ace013441d4c167f082d8;hpb=31c6ffa026a9bf42c2e3fdaa66a80230b09306ec;p=openssl-gost%2Fengine.git 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