Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgerault committed Apr 28, 2024
1 parent 734b53d commit 166882c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/cipher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,3 +561,10 @@ def test_cipher_inverse():
ciphertext = qarmav2.evaluate([key, plaintext, tweak])
cipher_inv = qarmav2.cipher_inverse()
assert cipher_inv.evaluate([ciphertext, tweak, key]) == plaintext


def test_all_sboxes_are_standard():
aes = AESBlockCipher(number_of_rounds=2)
assert aes.all_sboxes_are_standard()
des = DESBlockCipher(number_of_rounds = 2, number_of_sboxes=8)
assert not des.all_sboxes_are_standard()

0 comments on commit 166882c

Please sign in to comment.