Added CMAC tests.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-02-17 22:46:16 +01:00
parent a1f478239d
commit 0b71bf693d
2 changed files with 19 additions and 1 deletions

View File

@@ -447,6 +447,10 @@ class Device:
resp = self.send(cla=0x80, command=0x78, p1=keyid, p2=0x51, data=data)
return resp
def cmac(self, keyid, data):
resp = self.send(cla=0x80, command=0x78, p1=keyid, p2=Algorithm.ALGO_AES_CMAC.value, data=data)
return resp
@pytest.fixture(scope="session")
def device():