fix wrong AES decrypt return length, remove nul insert in AES and RSA decrypt functions, and add length argument to base64 decode functions