def test_generate_aead_random_nonce_permitted(self):
        # Enabled flags 20000008 = YSM_RANDOM_AEAD_GENERATE,YSM_USER_NONCE
        # HSM> < keyload - Load key data now using flags 20000008. Press ESC to quit
        # 20000008 - stored ok
        key_handle = 0x20000008
        num_bytes = 22
        aead = self.hsm.generate_aead_random(self.nonce, key_handle, num_bytes)

        self.assertEqual(self.nonce, aead.nonce)
        self.assertEqual(num_bytes + pyhsm.defines.YSM_AEAD_MAC_SIZE, len(aead.data))
Put radio into standby mode
dataset/ETHPy150Open Yubico/python-pyhsm/test/test_aead.py/TestAEAD.test_generate_aead_random_nonce_permitted--crossover with--dataset/ETHPy150Open whaleygeek/pyenergenie/src/energenie/radio2.py/standby