usage problem? regression tests fail

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

usage problem? regression tests fail

Andreas Jellinghaus-2
might be also an gcc 4.0.1 issue, not sure.
but as far as I remember we had changes in the key usage related code?
in that case it could be an issue as well.

current svn, here is the log.

Andreas

:::
::: Testing on-card decryption facilities
:::
:::
::: Testing pkcs15-init
:::
::: The PINs used by this test script (if applicable) are
:::   Test SO PIN       999999
:::   Test User PIN     0000
:::
::: Initializing card (--no-so-pin)
:::::: run_check_status ../../tools/pkcs15-init -T -C --label OpenSC Test Card
--serial DEADBEEF --no-so-pin
::: SUCCESS
::: Setting user PIN (-a 01)
:::::: run_check_status ../../tools/pkcs15-init -T -P --label Test User PIN
--pin 0000 --puk 111111 -a 01
::: SUCCESS
::: Generating key (--id 45 --key-usage decrypt -a 01)
:::::: run_check_status ../../tools/pkcs15-init -T -G rsa/1024 --pin 0000 --id
45 --label Test User Key --id 45 --key-usage decrypt -a 01
::: SUCCESS
::: Extracting public key
:::::: run_check_status ../../tools/pkcs15-tool --read-public-key 45
-o ./test-data/key.pem
::: Encrypting message (pkcs1 padding)
:::::: run_check_status openssl rsautl -pubin -inkey ./test-data/key.pem
-encrypt -in ./test-data/plaintext -out ./test-data/encrypted
:::::: run_check_status ../../tools/pkcs15-crypt --pin 0000 -c --pkcs1
-i ./test-data/encrypted -o ./test-data/decrypted
*** Command failed (status code 2): ../../tools/pkcs15-crypt --pin 0000 -c
--pkcs1 -i ./test-data/encrypted -o ./test-data/decrypted
--- Command output ---
Unable to find any private decryption key: Requested object not found
--- Test files left in ./test-data ---
.
..
encrypted
key.pem
plaintext
test.log
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: usage problem? regression tests fail

Nils Larsch
Andreas Jellinghaus wrote:

> might be also an gcc 4.0.1 issue, not sure.
> but as far as I remember we had changes in the key usage related code?
> in that case it could be an issue as well.
>
> current svn, here is the log.
>
> Andreas
>
> :::
> ::: Testing on-card decryption facilities
> :::
> :::
> ::: Testing pkcs15-init
> :::
> ::: The PINs used by this test script (if applicable) are
> :::   Test SO PIN       999999
> :::   Test User PIN     0000
> :::

which test is this ? As this test aborts after this error, and
hence the card isn't erased: is there a decryption key on the card ?

Cheers,
Nils
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel
Reply | Threaded
Open this post in threaded view
|

Re: usage problem? regression tests fail [u]

Andreas Jellinghaus-2
On Monday 22 August 2005 20:41, Nils Larsch wrote:
> which test is this ? As this test aborts after this error, and
> hence the card isn't erased: is there a decryption key on the card ?

ah, sorry. crypt0002 and crypt0001 was ok, so I'm sure the card is ok
(cryptoflex32k in egate).

Andreas
_______________________________________________
opensc-devel mailing list
[hidden email]
http://www.opensc.org/cgi-bin/mailman/listinfo/opensc-devel