rust/pv_core: Remove unnecessary mirrored constants

They add no value and code outside the crate does not need those constants.
Reduces unnecessary constant duplication. Introduce an error for to
large Add-Secret requests and check for this to render those contsnts
fully unnecessary for the API.

Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Julian Ruess <julianr@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Steffen Eiden
2024-02-20 12:06:40 +01:00
committed by Jan Höppner
parent 9eab43994b
commit a2e556858a
4 changed files with 19 additions and 26 deletions

View File

@@ -44,6 +44,9 @@ pub enum Error {
#[error("Input does not contain an add-secret request")]
NoAsrcb,
#[error("Input add-secret request is larger than 8k")]
AscrbLarge,
#[error("Input contains unsupported user-data type: {0:#06x}")]
UnsupportedUserData(u16),