MCPcopy
hub / github.com/AsahiLinux/m1n1 / aes_set_iv

Function aes_set_iv

proxyclient/experiments/aes.py:57–62  ·  view source on GitHub ↗
(aes, iv, slot=0)

Source from the content-addressed store, hash-verified

55
56
57def aes_set_iv(aes, iv, slot=0):
58 assert len(iv) == 16
59 aes.R_CMD_FIFO = AESSetIVCommand(SLOT=slot)
60
61 for i in range(0, len(iv), 4):
62 aes.R_CMD_FIFO = struct.unpack(">I", iv[i : i + 4])[0]
63
64
65def aes_crypt(aes, dart, data, key_slot=0, iv_slot=0):

Callers 2

test_hw_keyFunction · 0.85
test_custom_keyFunction · 0.85

Calls 1

AESSetIVCommandClass · 0.85

Tested by 2

test_hw_keyFunction · 0.68
test_custom_keyFunction · 0.68