small commit before merge
This commit is contained in:
parent
adf007bf30
commit
7098103445
@ -82,7 +82,6 @@ class OnionrCrypto:
|
||||
retData = key.verify(data, sig) # .encode() is not the same as nacl.encoding
|
||||
except nacl.exceptions.BadSignatureError:
|
||||
pass
|
||||
|
||||
else:
|
||||
try:
|
||||
retData = key.verify(data, sig)
|
||||
@ -160,8 +159,6 @@ class OnionrCrypto:
|
||||
decrypted = self.symmetricDecrypt(data, key, encodedKey=True)
|
||||
return decrypted
|
||||
|
||||
return
|
||||
|
||||
def symmetricEncrypt(self, data, key, encodedKey=False, returnEncoded=True):
|
||||
'''Encrypt data to a 32-byte key (Salsa20-Poly1305 MAC)'''
|
||||
if encodedKey:
|
||||
|
Loading…
Reference in New Issue
Block a user