Fixed bug in encrypt cipher authentication.