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

CKA_MODIFIABLE must be true to Unwrap AES Key #707

Open
reznik99 opened this issue Apr 19, 2023 · 0 comments · May be fixed by #728
Open

CKA_MODIFIABLE must be true to Unwrap AES Key #707

reznik99 opened this issue Apr 19, 2023 · 0 comments · May be fixed by #728

Comments

@reznik99
Copy link

When unwrapping an AES-256 Key into a SoftHSM2 partition using RSA-OAEP SHA-1 the following error is thrown:

An object is with CKA_MODIFIABLE set to false is not modifiable

Setting CKA_MODIFIABLE to True in the unwrapping template, resolves the issue.

But unwrapping a key creates a new object, it doesn't modify the object, why is this error being thrown, and is this expected?

I would like my Injected keys to not be modifiable.

Unwrapping Template:

CKA_SENSITIVE=true
CKA_TOKEN=true
CKA_PRIVATE=true
CKA_ENCRYPT=true
CKA_EXTRACTABLE=true
CKA_MODIFIABLE=false

Thanks,
Frank

antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Oct 27, 2023
…ify attributes when CKA_MODIFIABLE is true
@antoinelochet antoinelochet linked a pull request Oct 27, 2023 that will close this issue
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Oct 31, 2023
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Nov 29, 2024
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Nov 29, 2024
…ify attributes when CKA_MODIFIABLE is true
@jschlyter jschlyter linked a pull request Nov 29, 2024 that will close this issue
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Nov 29, 2024
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Nov 29, 2024
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Nov 29, 2024
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Dec 3, 2024
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Dec 3, 2024
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Dec 16, 2024
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Dec 16, 2024
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Jan 2, 2025
…ify attributes when CKA_MODIFIABLE is true
antoinelochet pushed a commit to antoinelochet/SoftHSMv2 that referenced this issue Jan 30, 2025
…ify attributes when CKA_MODIFIABLE is true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant