-eliminate repeated calls to gcry_md_open, use reset instead of close/open

git-svn-id: https://gnunet.org/svn/gnunet@31827 140774ce-b5e7-0310-ab8b-a85725594a96