aboutsummaryrefslogtreecommitdiff
path: root/gost_omac.c
AgeCommit message (Collapse)AuthorFilesLines
2018-12-25TypoDmitry Belyavskiy1-1/+1
2018-12-25Avoid memory leakDmitry Belyavskiy1-0/+1
2018-09-19Updated MAC sizeDmitry Belyavskiy1-5/+4
2018-09-19TODODmitry Belyavskiy1-0/+12
2018-09-18TLSTREE - OMAC processing, not tested.Dmitry Belyavskiy1-3/+27
2018-08-31Some fixes of OMAC processingDmitry Belyavskiy1-2/+1
2018-08-30IndentationDmitry Belyavskiy1-134/+122
2018-08-08Allow EVP_MD_CTX_copy_ex OMAC before key is setVitaly Chikunov1-0/+7
Reported-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
2018-08-08Fix possible overflow of digest result writingVitaly Chikunov1-1/+4
Openssl is already have output result size in EVP_MD.md_size We should not exceed its value when writing digest output. This should be fixed more consistently, probably, by removing dgst_size from OMAC_CTX.
2018-08-02Fix EVP_MD_CTX_copy_ex for OMACVitaly Chikunov1-1/+1
Openssl copies a state between valid contexts. But, EVP_MD_CTX_copy_ex just memcpy-s private data (md_data), which points to OMAC_CTX), which have pointer to CMAC_CTX. Copying pointer makes CMAC context just the same on the both sides. As a consequence, we can not do normal copy of a state between CMAC contexts. As a fix, we just clone it if it's equal between copy sides. Reported-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
2018-07-25Make grasshopper OMAC result size 8 instead of 4Vitaly Chikunov1-1/+1
Two reasons: to match GOST R test vector size, just make it bigger.
2018-06-15Bugfix - copy dgst contextDmitry Belyavskiy1-0/+4
2018-06-15Missing initializationDmitry Belyavskiy1-1/+17
2018-06-14OMACs implementation. Unfinished.Dmitry Belyavskiy1-0/+258