Skip to content
Snippets Groups Projects
Commit 510c2413 authored by Constantin P.'s avatar Constantin P. 💬 Committed by dmitriy.gerasimov
Browse files

Alignments fixed

parent eea08f6c
No related branches found
No related tags found
2 merge requests!251Master,!250Master
......@@ -43,13 +43,13 @@ typedef enum {
} dap_sign_type_enum_t;
typedef union dap_sign_type {
dap_sign_type_enum_t type: 16;
uint16_t raw;
} dap_sign_type_t;
dap_sign_type_enum_t type: 32;
uint32_t raw;
} DAP_ALIGN_PACKED dap_sign_type_t;
typedef struct dap_sign_hdr {
dap_sign_type_t type; /// Signature type
uint8_t padding[2]; /// Padding for better aligmnent
uint16_t padding;
uint32_t sign_size; /// Signature size
uint32_t sign_pkey_size; /// Signature serialized public key size
} DAP_ALIGN_PACKED dap_sign_hdr_t;
......
......@@ -169,8 +169,7 @@ size_t dap_cert_sign_output_size(dap_cert_t * a_cert, size_t a_size_wished)
dap_sign_t * dap_cert_sign(dap_cert_t * a_cert, const void * a_data
, size_t a_data_size, size_t a_output_size_wished )
{
dap_enc_key_t * l_key = a_cert->enc_key;
dap_sign_t *l_ret = dap_sign_create(l_key, a_data, a_data_size, a_output_size_wished);
dap_sign_t *l_ret = dap_sign_create(a_cert->enc_key, a_data, a_data_size, a_output_size_wished);
return l_ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment