Home
last modified time | relevance | path

Searched refs:hmac_ctx (Results 1 – 2 of 2) sorted by relevance

/linux/fs/smb/client/
H A Dsmb2transport.c213 struct hmac_sha256_ctx hmac_ctx; in smb2_calc_signature() local
228 hmac_sha256_init_usingrawkey(&hmac_ctx, key, sizeof(key)); in smb2_calc_signature()
239 hmac_sha256_update(&hmac_ctx, iov[0].iov_base, iov[0].iov_len); in smb2_calc_signature()
246 &(struct cifs_calc_sig_ctx){ .hmac = &hmac_ctx }); in smb2_calc_signature()
263 struct hmac_sha256_ctx hmac_ctx; in generate_key() local
268 hmac_sha256_init_usingrawkey(&hmac_ctx, ses->auth_key.response, in generate_key()
270 hmac_sha256_update(&hmac_ctx, i, 4); in generate_key()
271 hmac_sha256_update(&hmac_ctx, label.iov_base, label.iov_len); in generate_key()
272 hmac_sha256_update(&hmac_ctx, &zero, 1); in generate_key()
273 hmac_sha256_update(&hmac_ctx, context.iov_base, context.iov_len); in generate_key()
[all …]
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm1.c99 struct hmac_sha1_ctx hmac_ctx; in TSS_rawhmac() local
105 hmac_sha1_init_usingrawkey(&hmac_ctx, key, keylen); in TSS_rawhmac()
117 hmac_sha1_update(&hmac_ctx, data, dlen); in TSS_rawhmac()
121 hmac_sha1_final(&hmac_ctx, digest); in TSS_rawhmac()