Send feedback
Class OpaqueUtil (6.119.0)
Stay organized with collections
Save and categorize content based on your preferences.
6.119.0 (latest)
6.118.0
6.116.0
6.111.1
6.108.0
6.107.0
6.103.0
6.102.1
6.101.1
6.100.0
6.99.0
6.98.1
6.97.1
6.96.1
6.95.1
6.94.0
6.93.0
6.89.0
6.88.0
6.87.0
6.86.0
6.85.0
6.83.0
6.82.0
6.80.1
6.79.0
6.77.0
6.74.1
6.72.0
6.71.0
6.69.0
6.68.0
6.66.0
6.65.1
6.62.0
6.60.0
6.58.0
6.57.0
6.56.0
6.55.0
6.54.0
6.53.0
6.52.1
6.51.0
6.50.1
6.49.0
6.25.1
6.24.0
6.23.4
6.22.0
6.21.2
6.20.0
6.19.1
6.18.0
6.17.4
6.14.1
Static Fields
AUTH_KEY_INFO
public static final String AUTH_KEY_INFO
Field Value
Type
Description
String
CURVE_NAME
public static final String CURVE_NAME
Field Value
Type
Description
String
DIFFIE_HELLMAN_KEY_INFO
public static final String DIFFIE_HELLMAN_KEY_INFO
Field Value
Type
Description
String
EXPORT_KEY_INFO
public static final String EXPORT_KEY_INFO
Field Value
Type
Description
String
HMAC_SHA256
public static final String HMAC_SHA256
Field Value
Type
Description
String
LOGIN_DOMAIN_SEPARATION_TAG
public static final String LOGIN_DOMAIN_SEPARATION_TAG
Field Value
Type
Description
String
MASKING_KEY_INFO
public static final String MASKING_KEY_INFO
Field Value
Type
Description
String
PRIVATE_KEY_INFO
public static final String PRIVATE_KEY_INFO
Field Value
Type
Description
String
Static Methods
blind(byte[] password, byte[] blindScalar)
public static byte [] blind ( byte [] password , byte [] blindScalar )
Parameters
Name
Description
password
byte []
blindScalar
byte []
Returns
Type
Description
byte []
concat(byte[][] arrays)
public static byte [] concat ( byte [][] arrays )
Parameter
Name
Description
arrays
byte [][]
Returns
Type
Description
byte []
diffieHellman(byte[] privateKey, byte[] peerPublicKey)
public static byte [] diffieHellman ( byte [] privateKey , byte [] peerPublicKey )
Parameters
Name
Description
privateKey
byte []
peerPublicKey
byte []
Returns
Type
Description
byte []
expand(byte[] keyMaterial, byte[] info, int size)
public static byte [] expand ( byte [] keyMaterial , byte [] info , int size )
Parameters
Name
Description
keyMaterial
byte []
info
byte []
size
int
Returns
Type
Description
byte []
public static byte [] extract ( byte [] inputKeyMaterial )
Parameter
Name
Description
inputKeyMaterial
byte []
Returns
Type
Description
byte []
finalize(byte[] blind, byte[] evaluatedMessage)
public static byte [] finalize ( byte [] blind , byte [] evaluatedMessage )
Parameters
Name
Description
blind
byte []
evaluatedMessage
byte []
Returns
Type
Description
byte []
generateKeyPair(byte[] deriveInput)
public static byte [][] generateKeyPair ( byte [] deriveInput )
Parameter
Name
Description
deriveInput
byte []
Returns
Type
Description
byte [][]
getHashToCurve(byte[] message, byte[] domain)
public static byte [] getHashToCurve ( byte [] message , byte [] domain )
Parameters
Name
Description
message
byte []
domain
byte []
Returns
Type
Description
byte []
hmacSha256(byte[] key, byte[] message)
public static byte [] hmacSha256 ( byte [] key , byte [] message )
Parameters
Name
Description
key
byte []
message
byte []
Returns
Type
Description
byte []
mac(byte[] key, byte[] data)
public static byte [] mac ( byte [] key , byte [] data )
Parameters
Name
Description
key
byte []
data
byte []
Returns
Type
Description
byte []
nonce()
public static byte [] nonce ()
Returns
Type
Description
byte []
randomOracleSha256(byte[] x, BigInteger max)
public static byte [] randomOracleSha256 ( byte [] x , BigInteger max )
Parameters
Name
Description
x
byte []
max
BigInteger
Returns
Type
Description
byte []
sha256(byte[] message)
public static byte [] sha256 ( byte [] message )
Parameter
Name
Description
message
byte []
Returns
Type
Description
byte []
stretch(byte[] input, Authentication.HashParameters hashParameters)
public static byte [] stretch ( byte [] input , Authentication . HashParameters hashParameters )
Parameters
Name
Description
input
byte []
hashParameters
com.google.cloud.spanner.omni.Authentication.HashParameters
Returns
Type
Description
byte []
xorBytes(byte[] a, byte[] b)
public static byte [] xorBytes ( byte [] a , byte [] b )
Parameters
Name
Description
a
byte []
b
byte []
Returns
Type
Description
byte []
Constructors
OpaqueUtil()
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-31 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-31 UTC."],[],[]]