Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2019 04:03:22 +0000 (UTC)
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348045 - head/tests/sys/opencrypto
Message-ID:  <201905210403.x4L43MGG096636@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905210403.x4L43MGG096636>