Lines Matching full:hmac

9 #include <crypto/hmac.h>
41 bool hmac; member
160 /* Hash continuation or HMAC, setup (inner) digest from state */ in safexcel_context_control()
164 /* Compute digest count for hash/HMAC finish operations */ in safexcel_context_control()
182 /* Special case: zero length HMAC */ in safexcel_context_control()
184 /* PE HW < 4.4 cannot do HMAC continue, fake using hash */ in safexcel_context_control()
191 /* For zero-len HMAC, don't finalize, already padded! */ in safexcel_context_control()
201 /* Clear zero-length HMAC flag for next operation! */ in safexcel_context_control()
203 } else { /* HMAC */ in safexcel_context_control()
204 /* Need outer digest for HMAC finalization */ in safexcel_context_control()
208 /* Single pass HMAC - no digest count */ in safexcel_context_control()
269 if (sreq->hmac && in safexcel_handle_req_result()
271 /* Faking HMAC using hash - need to do outer hash */ in safexcel_handle_req_result()
280 sreq->hmac = 0; in safexcel_handle_req_result()
703 /* invalidate for HMAC finish with odigest changed */ in safexcel_ahash_enqueue()
704 (req->finish && req->hmac && in safexcel_ahash_enqueue()
757 * Also go process immediately for an HMAC IV precompute, which in safexcel_ahash_update()
828 } else if (unlikely(req->hmac && in safexcel_ahash_final()
832 * If we have an overall 0 length *HMAC* request: in safexcel_ahash_final()
833 * For HMAC, we need to finalize the inner digest in safexcel_ahash_final()
857 /* Set special zero-length HMAC flag */ in safexcel_ahash_final()
860 /* Finalize HMAC */ in safexcel_ahash_final()
862 } else if (req->hmac) { in safexcel_ahash_final()
863 /* Finalize HMAC */ in safexcel_ahash_final()
1029 req->hmac = true; in safexcel_hmac_sha1_init()
1127 req->hmac = true; in safexcel_hmac_init_iv()
1247 .cra_name = "hmac(sha1)",
1248 .cra_driver_name = "safexcel-hmac-sha1",
1402 req->hmac = true; in safexcel_hmac_sha224_init()
1433 .cra_name = "hmac(sha224)",
1434 .cra_driver_name = "safexcel-hmac-sha224",
1474 req->hmac = true; in safexcel_hmac_sha256_init()
1505 .cra_name = "hmac(sha256)",
1506 .cra_driver_name = "safexcel-hmac-sha256",
1660 req->hmac = true; in safexcel_hmac_sha512_init()
1691 .cra_name = "hmac(sha512)",
1692 .cra_driver_name = "safexcel-hmac-sha512",
1732 req->hmac = true; in safexcel_hmac_sha384_init()
1763 .cra_name = "hmac(sha384)",
1764 .cra_driver_name = "safexcel-hmac-sha384",
1855 req->hmac = true; in safexcel_hmac_md5_init()
1893 .cra_name = "hmac(md5)",
1894 .cra_driver_name = "safexcel-hmac-md5",
2354 req->hmac = true; in safexcel_hmac_sm3_init()
2385 .cra_name = "hmac(sm3)",
2386 .cra_driver_name = "safexcel-hmac-sm3",
2434 /* Set fallback cipher HMAC key */ in safexcel_sha3_fbcheck()
2819 * move the rest to opad due to the way our HMAC infra works. in safexcel_hmac_sha3_setkey()
2831 * to match the existing HMAC driver infrastructure. in safexcel_hmac_sha3_setkey()
2870 /* Start of HMAC should have len == processed == blocksize */ in safexcel_hmac_sha3_224_init()
2878 req->hmac = true; in safexcel_hmac_sha3_224_init()
2890 /* HW cannot do zero length HMAC, use fallback instead */ in safexcel_hmac_sha3_224_digest()
2915 .cra_name = "hmac(sha3-224)",
2916 .cra_driver_name = "safexcel-hmac-sha3-224",
2941 /* Start of HMAC should have len == processed == blocksize */ in safexcel_hmac_sha3_256_init()
2949 req->hmac = true; in safexcel_hmac_sha3_256_init()
2961 /* HW cannot do zero length HMAC, use fallback instead */ in safexcel_hmac_sha3_256_digest()
2986 .cra_name = "hmac(sha3-256)",
2987 .cra_driver_name = "safexcel-hmac-sha3-256",
3012 /* Start of HMAC should have len == processed == blocksize */ in safexcel_hmac_sha3_384_init()
3020 req->hmac = true; in safexcel_hmac_sha3_384_init()
3032 /* HW cannot do zero length HMAC, use fallback instead */ in safexcel_hmac_sha3_384_digest()
3057 .cra_name = "hmac(sha3-384)",
3058 .cra_driver_name = "safexcel-hmac-sha3-384",
3083 /* Start of HMAC should have len == processed == blocksize */ in safexcel_hmac_sha3_512_init()
3091 req->hmac = true; in safexcel_hmac_sha3_512_init()
3103 /* HW cannot do zero length HMAC, use fallback instead */ in safexcel_hmac_sha3_512_digest()
3127 .cra_name = "hmac(sha3-512)",
3128 .cra_driver_name = "safexcel-hmac-sha3-512",