RSA/DSA/ECDSA do not seem to implement the hashing as part of the signature operation. Please, consider the patch authored by Stephan Mueller trying to implement this.
Not sure how to implement the SEXP in function cipher/pubkey.c:calculate_hash() in an efficient manner.