diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2023-03-07 01:30:53 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2023-03-07 01:30:53 +0000 |
commit | 01f1fb3db56227ac159f6d028dd7eed2bc27e7d3 (patch) | |
tree | 3f340a2bade227b47548b95ee7f72d51445b18fc /usr.bin | |
parent | 238fefd1b23fa263f0d679ab926f94058b896254 (diff) |
correct size for array argument when changing UMAC_OUTPUT_LEN
Coverity CID 291845; ok dtucker@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/umac.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/umac.c b/usr.bin/ssh/umac.c index 707b2a292ec..1ea6656ae7d 100644 --- a/usr.bin/ssh/umac.c +++ b/usr.bin/ssh/umac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umac.c,v 1.22 2022/01/01 05:55:06 jsg Exp $ */ +/* $OpenBSD: umac.c,v 1.23 2023/03/07 01:30:52 djm Exp $ */ /* ----------------------------------------------------------------------- * * umac.c -- C Implementation UMAC Message Authentication @@ -229,7 +229,8 @@ static void pdf_init(pdf_ctx *pc, aes_int_key prf_key) explicit_bzero(buf, sizeof(buf)); } -static void pdf_gen_xor(pdf_ctx *pc, const UINT8 nonce[8], UINT8 buf[8]) +static void pdf_gen_xor(pdf_ctx *pc, const UINT8 nonce[8], + UINT8 buf[UMAC_OUTPUT_LEN]) { /* 'ndx' indicates that we'll be using the 0th or 1st eight bytes * of the AES output. If last time around we returned the ndx-1st |