Skip to content

Commit

Permalink
More code formatting and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurence Lundblade committed Nov 16, 2023
1 parent 157ab33 commit e9e54cb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/t_cose_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,14 @@ bits_iv_alg(int32_t cose_algorithm_id)


/**
* \brief HMAC an encoded bstr without actually encoding it in memory.
*
* @param hmac_ctx HMAC context.
* @param bstr Bytes of the bstr.
*
* If \c bstr is \c NULL_Q_USEFUL_BUF_C, a zero-length bstr will be
* HMAC'd into the output.
*/
* \brief HMAC an encoded bstr without actually encoding it in memory.
*
* @param hmac_ctx HMAC context.
* @param bstr Bytes of the bstr.
*
* If \c bstr is \c NULL_Q_USEFUL_BUF_C, a zero-length bstr will be
* HMAC'd into the output.
*/
static void
hmac_bstr(struct t_cose_crypto_hmac *hmac_ctx,
struct q_useful_buf_c bstr)
Expand Down Expand Up @@ -314,7 +314,7 @@ hmac_bstr(struct t_cose_crypto_hmac *hmac_ctx,
* Public function. See t_cose_util.h
*/
enum t_cose_err_t
create_tbm(const int32_t cose_algorithm_id,
create_tbm(const int32_t cose_alg_id,
struct t_cose_key mac_key,
bool is_mac0,
const struct t_cose_sign_inputs *mac_inputs,
Expand All @@ -327,7 +327,7 @@ create_tbm(const int32_t cose_algorithm_id,

return_value = t_cose_crypto_hmac_setup(&hmac_ctx,
mac_key,
cose_algorithm_id);
cose_alg_id);
if(return_value) {
return return_value;
}
Expand Down

0 comments on commit e9e54cb

Please sign in to comment.