List of usage examples for com.google.common.hash Hashing hmacSha512
public static HashFunction hmacSha512(byte[] key)
From source file:com.facebook.presto.operator.scalar.HmacFunctions.java
@Description("Compute HMAC with SHA512") @ScalarFunction//from w w w.ja v a2s . c o m @SqlType(StandardTypes.VARBINARY) public static Slice hmacSha512(@SqlType(StandardTypes.VARBINARY) Slice slice, @SqlType(StandardTypes.VARBINARY) Slice key) { return wrappedBuffer(Hashing.hmacSha512(key.getBytes()).hashBytes(slice.getBytes()).asBytes()); }