You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TpmFormatZeroError::Initialize => write!(f,"TPM not initialized by TPM2_Startup or already initialized"),
54
-
TpmFormatZeroError::Failure => write!(f,"commands not being accepted because of a TPM failure. NOTE: This may be returned by TPM2_GetTestResult() as the testResultparameter"),
55
-
TpmFormatZeroError::Sequence => write!(f,"improper use of a sequence handle"),
56
-
TpmFormatZeroError::Private => write!(f,"not currently used"),
57
-
TpmFormatZeroError::Hmac => write!(f,"not currently used"),
58
-
TpmFormatZeroError::Disabled => write!(f,"the command is disabled"),
59
-
TpmFormatZeroError::Exclusive => write!(f,"command failed because audit sequence required exclusivity"),
60
-
TpmFormatZeroError::AuthType => write!(f,"authorization handle is not correct for command"),
61
-
TpmFormatZeroError::AuthMissing => write!(f,"command requires an authorization session for handle and it is not present"),
62
-
TpmFormatZeroError::Policy => write!(f,"policy failure in math operation or an invalid authPolicy value"),
TpmFormatZeroError::PcrChanged => write!(f,"PCR have changed since checked"),
65
-
TpmFormatZeroError::Upgrade => write!(f,"for all commands other than TPM2_FieldUpgradeData(), this code indicates that the TPM is in field upgrade mode; for TPM2_FieldUpgradeData(), this code indicates that the TPM is not in field upgrade mode"),
66
-
TpmFormatZeroError::TooManyContexts => write!(f,"context ID counter is at maximum"),
67
-
TpmFormatZeroError::AuthUnavailable => write!(f,"authValue or authPolicy is not available for selected entity"),
68
-
TpmFormatZeroError::Reboot => write!(f,"a _TPM_Init and Startup(CLEAR) is required before the TPM can resume operation"),
69
-
TpmFormatZeroError::Unbalanced => write!(f,"the protection algorithms (hash and symmetric) are not reasonably balanced. The digest size of the hash must be larger than the key size of the symmetric algorithm"),
70
-
TpmFormatZeroError::CommandSize => write!(f,"command commandSizevalue is inconsistent with contents of the command buffer; either the size is not the same as the octets loaded by the hardware interface layer or the value is not large enough to hold a command header"),
71
-
TpmFormatZeroError::CommandCode => write!(f,"command code not supported"),
72
-
TpmFormatZeroError::AuthSize => write!(f,"the value of authorizationSizeis out of range or the number of octets in the Authorization Area is greater than required"),
73
-
TpmFormatZeroError::AuthContext => write!(f,"use of an authorization session with a context command or another command that cannot have an authorization session"),
74
-
TpmFormatZeroError::NvRange => write!(f,"NV offset+size is out of range"),
75
-
TpmFormatZeroError::NvSize => write!(f,"Requested allocation size is larger than allowed"),
TpmFormatZeroError::NvAuthorization => write!(f,"NV access authorization fails in command actions (this failure does not affect lockout.action)"),
78
-
TpmFormatZeroError::NvUninitialized => write!(f,"an NV Index is used before being initialized or the state saved by TPM2_Shutdown(STATE) could not be restored"),
79
-
TpmFormatZeroError::NvSpace => write!(f,"insufficient space for NV allocation"),
80
-
TpmFormatZeroError::NvDefined => write!(f,"NV Index or persistent object already defined"),
81
-
TpmFormatZeroError::BadContext => write!(f,"context in TPM2_ContextLoad() is not valid"),
82
-
TpmFormatZeroError::CpHash => write!(f,"cpHash value already set or not correct for use"),
83
-
TpmFormatZeroError::Parent => write!(f,"handle for parent is not a valid parent"),
84
-
TpmFormatZeroError::NeedsTest => write!(f,"some function needs testing."),
85
-
TpmFormatZeroError::NoResult => write!(f,"returned when an internal function cannot process a request due to an unspecified problem. This code is usually related to invalid parameters that are not properly filtered by the input unmarshaling code."),
86
-
TpmFormatZeroError::Sensitive => write!(f,"the sensitive area did not unmarshal correctly after decryption - this code is used in lieu of the other unmarshaling errors so that an attacker cannot determine where the unmarshaling error occurred"),
61
+
TpmFormatZeroError::Initialize => write!(f,"TPM not initialized by TPM2_Startup or already initialized."),
62
+
TpmFormatZeroError::Failure => write!(f,"Commands not accepted because of a TPM failure."),
63
+
TpmFormatZeroError::Sequence => write!(f,"Improper use of a sequence handle."),
64
+
TpmFormatZeroError::Private => write!(f,"Not currently used."),
65
+
TpmFormatZeroError::Hmac => write!(f,"Not currently used."),
66
+
TpmFormatZeroError::Disabled => write!(f,"The command is disabled."),
67
+
TpmFormatZeroError::Exclusive => write!(f,"Command failed because audit sequence required exclusivity."),
68
+
TpmFormatZeroError::AuthType => write!(f,"Authorization handle is not correct for command."),
69
+
TpmFormatZeroError::AuthMissing => write!(f,"Command requires an authorization session for handle and it is not present."),
70
+
TpmFormatZeroError::Policy => write!(f,"Policy failure in math operation or an invalid `authPolicy` value."),
TpmFormatZeroError::PcrChanged => write!(f,"PCR have changed since checked."),
73
+
TpmFormatZeroError::Upgrade => write!(f,"For all commands other than TPM2_FieldUpgradeData(), this code indicates that the TPM is in field upgrade mode; for TPM2_FieldUpgradeData(), this code indicates that the TPM is not in field upgrade mode."),
74
+
TpmFormatZeroError::TooManyContexts => write!(f,"Context ID counter is at maximum."),
75
+
TpmFormatZeroError::AuthUnavailable => write!(f,"`authValue` or `authPolicy` is not available for selected entity."),
76
+
TpmFormatZeroError::Reboot => write!(f,"A _TPM_Init and Startup(CLEAR) is required before the TPM can resume operation."),
77
+
TpmFormatZeroError::Unbalanced => write!(f,"The protection algorithms (hash and symmetric) are not reasonably balanced. The digest size of the hash must be larger than the key size of the symmetric algorithm."),
78
+
TpmFormatZeroError::CommandSize => write!(f,"Command `commandSize` value is inconsistent with contents of the command buffer; either the size is not the same as the octets loaded by the hardware interface layer or the value is not large enough to hold a command header."),
79
+
TpmFormatZeroError::CommandCode => write!(f,"Command code not supported."),
80
+
TpmFormatZeroError::AuthSize => write!(f,"The value of `authorizationSize` is out of range or the number of octets in the authorization area is greater than required."),
81
+
TpmFormatZeroError::AuthContext => write!(f,"Use of an authorization session with a context command or another command that cannot have an authorization session."),
82
+
TpmFormatZeroError::NvRange => write!(f,"NV offset+size is out of range."),
83
+
TpmFormatZeroError::NvSize => write!(f,"Requested allocation size is larger than allowed."),
TpmFormatZeroError::NvAuthorization => write!(f,"NV access authorization fails in command actions."),
86
+
TpmFormatZeroError::NvUninitialized => write!(f,"An NV Index is used before being initialized or the state saved by TPM2_Shutdown(STATE) could not be restored."),
87
+
TpmFormatZeroError::NvSpace => write!(f,"Insufficient space for NV allocation."),
88
+
TpmFormatZeroError::NvDefined => write!(f,"NV Index or persistent object already defined."),
89
+
TpmFormatZeroError::BadContext => write!(f,"Context in TPM2_ContextLoad() is not valid."),
90
+
TpmFormatZeroError::CpHash => write!(f,"`cpHash` value already set or not correct for use."),
91
+
TpmFormatZeroError::Parent => write!(f,"Handle for parent is not a valid parent."),
TpmFormatZeroError::NoResult => write!(f,"Function cannot process a request due to an unspecified problem. This code is usually related to invalid parameters that are not properly filtered by the input unmarshaling code."),
94
+
TpmFormatZeroError::Sensitive => write!(f,"The sensitive area did not unmarshal correctly after decryption."),
test_display_trait_impl!("For all commands other than TPM2_FieldUpgradeData(), this code indicates that the TPM is in field upgrade mode; for TPM2_FieldUpgradeData(), this code indicates that the TPM is not in field upgrade mode.",TpmFormatZeroError::Upgrade);
187
+
test_display_trait_impl!(
188
+
"Context ID counter is at maximum.",
189
+
TpmFormatZeroError::TooManyContexts
190
+
);
191
+
test_display_trait_impl!(
192
+
"`authValue` or `authPolicy` is not available for selected entity.",
193
+
TpmFormatZeroError::AuthUnavailable
194
+
);
195
+
test_display_trait_impl!(
196
+
"A _TPM_Init and Startup(CLEAR) is required before the TPM can resume operation.",
197
+
TpmFormatZeroError::Reboot
198
+
);
199
+
test_display_trait_impl!("The protection algorithms (hash and symmetric) are not reasonably balanced. The digest size of the hash must be larger than the key size of the symmetric algorithm.",TpmFormatZeroError::Unbalanced);
200
+
test_display_trait_impl!("Command `commandSize` value is inconsistent with contents of the command buffer; either the size is not the same as the octets loaded by the hardware interface layer or the value is not large enough to hold a command header.",TpmFormatZeroError::CommandSize);
201
+
test_display_trait_impl!(
202
+
"Command code not supported.",
203
+
TpmFormatZeroError::CommandCode
204
+
);
205
+
test_display_trait_impl!("The value of `authorizationSize` is out of range or the number of octets in the authorization area is greater than required.",TpmFormatZeroError::AuthSize);
206
+
test_display_trait_impl!("Use of an authorization session with a context command or another command that cannot have an authorization session.",TpmFormatZeroError::AuthContext);
207
+
test_display_trait_impl!(
208
+
"NV offset+size is out of range.",
209
+
TpmFormatZeroError::NvRange
210
+
);
211
+
test_display_trait_impl!(
212
+
"Requested allocation size is larger than allowed.",
"NV access authorization fails in command actions.",
218
+
TpmFormatZeroError::NvAuthorization
219
+
);
220
+
test_display_trait_impl!("An NV Index is used before being initialized or the state saved by TPM2_Shutdown(STATE) could not be restored.",TpmFormatZeroError::NvUninitialized);
221
+
test_display_trait_impl!(
222
+
"Insufficient space for NV allocation.",
223
+
TpmFormatZeroError::NvSpace
224
+
);
225
+
test_display_trait_impl!(
226
+
"NV Index or persistent object already defined.",
227
+
TpmFormatZeroError::NvDefined
228
+
);
229
+
test_display_trait_impl!(
230
+
"Context in TPM2_ContextLoad() is not valid.",
231
+
TpmFormatZeroError::BadContext
232
+
);
233
+
test_display_trait_impl!(
234
+
"`cpHash` value already set or not correct for use.",
test_display_trait_impl!("Function cannot process a request due to an unspecified problem. This code is usually related to invalid parameters that are not properly filtered by the input unmarshaling code.",TpmFormatZeroError::NoResult);
243
+
test_display_trait_impl!(
244
+
"The sensitive area did not unmarshal correctly after decryption.",
Copy file name to clipboardExpand all lines: tss-esapi/tests/integration_tests/error_tests/return_code_tests/tpm_tests/tpm_format_zero_warning_tests.rs
0 commit comments