aes_icm_encrypt_ismacryp returns err_status_terminus
http://sourceforge.net/tracker/?func=detail&aid=3568831&group_id=38894&atid=423799
If I understand correctly, aes_icm_encrypt_ismacryp incorrectly examines the 128 bit counter to determine if it would roll over. This can cause the function to return err_status_terminus prematurely, which among other things seriously breaks crypto_gen_random, and, in turn, SRTP on Asterisk (SRTP calls stop working and the server logs "Can't provide secure audio requested in SDP offer"; Asterisk needs to be restarted to fix it). I have attached a patch with the fix we're using internally, let me know if it's correct
Looking at the case history on sourceforge, this was closed on 9/18/2012. Not sure why it's still an open bug here. Closing it for now.