X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_omac.c;h=fcfa810784c3ed9cb8b9969aa8c1cbbdbd989537;hb=ac13dafdd889b51c3f91c7351674ca9935a551f1;hp=c4026d4fdc758d6da9fa9654ca3b2b7d0833a200;hpb=410e6c831e2fc37ac9c81c5c6e2e32f564720e86;p=openssl-gost%2Fengine.git diff --git a/gost_omac.c b/gost_omac.c index c4026d4..fcfa810 100644 --- a/gost_omac.c +++ b/gost_omac.c @@ -240,7 +240,7 @@ int omac_imit_ctrl(EVP_MD_CTX *ctx, int type, int arg, void *ptr) if (c->key_set) { unsigned char diversed_key[32]; return gost_tlstree(c->cipher_nid, c->key, diversed_key, - (const unsigned char *)ptr) ? + (const unsigned char *)ptr, TLSTREE_MODE_NONE) ? omac_key(c, EVP_get_cipherbynid(c->cipher_nid), diversed_key, 32) : 0; }