Lines Matching refs:pubkey
300 /* Extract the pubkey from a cert chain, and send it to the tls_handshake context */
305 SecKeyRef pubkey = NULL;
329 require_noerr((err=sslCopyPeerPubKey(certchain, &pubkey)), errOut);
332 algId = SecKeyGetAlgorithmID(pubkey);
334 algId = SecKeyGetAlgorithmId(pubkey);
342 require((modulus = SecKeyCopyModulus(pubkey)), errOut);
343 require((exponent = SecKeyCopyExponent(pubkey)), errOut);
359 tls_named_curve curve = SecECKeyGetNamedCurve(pubkey);
360 require((ecpubdata = SecECKeyCopyPublicBits(pubkey)), errOut);
375 CFReleaseSafe(pubkey);