As per summary, the attached patch is upstream's rework of what I submitted to be able to use SHA2-family of functions with OpenGPGv2 cards, that do support them. Thanks, Diego
Created attachment 248884 [details] Patch from upstream
Created attachment 248925 [details] Fixed patch upstream fucked up, this one actually works.
Added to 2.0.16-r2.