Home
last modified time | relevance | path

Searched full:sha (Results 1 – 25 of 98) sorted by relevance

1234

/Zephyr-Core-3.6.0/drivers/crypto/
Dcrypto_npcx_sha.c38 /* The following table holds the function pointer for each SHA API in NPCX ROM. */
40 /* Get the SHA context size required by SHA APIs. */
42 /* Initial SHA context. */
44 /* Finalize SHA context. */
46 /* Initiate the SHA hardware module and setups needed parameters. */
49 * Prepare the context buffer for a SHA calculation - by loading the
50 * initial SHA-256/384/512 parameters.
54 * Updates the SHA calculation with the additional data. When the
56 * accept new data * buffers for SHA calculation and changes to the data
57 * in data buffer should no longer effect the SHA calculation.
[all …]
DKconfig.npcx1 # NPCX SHA driver configuration options
7 bool "NPCX SHA driver"
11 Enable NPCX SHA driver.
DKconfig.intel6 bool "Intel SHA driver"
10 Enable Intel SHA driver. To be used on ACE and CAVS platforms.
DKconfig.it8xxx25 bool "ITE IT8XXX2 SHA driver"
10 Enable ITE IT8XXX2 SHA driver.
Dcrypto_intel_sha.c13 LOG_MODULE_REGISTER(SHA);
32 static int intel_sha_set_ctl_enable(struct sha_container *sha, int status) in intel_sha_set_ctl_enable() argument
35 if (status == 0 && sha->dfsha->shactl.part.en == 1) { in intel_sha_set_ctl_enable()
36 while (sha->dfsha->shasts.part.busy) { in intel_sha_set_ctl_enable()
40 sha->dfsha->shactl.part.en = status; in intel_sha_set_ctl_enable()
44 static int intel_sha_set_resume_length_dw0(struct sha_container *sha, uint32_t lower_length) in intel_sha_set_resume_length_dw0() argument
49 sha->dfsha->sharldw0.full = lower_length; in intel_sha_set_resume_length_dw0()
56 static int intel_sha_set_resume_length_dw1(struct sha_container *sha, uint32_t upper_length) in intel_sha_set_resume_length_dw1() argument
58 sha->dfsha->sharldw1.full = upper_length; in intel_sha_set_resume_length_dw1()
80 /* ! Perform SHA computation over requested region. */
[all …]
Dcrypto_intel_sha_priv.h17 /* Possible SHA states */
21 /* SHA resume flag */
84 /* pointer to DSP SHA Registers */
Dcrypto_it8xxx2_sha.c19 "unsupported sha instance");
69 * References of K of SHA-256:
70 * https://en.wikipedia.org/wiki/SHA-2#Pseudocode
/Zephyr-Core-3.6.0/subsys/mgmt/updatehub/
DKconfig118 bool "SHA-256 on download"
120 Enables SHA-256 verification of data stream while downloading.
123 downloaded matches the server side SHA.
125 To check if the data written to permanent storage matches the SHA
130 bool "SHA-256 from flash"
132 Enables SHA-256 verification of stored data stream. When this
134 storage and verified with SHA to make sure that it has been
137 To check if the download data stream matches the SHA simultaneously,
141 bool "SHA-256 from both download and flash"
143 Enables SHA-256 verification on both data stream while downloading
/Zephyr-Core-3.6.0/dts/bindings/crypto/
Dnuvoton,npcx-sha.yaml4 description: NPCX Crypto SHA accelerator.
6 compatible: "nuvoton,npcx-sha"
18 Size of the pre-allocated buffer for the SHA ROM API to store the
Dite,it8xxx2-sha.yaml4 description: ITE IT8XXX2 Crypto SHA accelerator.
6 compatible: "ite,it8xxx2-sha"
Dintel,adsp-sha.yaml4 description: Intel ADSP Crypto SHA accelerator.
6 compatible: "intel,adsp-sha"
/Zephyr-Core-3.6.0/modules/
DKconfig.tinycrypt23 bool "SHA-256 Hash function support"
25 This option enables support for SHA-256
32 This option enables support for HMAC using SHA-256
/Zephyr-Core-3.6.0/subsys/storage/flash_map/
Dflash_map_integrity.c37 struct tc_sha256_state_struct sha; in flash_area_check_int_sha256() local
56 if (tc_sha256_init(&sha) != TC_CRYPTO_SUCCESS) { in flash_area_check_int_sha256()
92 if (tc_sha256_update(&sha, in flash_area_check_int_sha256()
106 if (tc_sha256_final(hash, &sha) != TC_CRYPTO_SUCCESS) { in flash_area_check_int_sha256()
DKconfig36 integrity using SHA-256 verification algorithm.
/Zephyr-Core-3.6.0/subsys/mgmt/mcumgr/grp/fs_mgmt/src/
Dfs_mgmt_hash_checksum_sha256.c35 struct tc_sha256_state_struct sha; in fs_mgmt_hash_checksum_sha256() local
41 if (tc_sha256_init(&sha) != TC_CRYPTO_SUCCESS) { in fs_mgmt_hash_checksum_sha256()
58 if (tc_sha256_update(&sha, buffer, bytes_read) != TC_CRYPTO_SUCCESS) { in fs_mgmt_hash_checksum_sha256()
67 if (tc_sha256_final(output, &sha) != TC_CRYPTO_SUCCESS) { in fs_mgmt_hash_checksum_sha256()
/Zephyr-Core-3.6.0/dts/bindings/dma/
Despressif,esp32-gdma.yaml21 * SHA (Not Supported yet)
36 * SHA (Not Supported yet)
/Zephyr-Core-3.6.0/modules/mbedtls/
DKconfig.tls-generic327 bool "SHA-224 and SHA-256 hash algorithms"
331 bool "Smaller SHA-256 implementation"
335 Enable an implementation of SHA-256 that has lower ROM footprint but also
339 bool "SHA-384 hash algorithm"
343 bool "SHA-512 hash algorithm"
/Zephyr-Core-3.6.0/.github/workflows/
Dscripts_tests.yml34 ref: ${{ github.event.pull_request.head.sha }}
41 PR_HEAD: ${{ github.event.pull_request.head.sha }}
Dmanifest.yml14 ref: ${{ github.event.pull_request.head.sha }}
Dclang.yaml24 … COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
46 ref: ${{ github.event.pull_request.head.sha }}
Dtwister.yaml42 … COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
64 ref: ${{ github.event.pull_request.head.sha }}
141 … COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
161 ref: ${{ github.event.pull_request.head.sha }}
/Zephyr-Core-3.6.0/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dimg_gr_stub.c226 struct zcbor_string sha, data; in img_upload_init_verify() local
233 ZCBOR_MAP_DECODE_KEY_DECODER("sha", zcbor_bstr_decode, &sha) in img_upload_init_verify()
241 sha.len = 0; in img_upload_init_verify()
254 if (sha.len) { in img_upload_init_verify()
255 if (memcmp(sha.value, image_hash_ptr, 32)) { in img_upload_init_verify()
/Zephyr-Core-3.6.0/tests/subsys/dfu/img_util/src/
Dmain.c120 /* echo $'0123456789abcdef\nfedcba9876543201' > tst.sha in ZTEST()
121 * hexdump tst.sha in ZTEST()
128 /* sha256sum tst.sha */ in ZTEST()
163 zassert_false(ret == 0, "Flash img check wrong sha\n"); in ZTEST()
/Zephyr-Core-3.6.0/tests/subsys/storage/flash_map/src/
Dmain.c116 /* echo $'0123456789abcdef\nfedcba98765432' > tst.sha in ZTEST()
117 * hexdump tst.sha in ZTEST()
123 /* sha256sum tst.sha */ in ZTEST()
168 zassert_false(rc == 0, "Flash area check int 256 wrong sha\n"); in ZTEST()
/Zephyr-Core-3.6.0/doc/services/crypto/
Dtinycrypt.rst19 * SHA-256:
29 * Requires: SHA-256
35 * Requires: SHA-256 and HMAC-SHA256.
114 * SHA-256:
277 * `NIST FIPS PUB 180-4 (SHA-256)`_
279 .. _NIST FIPS PUB 180-4 (SHA-256):

1234