Software APIs
owner_detached_signature Struct Reference

A detached signature can be used to validate either a signed command or an owner block. More...

#include <sw/device/silicon_creator/lib/ownership/datatypes.h>

Data Fields

tlv_header_t header
 Header identifying this struct.
 
uint32_t _pad [2]
 
uint32_t command
 The command associated with this signature (e.g.
 
uint32_t algorithm
 The algorithm used to generate this signature (ownership_key_alg_t).
 
nonce_t nonce
 The current nonce associated with the command.
 
union { 
 
uint32_t raw [2040]
 
ecdsa_p256_signature_t ecdsa
 
sigverify_spx_signature_t spx
 
   struct { 
 
ecdsa_p256_signature_t ecdsa
 
sigverify_spx_signature_t spx
 
   } hybrid 
 
signature 
 The signature data.
 

Detailed Description

A detached signature can be used to validate either a signed command or an owner block.

Detached signatures are used when the signature is too larger to fit within the designated signature area of the original buffer. In such cases, the orginal buffer's signature field will be all zeros and the verification function will scan through the flash data pages to find the detached signature.

The detached signature must be aligned on a flash page boundary.

Definition at line 539 of file datatypes.h.

Field Documentation

◆ _pad

uint32_t owner_detached_signature::_pad[2]

Definition at line 546 of file datatypes.h.

◆ algorithm

uint32_t owner_detached_signature::algorithm

The algorithm used to generate this signature (ownership_key_alg_t).

Definition at line 550 of file datatypes.h.

◆ command

uint32_t owner_detached_signature::command

The command associated with this signature (e.g.

UNLK, ACTV, OWNR).

Definition at line 548 of file datatypes.h.

◆ header

tlv_header_t owner_detached_signature::header

Header identifying this struct.

tag: SIGN. length: 8192.

Definition at line 545 of file datatypes.h.

◆ nonce

nonce_t owner_detached_signature::nonce

The current nonce associated with the command.

Definition at line 552 of file datatypes.h.

◆ [union]

union { ... } owner_detached_signature::signature

The signature data.