calculate sha1 digest when creating seckey packet