Lines Matching refs:key2
876 const XORKEY *key2 = keydata2; in xor_match() local
879 if (key1->tls_name != NULL && key2->tls_name != NULL) in xor_match()
880 ok = ok & (strcmp(key1->tls_name, key2->tls_name) == 0); in xor_match()
884 if (key2->hasprivkey) in xor_match()
885 ok = ok & (CRYPTO_memcmp(key1->privkey, key2->privkey, in xor_match()
888 ok = ok & xor_recreate(key1->privkey, key2->pubkey); in xor_match()
890 if (key2->hasprivkey) in xor_match()
891 ok = ok & xor_recreate(key2->privkey, key1->pubkey); in xor_match()
899 if (key2->haspubkey) in xor_match()
900 ok = ok & (CRYPTO_memcmp(key1->pubkey, key2->pubkey, XOR_KEY_SIZE) == 0); in xor_match()
902 ok = ok & xor_recreate(key1->pubkey, key2->privkey); in xor_match()
904 if (key2->haspubkey) in xor_match()
905 ok = ok & xor_recreate(key2->pubkey, key1->privkey); in xor_match()