nx_sha256.nx
buildroot/runtime/nx_sha256.nx
about
dependencies 2 imports · 284 importers
diagram shows first 10 each side; +0 more imports, +274 more importers in the complete lists below.
imports: nx_syscalls.nxnx_bits.nx
imported by: _doc_cas_authored.nx_locator_authored.nx_tlskdf_minrepro.nxnx_abi_lock.nxnx_abi_lock_test.nxnx_accept_binding_candidate_t230.nxnx_accept_ref_lib.nxnx_accept_release_binding.nxnx_access_audit.nxnx_acct_admin_handoff.nxnx_aimode_read.nxnx_analyst_html.nxnx_apertus_shard_verify.nxnx_asset_prov_clock_candidate_t346.nxnx_asset_prov_lib.nxnx_atomic_publish.nxnx_atomic_publish_gate.nxnx_audit_log.nxnx_authenticode_sign.nxnx_bld_cache_cas_gate.nxnx_blob_store.nxnx_blob_store_mcu.nxnx_bt_v2_merkle.nxnx_bt_v2_merkle_gate.nxnx_build_key_identity_lib.nxnx_campaign_verify.nxnx_canon_cid.nxnx_capture_append_lib.nxnx_cast_aperture_artifact_gate_t207.nxnx_cast_aperture_artifact_group_gate_t207.nxnx_cdc_gate.nxnx_cdc_lib.nxnx_claude_harvest.nxnx_claude_harvest_requests_t144.nxnx_claude_harvest_usage_t76.nxnx_closurehash.nxnx_cms_admin.nxnx_cms_admin_gate.nxnx_cms_analytics_gate.nxnx_cms_argon_gate.nxnx_cms_blocks_gate.nxnx_cms_draft_gate.nxnx_cms_forms_gate.nxnx_cms_gate.nxnx_cms_migrate.nxnx_cms_multisite_gate.nxnx_cms_seo_gate.nxnx_cms_setpw.nxnx_cms_snapshot_gate.nxnx_cms_tls_gate.nxnx_cms_webdev_gate.nxnx_coe_consistency.nxnx_coe_frame.nxnx_coe_witness.nxnx_commons_witness.nxnx_communitypulse.nxnx_compare_cite.nxnx_compare_cite_gate.nxnx_compare_ladder_isolated_lib.nxnx_compare_shared_fit_lib_20260910.nxnx_comparestale_dependency_t138.nxnx_comparestale_edge_lib_t139.nxnx_comparestale_lib.nxnx_compute_graph_test.nxnx_compute_node.nxnx_container_registry.nxnx_content_get.nxnx_content_get_client.nxnx_content_get_gate.nxnx_content_put.nxnx_content_put_client.nxnx_content_put_gate.nxnx_deployjrnl_lib.nxnx_dist_publish.nxnx_dr_archive.nxnx_dr_dedup.nxnx_dr_dedup_gate.nxnx_dr_encrypt.nxnx_dr_encrypt_gate.nxnx_dr_incremental.nxnx_dr_restore_verify.nxnx_dr_restore_verify_gate.nxnx_dr_retention.nxnx_drbg_hmac.nxnx_drbg_hmac_test.nxnx_ecdsa_p384_real_bisect_test.nxnx_efivars_enrol.nxnx_email_auth.nxnx_emitted_substrate.nxnx_entity_media.nxnx_etag.nxnx_evidence_gather.nxnx_extllm_call.nxnx_f6_gate.nxnx_fetch_decode_capture_t253.nxnx_fetchprobed.nxnx_filehash.nxnx_fio.nxnx_flash_test.nxnx_forge_evidence_t274.nx +184 more (shown cap 100 declared)
structs
| 62 | struct Sha256 { |
consts
| 60 | const K_MAGIC_536870912: i64 = 536870912 |
| 99 | const M32: i64 = 0xFFFFFFFF |
| 477 | const SHA256_WORD_ALIGN: i64 = 8 |
| 478 | const SHA256_BLOCK_BYTES: i64 = 64 |
| 479 | const SHA256_ROUND_WORDS: i64 = 64 |
| 480 | const SHA256_WIDE_WORD: i64 = 8 |
| 481 | const SHA256_PACKED_WORD: i64 = 4 |
| 482 | const SHA256_STATE_WORDS: i64 = 8 |
| 483 | const SHA256_DIGEST_BYTES: i64 = 32 |
| 484 | const SHA256_SIGNED_MAX: i64 = 9223372036854775807 |
| 485 | const SHA256_BITS_PER_BYTE: i64 = 8 |
| 486 | const SHA256_E_INPUT: i64 = 0-1 |
| 487 | const SHA256_E_WORKSPACE: i64 = 0-2 |
| 488 | const SHA256_E_MAPPING: i64 = 0-3 |
| 489 | const SHA256_E_RELEASE: i64 = 0-4 |
functions
| 103 | func rotr32(x: i64, n: i64) -> i64 {
calls 1: nx_bits_rotr32 |
| 107 | func shr32(x: i64, n: i64) -> i64 { |
| 114 | func sha256_k(i: i64) -> i64 { |
| 184 | func blk_byte(c: *Sha256, n: i64) -> i64 {
called by 1: blk_word |
| 190 | func blk_set_byte(c: *Sha256, n: i64, v: i64) -> i64 { |
| 198 | func blk_word(c: *Sha256, i: i64) -> i64 { |
| 212 | func sha256_compress_ni(c: *Sha256) -> i64 {
called by 1: sha256_compress |
| 231 | func sha256_compress_ni_blocks(c: *Sha256, blocks: i64, nblk: i64) -> i64 {
called by 1: sha256_update |
| 253 | func sha256_compress(c: *Sha256) -> i64 { |
| 316 | func sha256_seed_allocated(c: *Sha256) -> i64 { |
| 343 | func sha256_init(c: *Sha256) -> i64 {
called by 28: sv_hash_fileal_chainmk_leafmk_nodecid_of_file_chunkca_fingerprint+22 calls 2: sys_mmapsha256_seed_allocated |
| 354 | func sha256_update(c: *Sha256, bytes: *u8, n: i64) -> i64 { |
| 384 | func sha256_final(c: *Sha256, out: *u8) -> i64 {
called by 41: sv_hash_fileal_chainmk_leafmk_nodecid_of_file_chunkca_fingerprint+35 calls 2: blk_set_bytesha256_compress |
| 454 | func sha256_destroy(c: *Sha256) -> i64 { |
| 463 | func sha256_digest(bytes: *u8, n: i64, out: *u8) -> i64 { |
| 491 | func sha256_context_aligned_bytes() -> i64 { |
| 494 | func sha256_workspace_bytes() -> i64 {
called by 20: ch_usage_requests_filech_usage_requests_filecd_scancd_scancd_scan_buffercd_scan+14 calls 1: sha256_context_aligned_bytes |
| 497 | func sha256_checked_input(bytes: *u8, n: i64, out: *u8) -> i64 { |
| 504 | func sha256_ranges_overlap(a: i64, an: i64, b: i64, bn: i64) -> i64 { |
| 510 | func sha256_init_workspace(workspace: *u8, capacity: i64) -> i64 { |
| 521 | func sha256_digest_workspace(bytes: *u8, n: i64, out: *u8, workspace: *u8, capacity: i64) -> i64 { |
| 535 | func sha256_digest_mapping_native(bytes: *u8, n: i64, out: *u8, mapping: i64) -> i64 {
called by 3: sha256_digest_checked_nativemainmain calls 3: sha256_workspace_bytessha256_digest_workspacesys_munmap |
| 544 | func sha256_digest_checked_native(bytes: *u8, n: i64, out: *u8) -> i64 { |