Chromium Code Reviews| Index: crypto/rsa_private_key.h |
| diff --git a/crypto/rsa_private_key.h b/crypto/rsa_private_key.h |
| index 4453845773454396985f74c410a599eaf024a268..3c55da1fde4f034bbe5f8558aba37eedd0e2bb6e 100644 |
| --- a/crypto/rsa_private_key.h |
| +++ b/crypto/rsa_private_key.h |
| @@ -206,6 +206,16 @@ class CRYPTO_EXPORT RSAPrivateKey { |
| // created in the key database. |
| static RSAPrivateKey* FindFromPublicKeyInfo( |
| const std::vector<uint8>& input); |
| + |
| + // Import an existing public key, and then search for the private |
| + // half in a |slot|. The format of the public key blob is is |
|
wtc
2014/05/16 15:06:36
1. Nit: either just "in |slot|", or "in the slot s
ygorshenin1
2014/05/19 09:43:50
Done.
|
| + // an X509 SubjectPublicKeyInfo block. This can return NULL if |
| + // initialization fails or the private key cannot be found. The |
| + // caller takes ownership of the returned object, but nothing new is |
| + // created in the key database. |
|
wtc
2014/05/16 15:06:36
Nit: the key database => |slot|
ygorshenin1
2014/05/19 09:43:50
Done.
|
| + static RSAPrivateKey* FindFromPublicKeyInfoInSlot( |
| + const std::vector<uint8>& input, |
| + PK11SlotInfo* slot); |
| #endif |
| #if defined(USE_OPENSSL) |