def search_for_oath_code(hsm, key_handle, nonce, aead, user_code, interval=<NUM_LIT:30>,<EOL>tolerance=<NUM_LIT:0>):
<EOL>timecounter = timecode(datetime.datetime.now(), interval) - tolerance<EOL>return search_hotp(<EOL>hsm, key_handle, nonce, aead, timecounter, user_code, <NUM_LIT:1> + <NUM_LIT:2>*tolerance)<EOL>
Try to validate an OATH TOTP OTP generated by a token whose secret key is
available to the YubiHSM through the AEAD.

The parameter `aead' is either a string, or an instance of YHSM_GeneratedAEAD.

Returns timecounter value on successful auth, and None otherwise.