Home | History | Annotate | Download | only in shims

Lines Matching refs:rsa

32 #include <openssl/rsa.h>
65 // set *|rsa_ptr| to an RSA object which should be freed in the caller.
70 RSA** rsa_ptr,
80 RSA* rsa = *rsa_ptr;
81 if (!rsa) {
86 vector<unsigned char> rsa_output(RSA_size(rsa));
94 rsa,
121 RSA* rsa = NULL;
124 message.public_key(), message.data(), &rsa, &encrypted_output);
125 if (rsa) {
126 RSA_free(rsa);
127 rsa = NULL;
162 RSA** rsa_ptr,
176 RSA* rsa = *rsa_ptr;
179 if (!rsa || !pkey) {
184 rsa->e = BN_new();
185 rsa->n = BN_new();
186 if (!rsa->e || !rsa->n ||
187 !BN_set_word(rsa->e, RSA_F4) ||
188 !BN_hex2bn(&rsa->n, kTrustedCAModulus)) {
193 if (!EVP_PKEY_assign_RSA(pkey, rsa)) {
194 LOG(ERROR) << "Failed to assign RSA to PKEY.";
259 RSA* cert_rsa = EVP_PKEY_get1_RSA(cert_pubkey);
261 LOG(ERROR) << "Failed to extract RSA key from certificate.";
316 RSA* rsa = NULL;
322 &rsa, &pkey, &raw_certificate_bio, &x509);
335 if (rsa) {
336 RSA_free(rsa);
337 rsa = NULL;