]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: ccp - Update return values for some unit tests
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 13 Feb 2024 17:34:29 +0000 (11:34 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 24 Feb 2024 00:41:20 +0000 (08:41 +0800)
commit14af865be47ac16ba9f3c98d031dc1f30cb1a642
treecb854fe26fa9d6e29f5cdbb966d963e771718422
parent0e8fca2f12ceb77c3a6b6f210135031f264aa612
crypto: ccp - Update return values for some unit tests

Until authenticated the platform enforces a state machine. Adjust
unit tests with this in mind.

Correct the return codes for all the states the unit tests ends up
hitting:

* Set Param / Get Param: DBC_ERROR_BAD_STATE
* Set UID: DBC_ERROR_SIGNATURE_INVALID
* Authencitated Nonce: DBC_ERROR_BAD_PARAMETERS

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
tools/crypto/ccp/test_dbc.py