opensc/doc/tools
Christoph Müllner c77cb511d9 pkcs11-tool: Add feature to get random data. (#995)
* pkcs11-tool: Add feature to get random data.

Getting random data is an essential part of the PKCS11 API.
This patch provides a new command line parameter to get
random data from the pkcs11-tool.

Tested with a Yubikey (PIV applet) and the following command line:

$ pkcs11-tool --slot=0 --generate-random=128 | hexdump -C
  00000000  0c 35 85 2e 85 68 ab ce  e8 56 b3 f6 f3 33 e6 37  |.5...h...V...3.7|
  00000010  12 10 eb fd 8a 1e 75 b7  3f 4d fa 61 8f ab d8 bf  |......u.?M.a....|
  00000020  f7 2c 7d ba 07 a5 45 6e  a7 85 1c 47 3b 46 01 2c  |.,}...En...G;F.,|
  00000030  79 18 6e 51 4d c4 ae 20  37 37 1d 7b 7e b0 d5 18  |y.nQM.. 77.{~...|
  00000040  ef a4 3c 09 91 68 db dd  2a a8 fc b9 34 06 2a ee  |..<..h..*...4.*.|
  00000050  5a 86 55 54 11 1f ef 4e  07 73 79 27 0a e4 58 cf  |Z.UT...N.sy'..X.|
  00000060  f4 bd bc 2f ad 27 b1 a7  a4 fa c7 1a 7b 31 de a3  |.../.'......{1..|
  00000070  e8 dc 85 28 18 82 00 45  3c f8 eb 48 a4 20 e4 3b  |...(...E<..H. .;|
  00000080

Signed-off-by: Christoph Müllner <christophm30@gmail.com>

* pkcs11-tool: Add documenation for --generate-random.

Signed-off-by: Christoph Müllner <christophm30@gmail.com>
2017-03-27 10:52:38 +02:00
..
Makefile.am Relax XML parsing regexes for bash_completion 2016-06-09 14:34:31 -07:00
cardos-tool.1.xml cardos-tool.1.xml: sort options alphabetically 2011-08-21 13:47:48 +02:00
completion-template generate bash completion scripts from XML doc files 2014-10-01 20:53:30 -04:00
cryptoflex-tool.1.xml cryptoflex-tool.1.xml: sort options alphabetically 2011-08-21 13:47:48 +02:00
dnie-tool.1.xml Updated dnie-tool.1.xml for consistency 2015-03-11 18:22:56 +01:00
eidenv.1.xml Fix eidenv manual page: -n is actually -p 2013-05-08 15:22:33 +03:00
gids-tool.1.xml Manual page for gids-tool 2016-05-16 11:00:40 +02:00
iasecc-tool.1.xml ias-ecc: add tool with IAS/ECC specific query operations 2012-06-01 16:58:39 +02:00
netkey-tool.1.xml netkey-tool.1.xml: sort options & commands alphabetically 2011-08-21 13:47:48 +02:00
openpgp-tool.1.xml tools: Add util_get_pin helper function 2014-11-04 21:54:41 +01:00
opensc-explorer.1.xml opensc-explorer: added command find_tags 2015-07-30 11:29:14 +02:00
opensc-tool.1.xml tools: print package revision 2016-03-04 14:16:06 +01:00
piv-tool.1.xml piv: fix typos in usage & man page 2015-10-15 12:51:19 +02:00
pkcs11-tool.1.xml pkcs11-tool: Add feature to get random data. (#995) 2017-03-27 10:52:38 +02:00
pkcs15-crypt.1.xml tools: print OpenSC package version 2016-03-28 20:41:19 +02:00
pkcs15-init.1.xml pkcs15-init,pkcs15-tool: reword --no-prompt to --use-pinpad (close #944) (#957) 2017-02-03 17:01:52 +01:00
pkcs15-profile.5.xml doc/tools/*.xml: include manpage sections in file names 2011-08-20 16:54:35 +02:00
pkcs15-tool.1.xml pkcs15-init,pkcs15-tool: reword --no-prompt to --use-pinpad (close #944) (#957) 2017-02-03 17:01:52 +01:00
sc-hsm-tool.1.xml use util_get_pin in tools 2014-11-04 22:07:07 +01:00
tools.xml ias-ecc: add tool with IAS/ECC specific query operations 2012-06-01 16:58:39 +02:00
westcos-tool.1.xml use util_get_pin in tools 2014-11-04 22:07:07 +01:00