def test_generate_aead_simple_with_nonce(self):
        # Enabled flags 20000002 = YSM_AEAD_GENERATE,YSM_USER_NONCE
        # HSM> < keyload - Load key data now using flags 20000002. Press ESC to quit
        # 20000002 - stored ok
        key_handle = 0x20000002
        aead = self.hsm.generate_aead_simple(self.nonce, key_handle, self.secret)

        self.assertEqual(aead.nonce, self.nonce)
        self.assertEqual(aead.key_handle, key_handle)
Test generate_aead_simple with specified nonce.
dataset/ETHPy150Open Yubico/python-pyhsm/test/test_aead.py/TestAEAD.test_generate_aead_simple_with_nonce