From b674413921a95b5b87d1bcd2241e8208732f7e3d Mon Sep 17 00:00:00 2001 From: ngie Date: Tue, 21 May 2019 04:03:22 +0000 Subject: [PATCH] Follow up to r348042: cast `aad` to a byte array This is not completely necessary today, but this change is being made in a conservative manner to avoid accidental breakage in the future, if this ever was a unicode string. PR: 237403 MFC after: 1 week --- tests/sys/opencrypto/cryptodev.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/sys/opencrypto/cryptodev.py b/tests/sys/opencrypto/cryptodev.py index a3411c41d4c..c784efe94be 100644 --- a/tests/sys/opencrypto/cryptodev.py +++ b/tests/sys/opencrypto/cryptodev.py @@ -246,6 +246,7 @@ class Crypto: caead.len = len(src) s = array.array('B', src) caead.src = caead.dst = s.buffer_info()[0] + aad = str_to_ascii(aad) caead.aadlen = len(aad) saad = array.array('B', aad) caead.aad = saad.buffer_info()[0] -- 2.42.0