Home
last modified time | relevance | path

Searched refs:identityHint (Results 1 – 25 of 28) sorted by relevance

12

/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DDuckTypedPSKKeyManagerTest.java107 String identityHint = "hint"; in testMethodInvocationDelegation() local
110 mockInvocationHandler.returnValue = identityHint; in testMethodInvocationDelegation()
111 assertSame(identityHint, pskKeyManager.chooseServerKeyIdentityHint(mSSLSocket)); in testMethodInvocationDelegation()
119 mockInvocationHandler.returnValue = identityHint; in testMethodInvocationDelegation()
120 assertSame(identityHint, pskKeyManager.chooseServerKeyIdentityHint(mSSLEngine)); in testMethodInvocationDelegation()
129 assertSame(identity, pskKeyManager.chooseClientKeyIdentity(identityHint, mSSLSocket)); in testMethodInvocationDelegation()
134 assertSame(identityHint, mockInvocationHandler.lastInvokedMethodArgs[0]); in testMethodInvocationDelegation()
138 assertSame(identity, pskKeyManager.chooseClientKeyIdentity(identityHint, mSSLEngine)); in testMethodInvocationDelegation()
143 assertSame(identityHint, mockInvocationHandler.lastInvokedMethodArgs[0]); in testMethodInvocationDelegation()
148 assertSame(key, pskKeyManager.getKey(identityHint, identity, mSSLSocket)); in testMethodInvocationDelegation()
[all …]
DNativeCryptoTest.java821 public int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key) { in clientPSKKeyRequested() argument
825 + " identityHint=" + identityHint + " identity capacity=" + identity.length in clientPSKKeyRequested()
829 clientPSKKeyRequestedIdentityHint = identityHint; in clientPSKKeyRequested()
848 public int serverPSKKeyRequested(String identityHint, String identity, byte[] key) { in serverPSKKeyRequested() argument
852 + " identityHint=" + identityHint + " identity=" + identity in serverPSKKeyRequested()
856 serverPSKKeyRequestedIdentityHint = identityHint; in serverPSKKeyRequested()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DDuckTypedPSKKeyManagerTest.java103 String identityHint = "hint"; in testMethodInvocationDelegation() local
106 mockInvocationHandler.returnValue = identityHint; in testMethodInvocationDelegation()
107 assertSame(identityHint, pskKeyManager.chooseServerKeyIdentityHint(mSSLSocket)); in testMethodInvocationDelegation()
115 mockInvocationHandler.returnValue = identityHint; in testMethodInvocationDelegation()
116 assertSame(identityHint, pskKeyManager.chooseServerKeyIdentityHint(mSSLEngine)); in testMethodInvocationDelegation()
125 assertSame(identity, pskKeyManager.chooseClientKeyIdentity(identityHint, mSSLSocket)); in testMethodInvocationDelegation()
130 assertSame(identityHint, mockInvocationHandler.lastInvokedMethodArgs[0]); in testMethodInvocationDelegation()
134 assertSame(identity, pskKeyManager.chooseClientKeyIdentity(identityHint, mSSLEngine)); in testMethodInvocationDelegation()
139 assertSame(identityHint, mockInvocationHandler.lastInvokedMethodArgs[0]); in testMethodInvocationDelegation()
144 assertSame(key, pskKeyManager.getKey(identityHint, identity, mSSLSocket)); in testMethodInvocationDelegation()
[all …]
DNativeCryptoTest.java813 public int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key) { in clientPSKKeyRequested() argument
817 + " identityHint=" + identityHint + " identity capacity=" + identity.length in clientPSKKeyRequested()
821 clientPSKKeyRequestedIdentityHint = identityHint; in clientPSKKeyRequested()
840 public int serverPSKKeyRequested(String identityHint, String identity, byte[] key) { in serverPSKKeyRequested() argument
844 + " identityHint=" + identityHint + " identity=" + identity in serverPSKKeyRequested()
848 serverPSKKeyRequestedIdentityHint = identityHint; in serverPSKKeyRequested()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DDuckTypedPSKKeyManager.java96 public String chooseClientKeyIdentity(String identityHint, Socket socket) { in chooseClientKeyIdentity() argument
100 .invoke(mDelegate, identityHint, socket); in chooseClientKeyIdentity()
107 public String chooseClientKeyIdentity(String identityHint, SSLEngine engine) { in chooseClientKeyIdentity() argument
111 .invoke(mDelegate, identityHint, engine); in chooseClientKeyIdentity()
118 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() argument
122 .invoke(mDelegate, identityHint, identity, socket); in getKey()
129 public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { in getKey() argument
133 .invoke(mDelegate, identityHint, identity, engine); in getKey()
DPSKKeyManager.java141 String chooseClientKeyIdentity(String identityHint, Socket socket); in chooseClientKeyIdentity() argument
152 String chooseClientKeyIdentity(String identityHint, SSLEngine engine); in chooseClientKeyIdentity() argument
164 SecretKey getKey(String identityHint, String identity, Socket socket); in getKey() argument
176 SecretKey getKey(String identityHint, String identity, SSLEngine engine); in getKey() argument
DConscryptFileDescriptorSocket.java321 public final int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key) { in clientPSKKeyRequested() argument
322 return ssl.clientPSKKeyRequested(identityHint, identity, key); in clientPSKKeyRequested()
327 public final int serverPSKKeyRequested(String identityHint, String identity, byte[] key) { in serverPSKKeyRequested() argument
328 return ssl.serverPSKKeyRequested(identityHint, identity, key); in serverPSKKeyRequested()
1146 public final String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint) {
1147 return keyManager.chooseClientKeyIdentity(identityHint, this);
1152 … public final SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity) {
1153 return keyManager.getKey(identityHint, identity, this);
DNativeSsl.java149 int clientPSKKeyRequested(String identityHint, byte[] identityBytesOut, byte[] key) { in clientPSKKeyRequested() argument
155 String identity = pskCallbacks.chooseClientPSKIdentity(pskKeyManager, identityHint); in clientPSKKeyRequested()
179 SecretKey secretKey = pskCallbacks.getPSKKey(pskKeyManager, identityHint, identity); in clientPSKKeyRequested()
195 int serverPSKKeyRequested(String identityHint, String identity, byte[] key) { in serverPSKKeyRequested() argument
200 SecretKey secretKey = pskCallbacks.getPSKKey(pskKeyManager, identityHint, identity); in serverPSKKeyRequested()
449 String identityHint = pskCallbacks.chooseServerPSKIdentityHint(pskKeyManager); in enablePSKKeyManagerIfRequested() local
450 NativeCrypto.SSL_use_psk_identity_hint(ssl, this, identityHint); in enablePSKKeyManagerIfRequested()
DConscryptEngine.java1575 public int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key) {
1576 return ssl.clientPSKKeyRequested(identityHint, identity, key);
1580 public int serverPSKKeyRequested(String identityHint, String identity, byte[] key) {
1581 return ssl.serverPSKKeyRequested(identityHint, identity, key);
1728 public String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint) {
1729 return keyManager.chooseClientKeyIdentity(identityHint, this);
1734 public SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity) {
1735 return keyManager.getKey(identityHint, identity, this);
DSSLParametersImpl.java494 String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint); in chooseClientPSKIdentity() argument
495 SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity); in getPSKKey() argument
DNativeCrypto.java972 …void SSL_use_psk_identity_hint(long ssl, NativeSsl ssl_holder, String identityHint) throws SSLExce… in SSL_use_psk_identity_hint() argument
1286 int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key); in clientPSKKeyRequested() argument
1300 int serverPSKKeyRequested(String identityHint, String identity, byte[] key); in serverPSKKeyRequested() argument
/external/conscrypt/common/src/main/java/org/conscrypt/
DDuckTypedPSKKeyManager.java95 public String chooseClientKeyIdentity(String identityHint, Socket socket) { in chooseClientKeyIdentity() argument
99 .invoke(mDelegate, identityHint, socket); in chooseClientKeyIdentity()
106 public String chooseClientKeyIdentity(String identityHint, SSLEngine engine) { in chooseClientKeyIdentity() argument
110 .invoke(mDelegate, identityHint, engine); in chooseClientKeyIdentity()
117 public SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() argument
121 .invoke(mDelegate, identityHint, identity, socket); in getKey()
128 public SecretKey getKey(String identityHint, String identity, SSLEngine engine) { in getKey() argument
132 .invoke(mDelegate, identityHint, identity, engine); in getKey()
DPSKKeyManager.java139 String chooseClientKeyIdentity(String identityHint, Socket socket); in chooseClientKeyIdentity() argument
150 String chooseClientKeyIdentity(String identityHint, SSLEngine engine); in chooseClientKeyIdentity() argument
162 SecretKey getKey(String identityHint, String identity, Socket socket); in getKey() argument
174 SecretKey getKey(String identityHint, String identity, SSLEngine engine); in getKey() argument
DNativeSsl.java148 int clientPSKKeyRequested(String identityHint, byte[] identityBytesOut, byte[] key) { in clientPSKKeyRequested() argument
154 String identity = pskCallbacks.chooseClientPSKIdentity(pskKeyManager, identityHint); in clientPSKKeyRequested()
178 SecretKey secretKey = pskCallbacks.getPSKKey(pskKeyManager, identityHint, identity); in clientPSKKeyRequested()
194 int serverPSKKeyRequested(String identityHint, String identity, byte[] key) { in serverPSKKeyRequested() argument
199 SecretKey secretKey = pskCallbacks.getPSKKey(pskKeyManager, identityHint, identity); in serverPSKKeyRequested()
448 String identityHint = pskCallbacks.chooseServerPSKIdentityHint(pskKeyManager); in enablePSKKeyManagerIfRequested() local
449 NativeCrypto.SSL_use_psk_identity_hint(ssl, this, identityHint); in enablePSKKeyManagerIfRequested()
DConscryptFileDescriptorSocket.java320 public final int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key) { in clientPSKKeyRequested() argument
321 return ssl.clientPSKKeyRequested(identityHint, identity, key); in clientPSKKeyRequested()
326 public final int serverPSKKeyRequested(String identityHint, String identity, byte[] key) { in serverPSKKeyRequested() argument
327 return ssl.serverPSKKeyRequested(identityHint, identity, key); in serverPSKKeyRequested()
1143 public final String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint) {
1144 return keyManager.chooseClientKeyIdentity(identityHint, this);
1149 … public final SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity) {
1150 return keyManager.getKey(identityHint, identity, this);
DConscryptEngine.java1574 public int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key) {
1575 return ssl.clientPSKKeyRequested(identityHint, identity, key);
1579 public int serverPSKKeyRequested(String identityHint, String identity, byte[] key) {
1580 return ssl.serverPSKKeyRequested(identityHint, identity, key);
1727 public String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint) {
1728 return keyManager.chooseClientKeyIdentity(identityHint, this);
1733 public SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity) {
1734 return keyManager.getKey(identityHint, identity, this);
DSSLParametersImpl.java489 String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint); in chooseClientPSKIdentity() argument
490 SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity); in getPSKKey() argument
DNativeCrypto.java932 …void SSL_use_psk_identity_hint(long ssl, NativeSsl ssl_holder, String identityHint) throws SSLExce… in SSL_use_psk_identity_hint() argument
1239 int clientPSKKeyRequested(String identityHint, byte[] identity, byte[] key); in clientPSKKeyRequested() argument
1253 int serverPSKKeyRequested(String identityHint, String identity, byte[] key); in serverPSKKeyRequested() argument
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DPSKKeyManagerProxy.java45 protected SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() argument
49 protected SecretKey getKey(String identityHint, String identity, SSLEngine engine) { in getKey() argument
61 protected String chooseClientKeyIdentity(String identityHint, Socket socket) { in chooseClientKeyIdentity() argument
65 protected String chooseClientKeyIdentity(String identityHint, SSLEngine engine) { in chooseClientKeyIdentity() argument
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DPSKKeyManagerProxy.java46 protected SecretKey getKey(String identityHint, String identity, Socket socket) { in getKey() argument
50 protected SecretKey getKey(String identityHint, String identity, SSLEngine engine) { in getKey() argument
62 protected String chooseClientKeyIdentity(String identityHint, Socket socket) { in chooseClientKeyIdentity() argument
66 protected String chooseClientKeyIdentity(String identityHint, SSLEngine engine) { in chooseClientKeyIdentity() argument
/external/boringssl/src/ssl/test/runner/
Dkey_agreement.go758 identityHint string member
831 ka.identityHint = string(skx.key[2 : 2+identityLen])
843 if ka.identityHint != config.PreSharedKeyIdentity {
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DSSLSocketTest.java143 String identityHint, String identity, Socket socket) { in test_SSLSocket_getSupportedCipherSuites_connect()
149 String identityHint, String identity, SSLEngine engine) { in test_SSLSocket_getSupportedCipherSuites_connect()
DSSLEngineTest.java137 String identityHint, String identity, SSLEngine engine) { in test_SSLEngine_getSupportedCipherSuites_connect()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLSocketTest.java147 String identityHint, String identity, Socket socket) { in test_SSLSocket_getSupportedCipherSuites_connect()
153 String identityHint, String identity, SSLEngine engine) { in test_SSLSocket_getSupportedCipherSuites_connect()
DSSLEngineTest.java141 String identityHint, String identity, SSLEngine engine) { in test_SSLEngine_getSupportedCipherSuites_connect()

12