wip refactor, added more checking to aead_generate
wip refactor, added more checking to aead_generate

Signed-off-by: Edi Permadi <163b49ac0c44ca5b49677bf42f3f8680b3bd9867@gmail.com>

edipermadi/teensy-hsm,edipermadi/teensy-hsm