I note that the patch includes modifications to md5.c and sha1.c. I think similar modifications will be needed for the functions in sha2.c as well.