Searched refs:hmac_ctx (Results 1 – 6 of 6) sorted by relevance
| /linux/crypto/ |
| H A D | hmac.c | 23 struct hmac_ctx { struct 41 struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_setkey() argument 92 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm); in hmac_import() 108 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm); in hmac_import_core() 117 const struct hmac_ctx *tctx = crypto_shash_ctx(pdesc->tfm); in hmac_init() 137 const struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_finup() 151 struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_init_tfm() 163 struct hmac_ctx *sctx = crypto_shash_ctx(src); in hmac_clone_tfm() 164 struct hmac_ctx *dctx = crypto_shash_ctx(dst); in hmac_clone_tfm() 177 struct hmac_ctx *tctx = crypto_shash_ctx(parent); in hmac_exit_tfm() [all …]
|
| /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/drivers/crypto/chelsio/ |
| H A D | chcr_crypto.h | 243 struct hmac_ctx { struct 250 struct hmac_ctx hmacctx; argument
|
| H A D | chcr_algo.c | 108 static inline struct hmac_ctx *HMAC_CTX(struct chcr_context *ctx) in HMAC_CTX() 1532 struct hmac_ctx *hmacctx = HMAC_CTX(ctx); in create_hash_wr() 2170 struct hmac_ctx *hmacctx = HMAC_CTX(h_ctx(tfm)); in chcr_ahash_setkey() 2251 struct hmac_ctx *hmacctx = HMAC_CTX(h_ctx(rtfm)); in chcr_hmac_init() 4292 #define SZ_AHASH_H_CTX (sizeof(struct chcr_context) + sizeof(struct hmac_ctx))
|
| /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()
|