From 4781a3304a43d71d32df076eb05d0d056e7881e7 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 9 Sep 2015 19:58:45 -0400 Subject: [PATCH] Make the docs say that load_pub/save_pub methods take DER bytes --- openssl/src/crypto/pkey.rs | 4 ++-- 1 file 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 { 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);