Skip to content

can't export aeskey  #31

@paulmgtech

Description

@paulmgtech

Hi @primetomas ,

I could generate aes key. But can't export/extract it as Key from HSM.
Can you help me to export aes key?

long aeskey = CE.GenerateKey(session, new CKM(CKM.AES_KEY_GEN),
new CKA(CKA.VALUE_LEN, 32),
new CKA(CKA.LABEL, "labelencaes"),
new CKA(CKA.ID, "labelencaes"),
new CKA(CKA.TOKEN, false),
new CKA(CKA.SENSITIVE, false),
new CKA(CKA.ENCRYPT, true),
new CKA(CKA.DECRYPT, true),
new CKA(CKA.DERIVE, true));

Regards
Paul V

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions