opensc/src/tests/regression
Andreas Jellinghaus 9fed9591ca Fix regression test crypt0007: it deals with 1024 bit keys (not 1048).
Signed-off-by: Andreas Jellinghaus <andreas@ionisiert.de>
2015-07-26 21:35:29 +02:00
..
Makefile.am Use check target for tests 2011-04-12 21:58:04 +00:00
README remove "split-key" option and emulat sign for sign,decrypt keys with padding 2010-03-13 22:52:51 +00:00
bintest add test for decrypting binary data of key size. 2007-07-11 09:10:57 +00:00
crypt0001 - specify user pin when erasing card 2003-05-28 13:36:55 +00:00
crypt0002 - specify user pin when erasing card 2003-05-28 13:36:55 +00:00
crypt0003 - specify user pin when erasing card 2003-05-28 13:36:55 +00:00
crypt0004 - specify user pin when erasing card 2003-05-28 13:36:55 +00:00
crypt0005 conditionally check 2048 bit rsa key ops 2007-01-19 21:10:24 +00:00
crypt0006 conditionally check 2048 bit rsa key ops 2007-01-19 21:10:24 +00:00
crypt0007 Fix regression test crypt0007: it deals with 1024 bit keys (not 1048). 2015-07-26 21:35:29 +02:00
erase - added 2003-05-28 18:05:18 +00:00
functions Fix regression test suite: rename parameters to new names. 2015-07-26 21:34:51 +02:00
init0001 remove "split-key" option and emulat sign for sign,decrypt keys with padding 2010-03-13 22:52:51 +00:00
init0002 remove "split-key" option and emulat sign for sign,decrypt keys with padding 2010-03-13 22:52:51 +00:00
init0003 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0004 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0005 remove "split-key" option and emulat sign for sign,decrypt keys with padding 2010-03-13 22:52:51 +00:00
init0006 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0007 remove "split-key" option and emulat sign for sign,decrypt keys with padding 2010-03-13 22:52:51 +00:00
init0008 remove "split-key" option and emulat sign for sign,decrypt keys with padding 2010-03-13 22:52:51 +00:00
init0009 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0010 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0011 - erase card using --secret 2003-05-23 10:10:45 +00:00
init0012 remove "split-key" option and emulat sign for sign,decrypt keys with padding 2010-03-13 22:52:51 +00:00
pin0001 - updated/added tests 2003-10-13 16:13:38 +00:00
pin0002 - updated/added tests 2003-10-13 16:13:38 +00:00
run-all - updated/added tests 2003-10-13 16:13:38 +00:00
test.p12 undo last change: converting a binary file to utf-8 isn't really a good idea ;-) 2007-01-09 21:16:52 +00:00

README


This directory contains regression test scripts.  Note this is still
work in progress, hopefully we will add more scripts by and by.

Run the test scripts from this directory. You need to have
OpenSC fully built in order for them to do anything useful.

All test scripts accept the following set of arguments

 --use-default-transport-keys
	if your card requires a transport key in pkcs15-init (for
	instance, the GPK and Cryptoflex do), and the default transport
	key as determined by OpenSC works fine.  [If it doesn't please
	get in contact with us!]

 --reader N
 	Use the specified reader


 *** ATTENTION ***

Some cards require that you present one or several PINs when erasing
them. That is because these cards to not support a native mechanism
for erasing the card. In this case, OpenSC will perform a recursive
removal of files, pretty much like a "rm -rf" in Unix.

As some of these files are PIN protected against deletion, we have
to present the PIN before being allowed to do so. For this reason,
the tests may ask you for various PINs.

When asking for the SO PIN, the prompt will always refer to the
"Security Officer PIN". Any other prompts (Test User PIN, etc)
refer to the user PIN.

All tests use the same PINs:

	999999		as the SO PIN, if one is used
	888888		as the SO PUK, if one is used
	0000		as the user PIN, if one is used
	111111		as the user PUK, if one is used

Some tests will install more than one user PIN, but they will
all have the same value.