diff options
author | Vitaly Chikunov <vt@altlinux.org> | 2018-07-25 10:39:50 +0300 |
---|---|---|
committer | Vitaly Chikunov <vt@altlinux.org> | 2018-07-25 11:00:00 +0300 |
commit | d44131cf7cae81da5bafb9cb1129b026b8cb0797 (patch) | |
tree | 9c02c8445534453c225ee72dc81ff565e9fc96b5 /gost_omac.c | |
parent | 20e590a4f0dc7a563b78e798c0a352b835d50bfa (diff) | |
download | gost-engine-d44131cf7cae81da5bafb9cb1129b026b8cb0797.zip gost-engine-d44131cf7cae81da5bafb9cb1129b026b8cb0797.tar.gz gost-engine-d44131cf7cae81da5bafb9cb1129b026b8cb0797.tar.bz2 |
Make grasshopper OMAC result size 8 instead of 4
Two reasons: to match GOST R test vector size, just make it bigger.
Diffstat (limited to 'gost_omac.c')
-rw-r--r-- | gost_omac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gost_omac.c b/gost_omac.c index fa7ab74..c4e8111 100644 --- a/gost_omac.c +++ b/gost_omac.c @@ -252,7 +252,7 @@ EVP_MD *grasshopper_omac(void) EVP_MD *md; if ((md = EVP_MD_meth_new(NID_grasshopper_mac, NID_undef)) == NULL - || !EVP_MD_meth_set_result_size(md, 4) + || !EVP_MD_meth_set_result_size(md, 8) || !EVP_MD_meth_set_input_blocksize(md, 8) || !EVP_MD_meth_set_app_datasize(md, sizeof(OMAC_CTX)) || !EVP_MD_meth_set_flags(md, 0) |