Lines Matching refs:key1
875 const XORKEY *key1 = keydata1; 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()
883 if (key1->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()
891 ok = ok & xor_recreate(key2->privkey, key1->pubkey); in xor_match()
898 if (key1->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()
905 ok = ok & xor_recreate(key2->pubkey, key1->privkey); in xor_match()