code: static MessageDigest getSha512Digest() {
          try {
              MessageDigest digest = MessageDigest.getInstance("SHA-512");
              digest.reset();
              return digest;
          } catch (NoSuchAlgorithmException e) {
              // ignore, won't happen
              throw new IllegalStateException(e);
          }
      }
docs: /*package