Home
last modified time | relevance | path

Searched refs:hmacctx (Results 1 – 5 of 5) sorted by relevance

/third_party/libwebsockets/lib/jose/jwe/enc/
Daescbc.c35 struct lws_genhmac_ctx hmacctx; in lws_jwe_encrypt_cbc_hs() local
119 if (lws_genhmac_init(&hmacctx, jwe->jose.enc_alg->hmac_type, in lws_jwe_encrypt_cbc_hs()
137 if (lws_genhmac_update(&hmacctx, aad, (unsigned int)aad_len) || in lws_jwe_encrypt_cbc_hs()
138 lws_genhmac_update(&hmacctx, jwe->jws.map.buf[LJWE_IV], in lws_jwe_encrypt_cbc_hs()
141 lws_genhmac_update(&hmacctx, in lws_jwe_encrypt_cbc_hs()
144 lws_genhmac_update(&hmacctx, al, 8)) { in lws_jwe_encrypt_cbc_hs()
146 lws_genhmac_destroy(&hmacctx, NULL); in lws_jwe_encrypt_cbc_hs()
150 if (lws_genhmac_destroy(&hmacctx, digest)) { in lws_jwe_encrypt_cbc_hs()
168 struct lws_genhmac_ctx hmacctx; in lws_jwe_auth_and_decrypt_cbc_hs() local
203 if (lws_genhmac_init(&hmacctx, jwe->jose.enc_alg->hmac_type, enc_cek, in lws_jwe_auth_and_decrypt_cbc_hs()
[all …]
/third_party/libwebsockets/lib/cose/
Dcose_sign_alg.c110 if (lws_genhmac_init(&alg->u.hmacctx, ghm, ke->buf, ke->len)) in lws_cose_sign_alg_create()
181 return lws_genhmac_update(&alg->u.hmacctx, in, in_len); in lws_cose_sign_alg_hash()
231 alg->rhash_len = (int)lws_genhmac_size(alg->u.hmacctx.type); in lws_cose_sign_alg_complete()
235 if (lws_genhmac_destroy(&alg->u.hmacctx, alg->rhash)) { in lws_cose_sign_alg_complete()
Dcose_validate_alg.c110 if (lws_genhmac_init(&alg->u.hmacctx, ghm, ke->buf, ke->len)) in lws_cose_val_alg_create()
181 return lws_genhmac_update(&alg->u.hmacctx, in, in_len); in lws_cose_val_alg_hash()
233 shs = hs = lws_genhmac_size(alg->u.hmacctx.type); in lws_cose_val_alg_destroy()
237 if (lws_genhmac_destroy(&alg->u.hmacctx, digest)) { in lws_cose_val_alg_destroy()
Dprivate-lib-cose.h56 struct lws_genhmac_ctx hmacctx; member
/third_party/libwebsockets/lib/secure-streams/system/auth-sigv4/
Dsign.c154 struct lws_genhmac_ctx hmacctx; in hmacsha256() local
156 if (lws_genhmac_init(&hmacctx, LWS_GENHMAC_TYPE_SHA256, in hmacsha256()
160 if (lws_genhmac_update(&hmacctx, txt, txtlen)) { in hmacsha256()
162 lws_genhmac_destroy(&hmacctx, NULL); in hmacsha256()
166 if (lws_genhmac_destroy(&hmacctx, digest)) { in hmacsha256()