Skip to content

Instantly share code, notes, and snippets.

@alex-nitrokey
Created September 10, 2018 09:45
Show Gist options
  • Save alex-nitrokey/8cffefb4ad161dfed0fa2cb79363a5c5 to your computer and use it in GitHub Desktop.
Save alex-nitrokey/8cffefb4ad161dfed0fa2cb79363a5c5 to your computer and use it in GitHub Desktop.
Failed pkcs11-tool tests for devices <OpenPGP Card v3.3
$ pkcs11-tool --login --test
Using slot 0 with a present token (0x0)
Logging in to "User PIN (OpenPGP card)".
Please enter User PIN:
C_SeedRandom() and C_GenerateRandom():
seeding (C_SeedRandom) not supported
seems to be OK
Digests:
all 4 digest functions seem to work
MD5: OK
SHA-1: OK
RIPEMD160: OK
Signatures (currently only for RSA)
testing key 0 (Encryption key) -- can't be used for signature, skipping
testing key 1 (Authentication key)
all 4 signature functions seem to work
testing signature mechanisms:
RSA-PKCS: OK
SHA1-RSA-PKCS: OK
MD5-RSA-PKCS: OK
RIPEMD160-RSA-PKCS: OK
SHA256-RSA-PKCS: OK
testing key 1 (2048 bits, label=Authentication key) with 1 signature mechanism
RSA-PKCS: OK
Verify (currently only for RSA)
testing key 0 (Encryption key) -- can't be used to sign/verify, skipping
testing key 1 (Authentication key) with 1 mechanism
RSA-PKCS: OK
Unwrap: not implemented
Decryption (currently only for RSA)
testing key 0 (Encryption key)
RSA-PKCS: OK
testing key 1 (Authentication key)
error: PKCS11 function C_Decrypt failed: rv = CKR_FUNCTION_FAILED (0x6)
Aborting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment