import java.security.SignatureException;\r
\r
public class ExpandedPrivateKey {\r
- public static byte[] HMacSha512(byte[] data, byte[] key)\r
+ public static byte[] hmacSha512(byte[] data, byte[] key)\r
throws SignatureException, NoSuchAlgorithmException, InvalidKeyException {\r
SecretKeySpec signingKey = new SecretKeySpec(key, "HmacSHA512");\r
Mac mac = Mac.getInstance("HmacSHA512");\r
return mac.doFinal(data);\r
}\r
\r
- public static byte[] ExpandedPrivateKey(byte[] data)\r
+ public static byte[] expandedPrivateKey(byte[] data)\r
throws SignatureException, NoSuchAlgorithmException, InvalidKeyException {\r
// "457870616e64" is "Expand" hex.\r
- byte[] res = HMacSha512(data, Hex.decode("457870616e64"));\r
+ byte[] res = hmacSha512(data, Hex.decode("457870616e64"));\r
for (int i = 0; i <= 31; i++) {\r
res[i] = data[i];\r
}\r