Commit 0ec6a658 authored by Hubert Chathi's avatar Hubert Chathi
Browse files

add more buffer clearing

parent 5ef6a844
......@@ -283,7 +283,12 @@ class InboundGroupSession(object):
return bytes_to_native_str(ffi.unpack(export_buffer, export_length))
export_str = bytes_to_native_str(ffi.unpack(export_buffer, export_length))
# clear out copies of the key
lib.memset(export_buffer, 0, export_length)
return export_str
def import_session(cls, session_key):
......@@ -313,6 +318,7 @@ class InboundGroupSession(object):
# clear out copies of the key
if byte_session_key is not session_key:
for i in range(0, len(byte_session_key)):
byte_session_key[i] = 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment