mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
This commit is contained in:
parent
ffbc8cc0f2
commit
ef02523dc8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348045
|
@ -246,6 +246,7 @@ def _doaead(self, op, src, aad, iv, tag=None):
|
|||
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]
|
||||
|
|
Loading…
Reference in a new issue