# Expected Performance for AES-256-CBC with Nitrokey HSM 2

**URL:** <https://support.nitrokey.com/t/expected-performance-for-aes-256-cbc-with-nitrokey-hsm-2/4731>\
**Category:** HSM\
**Created:** [January 14, 2023, 1:21pm UTC](https://support.nitrokey.com/t/expected-performance-for-aes-256-cbc-with-nitrokey-hsm-2/4731 "2023-01-14T13:21:23Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![saper](https://support.nitrokey.com/user_avatar/support.nitrokey.com/saper/32/493_2.png) [@saper](https://support.nitrokey.com/u/saper)\
**Post date:** [February 10, 2023, 1:13pm UTC](https://support.nitrokey.com/t/expected-performance-for-aes-256-cbc-with-nitrokey-hsm-2/4731/13 "2023-02-10T13:13:03Z")

</div>

Smart-Card HSM 4K 4.0 is a new thing. [Getting SmartCardHSM 4.0? - #2 by daringer](https://support.nitrokey.com/t/getting-smartcardhsm-4-0/3556/2) Probably no new “Nitrokey HSM” under the Nitrokey brand.

On the other hand, there are some initial problems:

> <https://github.com/OpenSC/OpenSC/issues/2421>
>
> \### Problem Description
> 
> Signing with an EC key on secp521r1 fails occasionall…y with CKR\_DATA\_INVALID. This issue only occurs with V4.0 devices.
> 
> \### Proposed Resolution
> 
> Fix sc\_hsm\_decode\_ecdsa\_signature() to correctly separate 512 from 521 bit signatures.
> 
> \### Steps to reproduce
> 
> Generate secp521r1 key
> 
> pkcs11-tool --login --pin 648219 --keypairgen --key-type EC:nistp521 --id a1 --label a1 --usage-sign
> 
> Repeatably run
> 
> echo "111111111111111111111111111111111111111111111111111111112345678" | pkcs11-tool --login --pin 648219 -s -o tmp
> 
> until the error shows up.

---

_[View the full topic](https://support.nitrokey.com/t/expected-performance-for-aes-256-cbc-with-nitrokey-hsm-2/4731)._
