Fix deletion key in test 50.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -47,6 +47,6 @@ def test_cipher_aes_cipher(device, size):
|
|||||||
decryptor = cipher.decryptor()
|
decryptor = cipher.decryptor()
|
||||||
plA = decryptor.update(ctA) + decryptor.finalize()
|
plA = decryptor.update(ctA) + decryptor.finalize()
|
||||||
plB = device.cipher(Algorithm.ALGO_AES_CBC_DECRYPT, keyid, ctA)
|
plB = device.cipher(Algorithm.ALGO_AES_CBC_DECRYPT, keyid, ctA)
|
||||||
device.delete_file(DOPrefixes.KEY_PREFIX.value << 8 | keyid)
|
device.delete_file(DOPrefixes.KEY_PREFIX.value, keyid)
|
||||||
assert(bytes(plB) == plA)
|
assert(bytes(plB) == plA)
|
||||||
assert(bytes(plB) == MESSAGE)
|
assert(bytes(plB) == MESSAGE)
|
||||||
|
|||||||
Reference in New Issue
Block a user