Home | History | Annotate | Download | only in crypto

Lines Matching refs:pki

54   PrivateKeyInfoCodec pki(false);  // Little-Endian
55 pki.Import(input);
59 pki.modulus()->size() +
60 pki.prime1()->size() +
61 pki.prime2()->size() +
62 pki.exponent1()->size() +
63 pki.exponent2()->size() +
64 pki.coefficient()->size() +
65 pki.private_exponent()->size();
78 rsa_pub_key->bitlen = pki.modulus()->size() * 8;
80 for (size_t i = pki.public_exponent()->size(); i > 0; --i) {
82 public_exponent_int |= (*pki.public_exponent())[i - 1];
87 memcpy(dest, &pki.modulus()->front(), pki.modulus()->size());
88 dest += pki.modulus()->size();
89 memcpy(dest, &pki.prime1()->front(), pki.prime1()->size());
90 dest += pki.prime1()->size();
91 memcpy(dest, &pki.prime2()->front(), pki.prime2()->size());
92 dest += pki.prime2()->size();
93 memcpy(dest, &pki.exponent1()->front(), pki.exponent1()->size());
94 dest += pki.exponent1()->size();
95 memcpy(dest, &pki.exponent2()->front(), pki.exponent2()->size());
96 dest += pki.exponent2()->size();
97 memcpy(dest, &pki.coefficient()->front(), pki.coefficient()->size());
98 dest += pki.coefficient()->size();
99 memcpy(dest, &pki.private_exponent()->front(),
100 pki.private_exponent()->size());
101 dest += pki.private_exponent()->size();
159 PrivateKeyInfoCodec pki(false); // Little-Endian
161 pki.modulus()->assign(pos, pos + mod_size);
164 pki.prime1()->assign(pos, pos + primes_size);
166 pki.prime2()->assign(pos, pos + primes_size);
169 pki.exponent1()->assign(pos, pos + primes_size);
171 pki.exponent2()->assign(pos, pos + primes_size);
174 pki.coefficient()->assign(pos, pos + primes_size);
177 pki.private_exponent()->assign(pos, pos + mod_size);
180 pki.public_exponent()->assign(reinterpret_cast<uint8*>(&rsa_pub_key->pubexp),
185 return pki.Export(output);