Home
last modified time | relevance | path

Searched refs:keyAgreement (Results 1 – 25 of 26) sorted by relevance

12

/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java188 KeyAgreement keyAgreement = getKeyAgreement(provider); in testInit_withNullPrivateKey() local
190 keyAgreement.init(null); in testInit_withNullPrivateKey()
201 KeyAgreement keyAgreement = getKeyAgreement(provider); in testInit_withUnsupportedPrivateKeyType() local
203 keyAgreement.init(KAT_PUBLIC_KEY1); in testInit_withUnsupportedPrivateKeyType()
238 KeyAgreement keyAgreement = getKeyAgreement(provider); in testDoPhaseReturnsNull() local
239 keyAgreement.init(KAT_PRIVATE_KEY1); in testDoPhaseReturnsNull()
240 assertNull(keyAgreement.doPhase(KAT_PUBLIC_KEY2, true)); in testDoPhaseReturnsNull()
249 KeyAgreement keyAgreement = getKeyAgreement(provider); in testDoPhase_withPhaseWhichIsNotLast() local
250 keyAgreement.init(KAT_PRIVATE_KEY1); in testDoPhase_withPhaseWhichIsNotLast()
252 keyAgreement.doPhase(KAT_PUBLIC_KEY2, false); in testDoPhase_withPhaseWhichIsNotLast()
[all …]
DCipherTest.java1650 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement, false, true, false, true); in testCipherInitWithCertificate()
1662 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement | KeyUsage.encipherOnly, in testCipherInitWithCertificate()
1664 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement | KeyUsage.decipherOnly, in testCipherInitWithCertificate()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java186 KeyAgreement keyAgreement = getKeyAgreement(provider); in testInit_withNullPrivateKey() local
188 keyAgreement.init(null); in testInit_withNullPrivateKey()
199 KeyAgreement keyAgreement = getKeyAgreement(provider); in testInit_withUnsupportedPrivateKeyType() local
201 keyAgreement.init(KAT_PUBLIC_KEY1); in testInit_withUnsupportedPrivateKeyType()
236 KeyAgreement keyAgreement = getKeyAgreement(provider); in testDoPhaseReturnsNull() local
237 keyAgreement.init(KAT_PRIVATE_KEY1); in testDoPhaseReturnsNull()
238 assertNull(keyAgreement.doPhase(KAT_PUBLIC_KEY2, true)); in testDoPhaseReturnsNull()
247 KeyAgreement keyAgreement = getKeyAgreement(provider); in testDoPhase_withPhaseWhichIsNotLast() local
248 keyAgreement.init(KAT_PRIVATE_KEY1); in testDoPhase_withPhaseWhichIsNotLast()
250 keyAgreement.doPhase(KAT_PUBLIC_KEY2, false); in testDoPhase_withPhaseWhichIsNotLast()
[all …]
DCipherTest.java1646 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement, false, true, false, true); in testCipherInitWithCertificate()
1658 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement | KeyUsage.encipherOnly, in testCipherInitWithCertificate()
1660 assertCipherInitWithKeyUsage(KeyUsage.keyAgreement | KeyUsage.decipherOnly, in testCipherInitWithCertificate()
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/
DAlgorithmParameterKeyAgreementHelper.java40 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName); in test() local
41 keyAgreement.init(keyPair.getPrivate()); in test()
42 keyAgreement.doPhase(keyPair.getPublic(), true); in test()
43 assertNotNull("generated secret is null", keyAgreement.generateSecret()); in test()
DKeyAgreementHelper.java39 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName); in test() local
40 keyAgreement.init(encryptKey); in test()
41 keyAgreement.doPhase(decryptKey, true); in test()
42 assertNotNull("generated secret is null", keyAgreement.generateSecret()); in test()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/
DKeyAgreementHelper.java43 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName); in test() local
44 keyAgreement.init(encryptKey); in test()
45 keyAgreement.doPhase(decryptKey, true); in test()
46 assertNotNull("generated secret is null", keyAgreement.generateSecret()); in test()
DAlgorithmParameterKeyAgreementHelper.java44 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName); in test() local
45 keyAgreement.init(keyPair.getPrivate()); in test()
46 keyAgreement.doPhase(keyPair.getPublic(), true); in test()
47 assertNotNull("generated secret is null", keyAgreement.generateSecret()); in test()
/external/boringssl/src/ssl/test/runner/
Dcipher_suites.go25 type keyAgreement interface { interface
84 ka func(version uint16) keyAgreement
377 func rsaKA(version uint16) keyAgreement {
381 func ecdheECDSAKA(version uint16) keyAgreement {
390 func ecdheRSAKA(version uint16) keyAgreement {
399 func pskKA(version uint16) keyAgreement {
405 func ecdhePSKKA(version uint16) keyAgreement {
Dhandshake_client.go1332 keyAgreement := hs.suite.ka(c.vers)
1337 …err = keyAgreement.processServerKeyExchange(c.config, hs.hello, hs.serverHello, hs.peerPublicKey, …
1342 if ecdhe, ok := keyAgreement.(*ecdheKeyAgreement); ok {
1346 c.peerSignatureAlgorithm = keyAgreement.peerSignatureAlgorithm()
1404 preMasterSecret, ckx, err := keyAgreement.generateClientKeyExchange(c.config, hs.hello, leaf)
Dhandshake_server.go1721 keyAgreement := hs.suite.ka(c.vers)
1722 …skx, err := keyAgreement.generateServerKeyExchange(config, hs.cert, hs.clientHello, hs.hello, c.ve…
1727 if ecdhe, ok := keyAgreement.(*ecdheKeyAgreement); ok {
1848 preMasterSecret, err := keyAgreement.processClientKeyExchange(config, hs.cert, ckx, c.vers)
Dkey_agreement.go757 base keyAgreement
/external/curl/tests/certs/
DServer-localhost-sv.prm4 keyUsage = keyEncipherment,digitalSignature,keyAgreement
DServer-localhost.nn-sv.prm4 keyUsage = keyEncipherment,digitalSignature,keyAgreement
DServer-localhost0h-sv.prm5 keyUsage = keyEncipherment,digitalSignature,keyAgreement
DServer-localhost-sv.pem4 keyUsage = keyEncipherment,digitalSignature,keyAgreement
DServer-localhost0h-sv.pem5 keyUsage = keyEncipherment,digitalSignature,keyAgreement
DServer-localhost.nn-sv.pem4 keyUsage = keyEncipherment,digitalSignature,keyAgreement
DServer-localhost-firstSAN-sv.pem4 keyUsage = keyEncipherment,digitalSignature,keyAgreement
DServer-localhost-lastSAN-sv.pem4 keyUsage = keyEncipherment,digitalSignature,keyAgreement
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
DKeyUsage.java31 public static final int keyAgreement = (1 << 3); field in KeyUsage
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x509/
DKeyUsage.java33 public static final int keyAgreement = (1 << 3); field in KeyUsage
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/x509/
DKeyUsage.java33 public static final int keyAgreement = (1 << 3); field in KeyUsage
/external/ms-tpm-20-ref/TPMCmd/tpm/src/X509/
DX509_spt.c205 badRestricted = IS_ATTRIBUTE(keyUsage.x509, TPMA_X509_KEY_USAGE, keyAgreement) in X509ProcessExtensions()
/external/pdfium/xfa/fxfa/parser/
Dattributes.inc195 ATTR____(0x98fd4d81u, "keyAgreement", KeyAgreement, Basic)

12