Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkcs11-tool: configure AES-CMAC #2915

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

dlegaultbbry
Copy link
Contributor

Fixes #2914

Testing:

# echo -n "0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b" | xxd -r -p - > /data/key.bin
# pkcs11-tool --module=module.so --write-object /data/key.bin --usage-sign --type secrkey --key-type=AES:16 --label cmackey --id 1234
Using slot 0 with a present token (0x0)
Created secret key:
Secret Key Object; AES length 16
  VALUE:      0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b
  label:      cmackey
  ID:         1234
  Usage:      verify
  Access:     none
# echo -n "Hi There" | pkcs11-tool --module=module.so --sign --mechanism AES-CMAC --id 1234 | xxd -p -c 0
Using slot 0 with a present token (0x0)
Using signature algorithm AES-CMAC
...
Checklist
  • PKCS#11 module is tested (tested my own module)

@Jakuje Jakuje added this to In progress in OpenSC 0.24.0 via automation Oct 24, 2023
@Jakuje Jakuje merged commit 8811014 into OpenSC:master Oct 31, 2023
35 of 36 checks passed
OpenSC 0.24.0 automation moved this from In progress to Done Oct 31, 2023
@Jakuje
Copy link
Member

Jakuje commented Oct 31, 2023

Thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Add AES-CMAC support to pkcs11-tool
2 participants