fixes for rawSHA512_ng format