Skip to content
Snippets Groups Projects
Commit 0844c874 authored by jkerdreu's avatar jkerdreu
Browse files

fix bug for Python3


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@1388 b32b6428-25c9-4566-ad07-03861ab6144f
parent a76ee89f
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ class MessageFactory(): ...@@ -91,7 +91,7 @@ class MessageFactory():
# Payload Ciphering: ciph # Payload Ciphering: ciph
# Additionnal Data == json serialization of the targets array # Additionnal Data == json serialization of the targets array
ad = json.dumps(msg.get_targets()) ad = json.dumps(msg.get_targets()).encode("utf8") # Additional Data
nonce = build_nonce(msg.get_timestamp()) nonce = build_nonce(msg.get_timestamp())
key = self.get_cipher_key() key = self.get_cipher_key()
ciph = pysodium.crypto_aead_chacha20poly1305_encrypt( ciph = pysodium.crypto_aead_chacha20poly1305_encrypt(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment