Use sha512 as authentication hash function

fix #1029