updated gpg key of hermes, fixed some gpg code and UT