Class PShaUtil
java.lang.Object
org.eclipse.milo.opcua.stack.core.util.PShaUtil
P_SHA-1(secret, seed) = HMAC_SHA-1(secret, A(1) + seed) + HMAC_SHA-1(secret, A(2) + seed) + HMAC_SHA-1(secret, A(3) + seed) + ... Where + indicates concatenation.
A() is defined as: A(0) = seed A(i) = HMAC_SHA-1(secret, A(i-1))
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]createPSha1Key(byte[] secret, byte[] seed, int offset, int length) static byte[]createPSha256Key(byte[] secret, byte[] seed, int offset, int length)
-
Constructor Details
-
PShaUtil
public PShaUtil()
-
-
Method Details
-
createPSha1Key
public static byte[] createPSha1Key(byte[] secret, byte[] seed, int offset, int length) -
createPSha256Key
public static byte[] createPSha256Key(byte[] secret, byte[] seed, int offset, int length)
-