Lines Matching refs:cert_pub_key
233 SECKEYPublicKey *cert_pub_key = NULL;
332 cert_pub_key = CERT_ExtractPublicKey(cert);
333 if (cert_pub_key == NULL) {
339 if (cert_pub_key->keyType != rsaKey) {
342 cert_pub_key->keyType);
350 if (cert_pub_key->u.rsa.publicExponent.data[0] & 0x80) {
355 if (cert_pub_key->u.rsa.modulus.data[0] & 0x80) {
359 + cert_pub_key->u.rsa.modulus.len
360 + cert_pub_key->u.rsa.publicExponent.len
375 htobe32(cert_pub_key->u.rsa.publicExponent.len
380 safealign_memcpy(&buf[c], cert_pub_key->u.rsa.publicExponent.data,
381 cert_pub_key->u.rsa.publicExponent.len, &c);
384 htobe32(cert_pub_key->u.rsa.modulus.len
389 safealign_memcpy(&buf[c], cert_pub_key->u.rsa.modulus.data,
390 cert_pub_key->u.rsa.modulus.len, &c);
401 SECKEY_DestroyPublicKey(cert_pub_key);