siphash: Properly set mac size in sipcopy
authorTomas Mraz <tomas@openssl.org>
Thu, 21 Apr 2022 15:09:14 +0000 (17:09 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 27 Apr 2022 08:05:56 +0000 (10:05 +0200)
commit6893e691d8dafe8fb74585f6c23f1ca8d70f97a9
treeaba3c6c42f15f448fc30b4b135e07a54b951b91d
parentb2015891c4edd99284a4b9ec97ee4ac61e57c310
siphash: Properly set mac size in sipcopy

Also fully duplicate the context on dup

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18142)

(cherry picked from commit 905fec4f4d6bb8a978476cbce0f293ffc683b5fd)
providers/implementations/macs/siphash_prov.c