Revamp aead_encrypt()
Revamp aead_encrypt()

* Add error handling for all OpenSSL calls.
* Add bounds check and casting where appropriate.

rlipscombe/otp,vladdu/otp,jj1bdx/otp,bjorng/otp,isvilen/otp,bsmr-erlang/otp,RoadRunnr/otp,jj1bdx/otp,emacsmirror/erlang,aboroska/otp,uabboli/otp,electricimp/otp,mikpe/otp,rlipscombe/otp,dumbbell/otp,electricimp/otp,potatosalad/otp,uabboli/otp,RoadRunnr/otp,getong/otp,getong/otp,lrascao/otp,lrascao/otp,mikpe/otp,mikpe/otp,g-andrade/otp,isvilen/otp,g-andrade/otp,ferd/otp,lrascao/otp,vinoski/otp,aboroska/otp,vinoski/otp,legoscia/otp,dgud/otp,ferd/otp,isvilen/otp,dgud/otp,dgud/otp,isvilen/otp,potatosalad/otp,mikpe/otp,lrascao/otp,potatosalad/otp,bjorng/otp,isvilen/otp,dgud/otp,erlang/otp,legoscia/otp,rlipscombe/otp,vinoski/otp,aboroska/otp,bjorng/otp,g-andrade/otp,emacsmirror/erlang,ferd/otp,lrascao/otp,dumbbell/otp,aboroska/otp,RoadRunnr/otp,isvilen/otp,electricimp/otp,aboroska/otp,legoscia/otp,erlang/otp,mikpe/otp,bsmr-erlang/otp,vladdu/otp,emacsmirror/erlang,bsmr-erlang/otp,vladdu/otp,RoadRunnr/otp,mikpe/otp,legoscia/otp,electricimp/otp,bjorng/otp,jj1bdx/otp,ferd/otp,rlipscombe/otp,legoscia/otp,getong/otp,uabboli/otp,erlang/otp,legoscia/otp,g-andrade/otp,erlang/otp,bjorng/otp,dgud/otp,ferd/otp,legoscia/otp,vinoski/otp,vinoski/otp,g-andrade/otp,g-andrade/otp,RoadRunnr/otp,uabboli/otp,kvakvs/otp,rlipscombe/otp,isvilen/otp,bjorng/otp,bjorng/otp,potatosalad/otp,vladdu/otp,rlipscombe/otp,RoadRunnr/otp,jj1bdx/otp,bsmr-erlang/otp,erlang/otp,electricimp/otp,getong/otp,dumbbell/otp,ferd/otp,dumbbell/otp,uabboli/otp,potatosalad/otp,mikpe/otp,vladdu/otp,jj1bdx/otp,potatosalad/otp,emacsmirror/erlang,dgud/otp,emacsmirror/erlang,jj1bdx/otp,vinoski/otp,bjorng/otp,ferd/otp,erlang/otp,electricimp/otp,vinoski/otp,lrascao/otp,aboroska/otp,uabboli/otp,dgud/otp,lrascao/otp,getong/otp,rlipscombe/otp,dgud/otp,dgud/otp,vinoski/otp,kvakvs/otp,aboroska/otp,bsmr-erlang/otp,mikpe/otp,lrascao/otp,bsmr-erlang/otp,dumbbell/otp,vinoski/otp,RoadRunnr/otp,emacsmirror/erlang,dumbbell/otp,vinoski/otp,dgud/otp,uabboli/otp,electricimp/otp,emacsmirror/erlang,mikpe/otp,rlipscombe/otp,aboroska/otp,bsmr-erlang/otp,erlang/otp,legoscia/otp,kvakvs/otp,emacsmirror/erlang,potatosalad/otp,jj1bdx/otp,bsmr-erlang/otp,erlang/otp,jj1bdx/otp,kvakvs/otp,aboroska/otp,erlang/otp,rlipscombe/otp,bjorng/otp,dumbbell/otp,getong/otp,RoadRunnr/otp,kvakvs/otp,jj1bdx/otp,dumbbell/otp,kvakvs/otp,erlang/otp,bjorng/otp,electricimp/otp,getong/otp,RoadRunnr/otp,kvakvs/otp,rlipscombe/otp,emacsmirror/erlang,g-andrade/otp,g-andrade/otp,potatosalad/otp,uabboli/otp,potatosalad/otp,ferd/otp,lrascao/otp,vladdu/otp,kvakvs/otp,potatosalad/otp,ferd/otp,dumbbell/otp,isvilen/otp,isvilen/otp,uabboli/otp,g-andrade/otp,vladdu/otp,electricimp/otp,getong/otp,emacsmirror/erlang,g-andrade/otp,isvilen/otp,legoscia/otp,kvakvs/otp,mikpe/otp,jj1bdx/otp,getong/otp,vladdu/otp,bsmr-erlang/otp,vladdu/otp,dumbbell/otp,getong/otp