Fix heap-smashing bug in keymaster key encryption.

If ae_init ever fails, the memset intended to clean up the OCB key
structure would actually zero a good chunk of random heap space because
zeros from the address of the pointer to the key structure, rather than
the address of the key structure.  This fixes it.

Change-Id: I2edc12f974a40c6232539954e0c28b181e1ce319
1 file changed