aboutsummaryrefslogtreecommitdiffstats
path: root/doc/manual/cli.rst
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-11-19 13:11:17 -0500
committerJack Lloyd <[email protected]>2017-11-26 11:34:12 -0500
commit9df1c8dab0c3b7218cbf40d743d73e9bd36c24cd (patch)
tree137e9107e7ca8b024ef5c36ce847b9cb75f1d3e9 /doc/manual/cli.rst
parentfa5254e8982644b6b69d617b5fa2755a236cf028 (diff)
PSK Database
Diffstat (limited to 'doc/manual/cli.rst')
-rw-r--r--doc/manual/cli.rst36
1 files changed, 32 insertions, 4 deletions
diff --git a/doc/manual/cli.rst b/doc/manual/cli.rst
index 71e3b17c6..72e3d3b31 100644
--- a/doc/manual/cli.rst
+++ b/doc/manual/cli.rst
@@ -14,15 +14,16 @@ The CLI offers access to the following functionalities:
- TLS server/client
- Primality testing, prime factorization and prime sampling
+.. highlight:: sh
+
General Command Usage
---------------------------------
-All commands follow the predefined syntax
-
-.. code-block:: sh
+All commands follow the predefined syntax::
$ botan <command> <command-options>
-and are listed whith their available arguments when botan is called with an invalid or without a command.
+and are listed with their available arguments when ``botan`` is called
+with an unknown command, or without any command, or with ``--help``.
Hash
----------------
@@ -128,6 +129,33 @@ Number Theory
``gen_prime --count=1 bits``
Samples *count* primes with a length of *bits* bits.
+PSK Database
+--------------------
+
+Only available if sqlite3 support was compiled in.
+
+``psk_set db db_key name psk``
+
+ Using the PSK database named db and encrypting under the (hex) key ``db_key``,
+ save the provided psk (also hex) under ``name``::
+
+ $ botan psk_set psk.db deadba55 bunny f00fee
+
+``psk_get db db_key name``
+
+ Get back a value saved with ``psk_set``::
+
+ $ botan psk_get psk.db deadba55 bunny
+ f00fee
+
+``psk_list db db_key``
+
+ List all values saved to the database under the given key::
+
+ $ botan psk_list psk.db deadba55
+ bunny
+
+
Miscellaneous Commands
-------------------------------------
``version --full``