File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/tfm_impl Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -841,7 +841,6 @@ attest_create_token(struct useful_buf_c *challenge,
841
841
enum attest_token_err_t token_err ;
842
842
struct attest_token_ctx attest_token_ctx ;
843
843
int32_t key_select ;
844
- int32_t alg_select ;
845
844
uint32_t option_flags = 0 ;
846
845
847
846
if (challenge -> len == 36 ) {
@@ -855,21 +854,13 @@ attest_create_token(struct useful_buf_c *challenge,
855
854
/* Lower three bits are the key select */
856
855
key_select = option_flags & 0x7 ;
857
856
858
- /* Map the key select to an algorithm. Maybe someday we'll support something
859
- * other than ES256
860
- */
861
- switch (key_select ) {
862
- default :
863
- alg_select = COSE_ALGORITHM_ES256 ;
864
- }
865
-
866
857
/* Get started creating the token. This sets up the CBOR and COSE contexts
867
858
* which causes the COSE headers to be constructed.
868
859
*/
869
860
token_err = attest_token_start (& attest_token_ctx ,
870
861
option_flags , /* option_flags */
871
862
key_select , /* key_select */
872
- alg_select , /* alg_select */
863
+ COSE_ALGORITHM_ES256 , /* alg_select */
873
864
token );
874
865
875
866
if (token_err != ATTEST_TOKEN_ERR_SUCCESS ) {
You can’t perform that action at this time.
0 commit comments