diff options
Diffstat (limited to 'doc/manual')
-rw-r--r-- | doc/manual/fpe.rst | 2 | ||||
-rw-r--r-- | doc/manual/passhash.rst | 4 | ||||
-rw-r--r-- | doc/manual/pubkey.rst | 19 | ||||
-rw-r--r-- | doc/manual/x509.rst | 12 |
4 files changed, 1 insertions, 36 deletions
diff --git a/doc/manual/fpe.rst b/doc/manual/fpe.rst index 3eed7f4ce..0de603217 100644 --- a/doc/manual/fpe.rst +++ b/doc/manual/fpe.rst @@ -53,4 +53,4 @@ This example encrypts a credit card number with a valid `Luhn checksum <http://en.wikipedia.org/wiki/Luhn_algorithm>`_ to another number with the same format, including a correct checksum. -.. literalinclude:: ../../src/cli/fpe.cpp +.. literalinclude:: ../../src/cli/cc_enc.cpp diff --git a/doc/manual/passhash.rst b/doc/manual/passhash.rst index 6d4dd22a0..417e58265 100644 --- a/doc/manual/passhash.rst +++ b/doc/manual/passhash.rst @@ -94,10 +94,6 @@ outputs that look like this:: password is the same as the one that was used to generate the bcrypt hash. -Here is an example of using bcrypt: - -.. literalinclude:: ../../src/cli/bcrypt.cpp - .. _passhash9: Passhash9 diff --git a/doc/manual/pubkey.rst b/doc/manual/pubkey.rst index dc8645404..fdce35853 100644 --- a/doc/manual/pubkey.rst +++ b/doc/manual/pubkey.rst @@ -83,17 +83,6 @@ ECDH, or GOST 34.10-2001 private key with .. cpp:function:: GOST_3410_PrivateKey::GOST_3410_PrivateKey(RandomNumberGenerator& rng, \ const EC_Group& domain, const BigInt& x = 0) - -Generating RSA keys -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -This example will generate an RSA key of a specified bitlength, and put it -into a pair of key files. One is the public key in X.509 format (PEM encoded), -the private key is in PKCS #8 format (also PEM encoded), either encrypted or -unencrypted depending on if a password was given. - -.. literalinclude:: ../../src/cli/keygen.cpp - .. _serializing_private_keys: Serializing Private Keys Using PKCS #8 @@ -478,14 +467,6 @@ Signatures are verified using on *msg* and then calling :cpp:func:`PK_Verifier::check_signature` on *sig*. -Here is an example of DSA signature generation - -.. literalinclude:: ../../src/cli/dsa_sign.cpp - -Here is an example that verifies DSA signatures - -.. literalinclude:: ../../src/cli/dsa_ver.cpp - Key Agreement --------------------------------- diff --git a/doc/manual/x509.rst b/doc/manual/x509.rst index 25f4a375d..901eee09c 100644 --- a/doc/manual/x509.rst +++ b/doc/manual/x509.rst @@ -346,10 +346,6 @@ new certificate: .. cpp:function:: X509_Certificate \ X509_CA::sign_request(const PKCS10_Request& req) const -Here's an example: - -.. literalinclude ../../src/cli/ca.cpp - Generating CRLs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -413,10 +409,6 @@ protocols. The library provides a utility function for this: that will be used in creating the certificate (this structure, and its use, is discussed below). -An example: - -.. literalinclude:: ../../src/cli/self_sig.cpp - Creating PKCS #10 Requests ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -432,10 +424,6 @@ This function acts quite similarly to transmit it to a CA, who signs it and returns a freshly minted X.509 certificate. -An example: - -.. literalinclude:: ../../src/cli/pkcs10.cpp - Certificate Options ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |