Author: ngie
Date: Tue May 21 04:03:22 2019
New Revision: 348045
URL: https://svnweb.freebsd.org/changeset/base/348045
Log:
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
Modified:
head/tests/sys/opencrypto/cryptodev.py
Modified: head/tests/sys/opencrypto/cryptodev.py
==============================================================================
--- head/tests/sys/opencrypto/cryptodev.py Tue May 21 04:01:16 2019
(r348044)
+++ head/tests/sys/opencrypto/cryptodev.py Tue May 21 04:03:22 2019
(r348045)
@@ -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]
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"