• Home
  • Raw
  • Download

Lines Matching full:hmac

9 #include <crypto/hmac.h>
40 bool hmac; member
159 /* Hash continuation or HMAC, setup (inner) digest from state */ in safexcel_context_control()
163 /* Compute digest count for hash/HMAC finish operations */ in safexcel_context_control()
181 /* Special case: zero length HMAC */ in safexcel_context_control()
183 /* PE HW < 4.4 cannot do HMAC continue, fake using hash */ in safexcel_context_control()
190 /* For zero-len HMAC, don't finalize, already padded! */ in safexcel_context_control()
200 /* Clear zero-length HMAC flag for next operation! */ in safexcel_context_control()
202 } else { /* HMAC */ in safexcel_context_control()
203 /* Need outer digest for HMAC finalization */ in safexcel_context_control()
207 /* Single pass HMAC - no digest count */ in safexcel_context_control()
268 if (sreq->hmac && in safexcel_handle_req_result()
270 /* Faking HMAC using hash - need to do outer hash */ in safexcel_handle_req_result()
279 sreq->hmac = 0; in safexcel_handle_req_result()
702 /* invalidate for HMAC finish with odigest changed */ in safexcel_ahash_enqueue()
703 (req->finish && req->hmac && in safexcel_ahash_enqueue()
756 * Also go process immediately for an HMAC IV precompute, which in safexcel_ahash_update()
827 } else if (unlikely(req->hmac && in safexcel_ahash_final()
831 * If we have an overall 0 length *HMAC* request: in safexcel_ahash_final()
832 * For HMAC, we need to finalize the inner digest in safexcel_ahash_final()
856 /* Set special zero-length HMAC flag */ in safexcel_ahash_final()
859 /* Finalize HMAC */ in safexcel_ahash_final()
861 } else if (req->hmac) { in safexcel_ahash_final()
862 /* Finalize HMAC */ in safexcel_ahash_final()
1028 req->hmac = true; in safexcel_hmac_sha1_init()
1126 req->hmac = true; in safexcel_hmac_init_iv()
1246 .cra_name = "hmac(sha1)",
1247 .cra_driver_name = "safexcel-hmac-sha1",
1401 req->hmac = true; in safexcel_hmac_sha224_init()
1432 .cra_name = "hmac(sha224)",
1433 .cra_driver_name = "safexcel-hmac-sha224",
1473 req->hmac = true; in safexcel_hmac_sha256_init()
1504 .cra_name = "hmac(sha256)",
1505 .cra_driver_name = "safexcel-hmac-sha256",
1659 req->hmac = true; in safexcel_hmac_sha512_init()
1690 .cra_name = "hmac(sha512)",
1691 .cra_driver_name = "safexcel-hmac-sha512",
1731 req->hmac = true; in safexcel_hmac_sha384_init()
1762 .cra_name = "hmac(sha384)",
1763 .cra_driver_name = "safexcel-hmac-sha384",
1854 req->hmac = true; in safexcel_hmac_md5_init()
1892 .cra_name = "hmac(md5)",
1893 .cra_driver_name = "safexcel-hmac-md5",
2353 req->hmac = true; in safexcel_hmac_sm3_init()
2384 .cra_name = "hmac(sm3)",
2385 .cra_driver_name = "safexcel-hmac-sm3",
2433 /* Set fallback cipher HMAC key */ in safexcel_sha3_fbcheck()
2818 * move the rest to opad due to the way our HMAC infra works. in safexcel_hmac_sha3_setkey()
2830 * to match the existing HMAC driver infrastructure. in safexcel_hmac_sha3_setkey()
2869 /* Start of HMAC should have len == processed == blocksize */ in safexcel_hmac_sha3_224_init()
2877 req->hmac = true; in safexcel_hmac_sha3_224_init()
2889 /* HW cannot do zero length HMAC, use fallback instead */ in safexcel_hmac_sha3_224_digest()
2914 .cra_name = "hmac(sha3-224)",
2915 .cra_driver_name = "safexcel-hmac-sha3-224",
2940 /* Start of HMAC should have len == processed == blocksize */ in safexcel_hmac_sha3_256_init()
2948 req->hmac = true; in safexcel_hmac_sha3_256_init()
2960 /* HW cannot do zero length HMAC, use fallback instead */ in safexcel_hmac_sha3_256_digest()
2985 .cra_name = "hmac(sha3-256)",
2986 .cra_driver_name = "safexcel-hmac-sha3-256",
3011 /* Start of HMAC should have len == processed == blocksize */ in safexcel_hmac_sha3_384_init()
3019 req->hmac = true; in safexcel_hmac_sha3_384_init()
3031 /* HW cannot do zero length HMAC, use fallback instead */ in safexcel_hmac_sha3_384_digest()
3056 .cra_name = "hmac(sha3-384)",
3057 .cra_driver_name = "safexcel-hmac-sha3-384",
3082 /* Start of HMAC should have len == processed == blocksize */ in safexcel_hmac_sha3_512_init()
3090 req->hmac = true; in safexcel_hmac_sha3_512_init()
3102 /* HW cannot do zero length HMAC, use fallback instead */ in safexcel_hmac_sha3_512_digest()
3126 .cra_name = "hmac(sha3-512)",
3127 .cra_driver_name = "safexcel-hmac-sha3-512",