diff options
| author | Steven Fackler <[email protected]> | 2015-09-09 17:26:04 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-09-09 17:26:04 -0700 |
| commit | d74db991cec8a810accc2314783a2ba13d48985a (patch) | |
| tree | 46c7b1936ea983f33052f230cb3b404a377bef30 /openssl/src | |
| parent | Merge pull request #265 from alexcrichton/swap-order (diff) | |
| parent | Make the docs say that load_pub/save_pub methods take DER bytes (diff) | |
| download | rust-openssl-d74db991cec8a810accc2314783a2ba13d48985a.tar.xz rust-openssl-d74db991cec8a810accc2314783a2ba13d48985a.zip | |
Merge pull request #268 from alex/patch-1
Make the docs say that load_pub/save_pub methods take DER bytes
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/crypto/pkey.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/crypto/pkey.rs b/openssl/src/crypto/pkey.rs index 48308381..010ffd8f 100644 --- a/openssl/src/crypto/pkey.rs +++ b/openssl/src/crypto/pkey.rs @@ -138,14 +138,14 @@ impl PKey { } /** - * Returns a serialized form of the public key, suitable for load_pub(). + * Returns a DER serialized form of the public key, suitable for load_pub(). */ pub fn save_pub(&self) -> Vec<u8> { self._tostr(ffi::i2d_RSA_PUBKEY) } /** - * Loads a serialized form of the public key, as produced by save_pub(). + * Loads a DER serialized form of the public key, as produced by save_pub(). */ pub fn load_pub(&mut self, s: &[u8]) { self._fromstr(s, ffi::d2i_RSA_PUBKEY); |