aboutsummaryrefslogtreecommitdiffstats
path: root/doc/tutorial.tex
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-10-13 11:07:08 +0000
committerlloyd <[email protected]>2009-10-13 11:07:08 +0000
commit8f95a003ad84d28132c1753243a074fd22d2463c (patch)
tree420428cbad4bac6f2d292b95a86cb3ae3322213c /doc/tutorial.tex
parent87e25c7e270a52fda8c39296be01918bb6aa75d6 (diff)
Document rng& argument to PKCS8::load_key
Diffstat (limited to 'doc/tutorial.tex')
-rw-r--r--doc/tutorial.tex4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/tutorial.tex b/doc/tutorial.tex
index 244461994..9229cb853 100644
--- a/doc/tutorial.tex
+++ b/doc/tutorial.tex
@@ -626,9 +626,11 @@ This is very similar to reading raw public keys, with the difference that the
key may be encrypted with a user passphrase:
\begin{verbatim}
+ // rng is a RandomNumberGenerator, like AutoSeeded_RNG
+
DataSource_Stream somefile("somefile");
std::string a_passphrase = /* get from the user */
- PKCS8_PrivateKey* key = PKCS8::load_key(somefile, a_passphrase);
+ PKCS8_PrivateKey* key = PKCS8::load_key(somefile, rng, a_passphrase);
\end{verbatim}
You can, by the way, convert a \type{PKCS8\_PrivateKey} to a