Skip to content

Import Generic Key #2954

@embetrix

Description

@embetrix

What is the proper way to import Generic key That want to use with HMAC Sign/Verify ?

I tried this :

$ dd if=/dev/urandom bs=1 count=32 of=generic_key.bin
$ pkcs11-tool --pin $PIN --module $PKCS11_MODULE_PATH  --login --write-object generic_key.bin  --type secrkey --key-type GENERIC:32  --id 112A --label generic32
Using slot 0 with a present token (0x4f8cb215)
error: Unknown key type: 0x10
Aborting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions