File: README

package info (click to toggle)
opencryptoki 3.23.0%2Bdfsg-0.3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,604 kB
  • sloc: ansic: 214,248; sh: 2,759; makefile: 289; yacc: 242; pascal: 152; exp: 126; lex: 93; cpp: 9
file content (62 lines) | stat: -rw-r--r-- 2,129 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
openCryptoki Test Programs

This directory contains programs designed to test the functionality of
openCryptoki and PKCS#11.  The rely on STDLL's installed to the standard system
location.  Many of the programs have command line options for passing the slot
number to use (default is slot 0) as well as other options.  All programs expect
that the a slot has been intialized using pkcsconf.  The expected user pin is
"01234567" and this can also be set using pkcsconf.  The expected PINs can also
be changed by modifying DEFAULT_USER_PIN and DEFAULT_SO_PIN in
include/regress.h.

For correct testcase execution, the token should be initialized before and
after running the testcases.

crypto
------
This directory contains testcases to test various crypto algorithms.

login
-----
This directory contains testcases to test login functionality in pkcs11
and opencryptoki.

pkcs11
------
This directory contains tests that tests various api/functionality in 
pkcs11 specification.

misc_tests
----------
This directory contains tests to test various functionality and operations
in opencryptoki.

build
-----
This directory contains build tests: a failed test is indicated by a build
break.

policy
------
This directory contains policy related tests. Test results are dependent on the
current policy and strength settings.

unit
----
This directory contains unit tests that are run via 'make check'.

ock_test.sh
-----------
This driver runs the various testcases on all tokens currently configured, 
unless the '-s SLOT' option is specified. It initializes the tokens and sets
SO and USER pins, if the tokens are not already initialized. Set environment
variables PKCS11_SO_PIN and PKCS11_USER_PIN to the pins to use.

ciconfig.sh
-----------
This script sets up the openCryptoki tokens for a run in the CI. It creates
an opencryptoki.conf config file together with several token specific config
files. The CI run is started via 'make ci-installcheck'. Do NOT run this outside
of the CI, it may destroy your openCryptoki setup, tokens, and objects!

For help, open an issue at https://github.com/opencryptoki/opencryptoki/issues