Searched refs:hmac_ctx (Results 1 – 3 of 3) sorted by relevance
| /linux/fs/smb/client/ |
| H A D | smb2transport.c | 221 struct hmac_sha256_ctx hmac_ctx; in smb2_calc_signature() local 236 hmac_sha256_init_usingrawkey(&hmac_ctx, key, sizeof(key)); in smb2_calc_signature() 247 hmac_sha256_update(&hmac_ctx, iov[0].iov_base, iov[0].iov_len); in smb2_calc_signature() 254 &(struct cifs_calc_sig_ctx){ .hmac = &hmac_ctx }); in smb2_calc_signature() 271 struct hmac_sha256_ctx hmac_ctx; in generate_key() local 282 hmac_sha256_init_usingrawkey(&hmac_ctx, ses->auth_key.response, in generate_key() 284 hmac_sha256_update(&hmac_ctx, i, 4); in generate_key() 285 hmac_sha256_update(&hmac_ctx, label.iov_base, label.iov_len); in generate_key() 286 hmac_sha256_update(&hmac_ctx, &zero, 1); in generate_key() 287 hmac_sha256_update(&hmac_ctx, context.iov_base, context.iov_len); in generate_key() [all …]
|
| H A D | cifsencrypt.c | 263 struct hmac_md5_ctx hmac_ctx; in calc_ntlmv2_hash() local 271 hmac_md5_init_usingrawkey(&hmac_ctx, nt_hash, CIFS_NTHASH_SIZE); in calc_ntlmv2_hash() 286 hmac_md5_update(&hmac_ctx, (const u8 *)user, 2 * len); in calc_ntlmv2_hash() 299 hmac_md5_update(&hmac_ctx, (const u8 *)domain, 2 * len); in calc_ntlmv2_hash() 310 hmac_md5_update(&hmac_ctx, (const u8 *)server, 2 * len); in calc_ntlmv2_hash() 314 hmac_md5_final(&hmac_ctx, ntlmv2_hash); in calc_ntlmv2_hash()
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm1.c | 99 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()
|