def aes_ecb_compare(self, key_handle, ciphertext, plaintext):
return pyhsm.aes_ecb_cmd.YHSM_Cmd_AES_ECB_Compare(self.stick, key_handle, ciphertext, plaintext).execute()<EOL>
AES ECB decrypt and then compare using a key handle.

The comparison is done inside the YubiHSM so the plaintext is never exposed (well,
except indirectionally when the provided plaintext does match).

@warning: Please be aware of the known limitations of AES ECB mode before using it!

@param key_handle: Key handle to use for AES ECB decryption
@param plaintext: Data to decrypt
@type key_handle: integer or string
@type plaintext: string

@returns: Match result
@rtype: bool

@see: L{pyhsm.aes_ecb_cmd.YHSM_Cmd_AES_ECB_Compare}