def test_who_can_generate_random(self):
        # Enabled flags 00000008 = YSM_RANDOM_AEAD_GENERATE
        # 00000004 - stored ok
        this = lambda kh: self.hsm.generate_aead_random(self.nonce, kh, 10)
        self.who_can(this, expected = [0x04], extra_khs = [0x1002])
Test what key handles can generate a random AEAD.
dataset/ETHPy150Open Yubico/python-pyhsm/test/test_aead.py/TestAEAD.test_who_can_generate_random