diff --git a/pkcs11/util_pkcs11.c b/pkcs11/util_pkcs11.c index 6f534051a..f4174662d 100644 --- a/pkcs11/util_pkcs11.c +++ b/pkcs11/util_pkcs11.c @@ -2223,7 +2223,6 @@ CK_RV apply_sign_mechanism_update(yubihsm_pkcs11_op_info *op_info, break; case CKM_ECDSA: - case CKM_EDDSA: if (op_info->buffer_length + in_len > 128) { // NOTE(adma): Specs say ECDSA only supports data up to 1024 bit return CKR_DATA_LEN_RANGE; @@ -2238,6 +2237,7 @@ CK_RV apply_sign_mechanism_update(yubihsm_pkcs11_op_info *op_info, case CKM_SHA256_HMAC: case CKM_SHA384_HMAC: case CKM_SHA512_HMAC: + case CKM_EDDSA: if (op_info->buffer_length + in_len > sizeof(op_info->buffer)) { return CKR_DATA_LEN_RANGE; }