| /OK3568_Linux_fs/kernel/fs/ubifs/ |
| H A D | auth.c | 40 * ubifs_hash_calc_hmac - calculate a HMAC from a hash 42 * @hash: the node to calculate a HMAC for 43 * @hmac: the returned HMAC 48 u8 *hmac) in ubifs_hash_calc_hmac() argument 50 return crypto_shash_tfm_digest(c->hmac_tfm, hash, c->hash_len, hmac); in ubifs_hash_calc_hmac() 60 * It creates a HMAC from the given input hash and writes it to the node. 82 err = ubifs_hash_calc_hmac(c, hash, auth->hmac); in ubifs_prepare_auth_node() 277 snprintf(hmac_name, CRYPTO_MAX_ALG_NAME, "hmac(%s)", in ubifs_init_authentication() 328 ubifs_err(c, "hmac %s is bigger than maximum allowed hmac size (%d > %d)", in ubifs_init_authentication() 378 * ubifs_node_calc_hmac - calculate the HMAC of a UBIFS node [all …]
|
| /OK3568_Linux_fs/kernel/net/sctp/ |
| H A D | Kconfig | 52 prompt "Default SCTP cookie HMAC encoding" 55 This option sets the default sctp cookie hmac algorithm 59 bool "Enable optional MD5 hmac cookie generation" 61 Enable optional MD5 hmac based SCTP cookie generation 65 bool "Enable optional SHA1 hmac cookie generation" 67 Enable optional SHA1 hmac based SCTP cookie generation 71 bool "Use no hmac alg in SCTP cookie generation" 73 Use no hmac algorithm in SCTP cookie generation 78 bool "Enable optional MD5 hmac cookie generation" 80 Enable optional MD5 hmac based SCTP cookie generation [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/mbedtls/ |
| H A D | md.h | 99 /** The HMAC part of the context. */ 200 * \param hmac Defines if HMAC is used. 0: HMAC is not used (saves some memory), 201 * or non-zero: HMAC is used with this context. 208 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac ); 221 * HMAC state. 362 * \brief This function sets the HMAC key and prepares to 366 * the MD context for an HMAC calculation, then call 368 * mbedtls_md_hmac_finish() to get the HMAC value. 370 * \param ctx The message digest context containing an embedded HMAC 372 * \param key The HMAC secret key. [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/mbedtls/ |
| H A D | md.h | 99 /** The HMAC part of the context. */ 200 * \param hmac Defines if HMAC is used. 0: HMAC is not used (saves some memory), 201 * or non-zero: HMAC is used with this context. 208 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac ); 221 * HMAC state. 362 * \brief This function sets the HMAC key and prepares to 366 * the MD context for an HMAC calculation, then call 368 * mbedtls_md_hmac_finish() to get the HMAC value. 370 * \param ctx The message digest context containing an embedded HMAC 372 * \param key The HMAC secret key. [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/mbedtls/ |
| H A D | md.h | 99 /** The HMAC part of the context. */ 200 * \param hmac Defines if HMAC is used. 0: HMAC is not used (saves some memory), 201 * or non-zero: HMAC is used with this context. 208 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac ); 221 * HMAC state. 362 * \brief This function sets the HMAC key and prepares to 366 * the MD context for an HMAC calculation, then call 368 * mbedtls_md_hmac_finish() to get the HMAC value. 370 * \param ctx The message digest context containing an embedded HMAC 372 * \param key The HMAC secret key. [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/mbedtls/ |
| H A D | md.h | 99 /** The HMAC part of the context. */ 200 * \param hmac Defines if HMAC is used. 0: HMAC is not used (saves some memory), 201 * or non-zero: HMAC is used with this context. 208 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac ); 221 * HMAC state. 362 * \brief This function sets the HMAC key and prepares to 366 * the MD context for an HMAC calculation, then call 368 * mbedtls_md_hmac_finish() to get the HMAC value. 370 * \param ctx The message digest context containing an embedded HMAC 372 * \param key The HMAC secret key. [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/include/c_mode/ |
| H A D | md.h | 73 /** HMAC part of the context */ 152 * \param hmac 0 to save some memory if HMAC will not be used, 153 * non-zero is HMAC is going to be used with this context. 159 int mbedtls_md_setup( mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac ); 167 * \warning Only clones the MD state, not the HMAC state! (for now) 275 * \brief Set HMAC key and prepare to authenticate a new message. 278 * \param ctx HMAC context 279 * \param key HMAC secret key 280 * \param keylen length of the HMAC key in bytes 289 * \brief Generic HMAC process buffer. [all …]
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | fips140_gen_hmac.c | 6 * This is a host tool that is intended to be used to take the HMAC digest of 12 * Note that the peculiar way an HMAC is being used as a digest with a public 26 #include <openssl/hmac.h> 117 static void hmac_section(HMAC_CTX *hmac, const char *start, const char *end) in hmac_section() argument 122 HMAC_Update(hmac, start_addr, end_addr - start_addr); in hmac_section() 132 HMAC_CTX *hmac; in main() local 174 fprintf(stderr, "failed to locate HMAC key in binary\n"); in main() 180 fprintf(stderr, "failed to locate HMAC digest in binary\n"); in main() 184 hmac = HMAC_CTX_new(); in main() 185 HMAC_Init_ex(hmac, hmac_key, strlen(hmac_key), EVP_sha256(), NULL); in main() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H A D | evm | 7 HMAC-sha1 value across the extended attributes, storing the 11 an HMAC-sha1 generated locally with a 23 0 Enable HMAC validation and creation 26 runtime. Not supported if HMAC validation and 35 will enable HMAC validation and creation 41 will enable HMAC and digital signature validation and 42 HMAC creation and disable all further modification of policy. 65 Note that once an HMAC key has been loaded, it will no longer 67 HMAC key has been loaded will clear the corresponding flag. 74 Loading an HMAC key is the only way to disable metadata
|
| /OK3568_Linux_fs/kernel/drivers/crypto/caam/ |
| H A D | caamalg.c | 2077 .cra_name = "authenc(hmac(md5)," 2079 .cra_driver_name = "authenc-hmac-md5-" 2098 .cra_name = "authenc(hmac(sha1)," 2100 .cra_driver_name = "authenc-hmac-sha1-" 2119 .cra_name = "authenc(hmac(sha224)," 2121 .cra_driver_name = "authenc-hmac-sha224-" 2140 .cra_name = "authenc(hmac(sha256)," 2142 .cra_driver_name = "authenc-hmac-sha256-" 2161 .cra_name = "authenc(hmac(sha384)," 2163 .cra_driver_name = "authenc-hmac-sha384-" [all …]
|
| H A D | caamalg_qi.c | 1637 .cra_name = "authenc(hmac(md5),cbc(aes))", 1638 .cra_driver_name = "authenc-hmac-md5-" 1658 .cra_name = "echainiv(authenc(hmac(md5)," 1660 .cra_driver_name = "echainiv-authenc-hmac-md5-" 1681 .cra_name = "authenc(hmac(sha1),cbc(aes))", 1682 .cra_driver_name = "authenc-hmac-sha1-" 1702 .cra_name = "echainiv(authenc(hmac(sha1)," 1705 "hmac-sha1-cbc-aes-caam-qi", 1725 .cra_name = "authenc(hmac(sha224),cbc(aes))", 1726 .cra_driver_name = "authenc-hmac-sha224-" [all …]
|
| H A D | caamalg_qi2.c | 1854 .cra_name = "authenc(hmac(md5),cbc(aes))", 1855 .cra_driver_name = "authenc-hmac-md5-" 1875 .cra_name = "echainiv(authenc(hmac(md5)," 1877 .cra_driver_name = "echainiv-authenc-hmac-md5-" 1898 .cra_name = "authenc(hmac(sha1),cbc(aes))", 1899 .cra_driver_name = "authenc-hmac-sha1-" 1919 .cra_name = "echainiv(authenc(hmac(sha1)," 1922 "hmac-sha1-cbc-aes-caam-qi2", 1942 .cra_name = "authenc(hmac(sha224),cbc(aes))", 1943 .cra_driver_name = "authenc-hmac-sha224-" [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/networking/ |
| H A D | seg6-sysctl.rst | 20 Define HMAC policy for ingress SR-enabled packets on this interface. 22 * -1 - Ignore HMAC field 23 * 0 - Accept SR packets without HMAC, validate SR packets with HMAC 24 * 1 - Drop SR packets without HMAC, validate SR packets with HMAC
|
| /OK3568_Linux_fs/kernel/drivers/crypto/inside-secure/ |
| H A D | safexcel_hash.c | 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() [all …]
|
| /OK3568_Linux_fs/buildroot/package/azure-iot-sdk-c/ |
| H A D | 0001-hmac-c-fix-mismatching-function-prototype.patch | 4 Subject: [PATCH] hmac.c: fix mismatching function prototype (#537) 20 src/hmac.c | 2 +- 23 diff --git a/src/hmac.c b/src/hmac.c 25 --- a/c-utility/src/hmac.c 26 +++ b/c-utility/src/hmac.c
|
| /OK3568_Linux_fs/kernel/security/integrity/evm/ |
| H A D | Kconfig | 21 Include filesystem UUID for HMAC calculation. 26 WARNING: changing the HMAC calculation method or adding 35 Include additional SMACK xattrs for HMAC calculation. 39 in the HMAC calculation, enabling this option includes newly defined 43 WARNING: changing the HMAC calculation method or adding 52 Allow userland to provide additional xattrs for HMAC calculation.
|
| H A D | evm_main.c | 85 pr_info("HMAC attrs: 0x%x\n", evm_hmac_attrs); in evm_init_config() 118 * evm_verify_hmac - calculate and compare the HMAC with the EVM xattr 120 * Compute the HMAC on the dentry's protected set of extended attributes 125 * HMAC.) 265 * Calculate the HMAC for the given dentry and verify it against the stored 267 * previously retrieved to calculate the HMAC. 375 * access to the EVM encrypted key needed to calculate the HMAC, prevent 376 * userspace from writing HMAC value. Writing 'security.evm' requires 385 * there's no HMAC key loaded in evm_inode_setxattr() 412 * there's no HMAC key loaded in evm_inode_removexattr() [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/ |
| H A D | main.c | 25 HMAC, enumerator 47 printf("\t-hmac Function of hmac\n"); in guide() 54 printf("\t-stress [cnt] stress cnt times of all cipher/hash/hmac\n"); in guide() 68 {"hmac", 0, NULL, HMAC}, in main() 104 case HMAC: in main()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | atmel-sha.c | 1193 /* copy ready hash (+ finalize hmac) */ in atmel_sha_final() 1608 /* hmac functions */ 1690 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_setup() local 1695 hmac->resume = resume; in atmel_sha_hmac_setup() 1727 if (likely(!atmel_sha_hmac_key_get(&hmac->hkey, &key, &keylen))) in atmel_sha_hmac_setup() 1735 memcpy((u8 *)hmac->ipad, key, keylen); in atmel_sha_hmac_setup() 1736 memset((u8 *)hmac->ipad + keylen, 0, bs - keylen); in atmel_sha_hmac_setup() 1751 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_prehash_key_done() local 1759 hmac->ipad[i] = atmel_sha_read(dd, SHA_REG_DIGEST(i)); in atmel_sha_hmac_prehash_key_done() 1760 memset((u8 *)hmac->ipad + ds, 0, bs - ds); in atmel_sha_hmac_prehash_key_done() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/openssl/ |
| H A D | hmac.h | 69 // HMAC contains functions for constructing PRFs from Merkle–Damgård hash 70 // functions using HMAC. 75 // HMAC calculates the HMAC of |data_len| bytes of |data|, using the given key 80 OPENSSL_EXPORT uint8_t *HMAC(const EVP_MD *evp_md, const void *key, 88 // HMAC_CTX_init initialises |ctx| for use in an HMAC operation. It's assumed 116 // HMAC_Update hashes |data_len| bytes from |data| into the current HMAC 121 // HMAC_Final completes the HMAC operation in |ctx| and writes the result to 132 // HMAC_size returns the size, in bytes, of the HMAC that will be produced by
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/openssl/ |
| H A D | hmac.h | 69 // HMAC contains functions for constructing PRFs from Merkle–Damgård hash 70 // functions using HMAC. 75 // HMAC calculates the HMAC of |data_len| bytes of |data|, using the given key 80 OPENSSL_EXPORT uint8_t *HMAC(const EVP_MD *evp_md, const void *key, 88 // HMAC_CTX_init initialises |ctx| for use in an HMAC operation. It's assumed 116 // HMAC_Update hashes |data_len| bytes from |data| into the current HMAC 121 // HMAC_Final completes the HMAC operation in |ctx| and writes the result to 132 // HMAC_size returns the size, in bytes, of the HMAC that will be produced by
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/openssl/ |
| H A D | hmac.h | 69 // HMAC contains functions for constructing PRFs from Merkle–Damgård hash 70 // functions using HMAC. 75 // HMAC calculates the HMAC of |data_len| bytes of |data|, using the given key 80 OPENSSL_EXPORT uint8_t *HMAC(const EVP_MD *evp_md, const void *key, 88 // HMAC_CTX_init initialises |ctx| for use in an HMAC operation. It's assumed 116 // HMAC_Update hashes |data_len| bytes from |data| into the current HMAC 121 // HMAC_Final completes the HMAC operation in |ctx| and writes the result to 132 // HMAC_size returns the size, in bytes, of the HMAC that will be produced by
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/openssl/ |
| H A D | hmac.h | 69 // HMAC contains functions for constructing PRFs from Merkle–Damgård hash 70 // functions using HMAC. 75 // HMAC calculates the HMAC of |data_len| bytes of |data|, using the given key 80 OPENSSL_EXPORT uint8_t *HMAC(const EVP_MD *evp_md, const void *key, 88 // HMAC_CTX_init initialises |ctx| for use in an HMAC operation. It's assumed 116 // HMAC_Update hashes |data_len| bytes from |data| into the current HMAC 121 // HMAC_Final completes the HMAC operation in |ctx| and writes the result to 132 // HMAC_size returns the size, in bytes, of the HMAC that will be produced by
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/include/openssl/ |
| H A D | hmac.h | 69 // HMAC contains functions for constructing PRFs from Merkle–Damgård hash 70 // functions using HMAC. 75 // HMAC calculates the HMAC of |data_len| bytes of |data|, using the given key 80 OPENSSL_EXPORT uint8_t *HMAC(const EVP_MD *evp_md, const void *key, 88 // HMAC_CTX_init initialises |ctx| for use in an HMAC operation. It's assumed 116 // HMAC_Update hashes |data_len| bytes from |data| into the current HMAC 121 // HMAC_Final completes the HMAC operation in |ctx| and writes the result to 132 // HMAC_size returns the size, in bytes, of the HMAC that will be produced by
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/openssl/ |
| H A D | hmac.h | 69 // HMAC contains functions for constructing PRFs from Merkle–Damgård hash 70 // functions using HMAC. 75 // HMAC calculates the HMAC of |data_len| bytes of |data|, using the given key 80 OPENSSL_EXPORT uint8_t *HMAC(const EVP_MD *evp_md, const void *key, 88 // HMAC_CTX_init initialises |ctx| for use in an HMAC operation. It's assumed 116 // HMAC_Update hashes |data_len| bytes from |data| into the current HMAC 121 // HMAC_Final completes the HMAC operation in |ctx| and writes the result to 132 // HMAC_size returns the size, in bytes, of the HMAC that will be produced by
|