UPSTREAM.json

cdk-rsx/crates/crypto/aes/UPSTREAM.json

UPSTREAM.json180 lines← SDK documentation
1{2  "schema": "cdk-rsx-crypto-source-profile/v1",3  "profile_id": "rustcrypto-aes128-fixslice32-v1",4  "package": "cdk-rsx-crypto-aes",5  "selection": {6    "feature": "fixslice32",7    "default_enabled": false,8    "all_targets_use_u32": true,9    "hardware_dispatch": false,10    "host_crypto_callbacks": false,11    "aes_compact": false,12    "hazmat_exposed": false13  },14  "algorithm": {15    "cipher": "AES-128 encryption",16    "key_bytes": 16,17    "block_bytes": 16,18    "parallel_blocks": 2,19    "schedule_words_u32": 88,20    "schedule_bytes": 352,21    "one_block_padding": "one public zero dummy block; discard its ciphertext",22    "two_blocks": "one upstream two-lane call",23    "four_blocks": "two upstream two-lane calls"24  },25  "upstream": {26    "repository": "https://github.com/RustCrypto/block-ciphers",27    "crate": "aes",28    "version": "0.8.4",29    "registry_checksum": "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0",30    "git_commit": "f2dbee516b4d0cf4cb4f3045d09e35b5fd80087b",31    "path_in_vcs": "aes",32    "source_path": "aes/src/soft/fixslice32.rs",33    "source_url": "https://github.com/RustCrypto/block-ciphers/blob/f2dbee516b4d0cf4cb4f3045d09e35b5fd80087b/aes/src/soft/fixslice32.rs",34    "license": "MIT OR Apache-2.0",35    "original_c_author": "Alexandre Adomnicai",36    "raw_source_verification": {37      "url": "https://raw.githubusercontent.com/RustCrypto/block-ciphers/f2dbee516b4d0cf4cb4f3045d09e35b5fd80087b/aes/src/soft/fixslice32.rs",38      "status": "byte_equal",39      "sha256": "c69c0fa430cb62c4d88a13d5c3387202e1962b47978a6a7026bd34789f2d2577"40    }41  },42  "copied_files": {43    "vendor/soft/fixslice32.rs": {44      "bytes": 41900,45      "sha256": "c69c0fa430cb62c4d88a13d5c3387202e1962b47978a6a7026bd34789f2d2577"46    },47    "vendor/LICENSE-MIT": {48      "bytes": 1057,49      "sha256": "f7e8ab639afef15573680c97f796166835cbeb3865175882fea41c60d106b733"50    },51    "vendor/LICENSE-APACHE": {52      "bytes": 10849,53      "sha256": "a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5"54    },55    "vendor/cargo-vcs-info.json": {56      "bytes": 97,57      "sha256": "0fcef950ece96a5a772adf08b17fa0027c70619e0b0b0d904e1900365978b387"58    }59  },60  "local_changes": {61    "vendor/soft/fixslice32.rs": "none; byte-identical complete upstream file",62    "src/lib.rs": "no_std opt-in module selection, public profile ID, unexposed upstream type alias, rejection of unsupported compact/hazmat variants",63    "src/fixslice32.rs": "borrowed-buffer AES-128-only wrapper; caches schedule, no Clone/Debug/Serde; zeroize-on-Drop schedule and wrapper batches; fixed one/two/four-block APIs",64    "src/fixslice32/tests.rs": "independent NIST vectors, deterministic registry-AES differential corpus, unaligned sentinels and ownership contract checks",65    "Cargo.toml": "explicit default-off fixslice32 feature, exact dependency versions, named expected upstream cfg inputs"66  },67  "source_function_map": [68    {69      "api": "Aes128::new",70      "upstream": "aes128_key_schedule",71      "source": "vendor/soft/fixslice32.rs",72      "behavior": "same fixsliced key schedule; borrowed 16-byte key"73    },74    {75      "api": "encrypt_block / encrypt_block_in_place",76      "upstream": "aes128_encrypt",77      "source": "vendor/soft/fixslice32.rs",78      "behavior": "one batch with one actual block and one zero dummy"79    },80    {81      "api": "encrypt_two / encrypt_two_in_place",82      "upstream": "aes128_encrypt",83      "source": "vendor/soft/fixslice32.rs",84      "behavior": "one batch with two actual blocks"85    },86    {87      "api": "encrypt_four / encrypt_four_in_place",88      "upstream": "aes128_encrypt",89      "source": "vendor/soft/fixslice32.rs",90      "behavior": "two batches with four actual blocks"91    },92    {93      "api": "private round arithmetic",94      "upstream": "bitslice, sub_bytes, mix_columns_0/1/2/3, add_round_key, shift_rows_2, inv_bitslice",95      "source": "vendor/soft/fixslice32.rs",96      "behavior": "unchanged fixed-index Boolean arithmetic"97    }98  ],99  "dependencies": [100    {101      "name": "cipher",102      "version": "0.4.4",103      "registry_checksum": "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad",104      "license": "MIT OR Apache-2.0",105      "git_commit": "0af93f6076a76757c65cb2ef6f6abd9756440478",106      "path_in_vcs": "cipher",107      "role": "direct",108      "identity_source": "workspace lockfile and registry package metadata"109    },110    {111      "name": "zeroize",112      "version": "1.9.1",113      "registry_checksum": "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879",114      "license": "Apache-2.0 OR MIT",115      "git_commit": "34a6ebcb9b920ec7ae5809e470fce94fe7c0cb55",116      "path_in_vcs": "zeroize",117      "role": "direct",118      "identity_source": "workspace lockfile and registry package metadata"119    },120    {121      "name": "generic-array",122      "version": "0.14.9",123      "registry_checksum": "4bb6743198531e02858aeaea5398fcc883e71851fcbcb5a2f773e2fb6cb1edf2",124      "license": "MIT",125      "git_commit": "02af3fea451ef810dd3bee78aa73ad46453b88a6",126      "path_in_vcs": "",127      "role": "transitive type representation",128      "identity_source": "workspace lockfile and registry package metadata"129    },130    {131      "name": "typenum",132      "version": "1.20.1",133      "registry_checksum": "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20",134      "license": "MIT OR Apache-2.0",135      "git_commit": "0db9a0f731981f29266b63586c29fa07e4477b1a",136      "path_in_vcs": "",137      "role": "transitive type representation",138      "identity_source": "workspace lockfile and registry package metadata"139    }140  ],141  "primary_references": [142    {143      "url": "https://csrc.nist.gov/pubs/fips/197/final",144      "role": "AES algorithm; 2023 editorial revision makes no technical algorithm changes"145    },146    {147      "url": "https://csrc.nist.gov/pubs/sp/800/38/a/final",148      "role": "F.1.1 four-block AES-128 known-answer corpus"149    },150    {151      "url": "https://docs.rs/aes/0.8.4/src/aes/lib.rs.html",152      "role": "pinned software constant-time and compact-backend documentation"153    },154    {155      "url": "https://eprint.iacr.org/2020/1123",156      "role": "fixslicing research background only; no paper-performance claim copied to Wasm"157    }158  ],159  "secret_lifecycle": {160    "original_key": "caller-owned borrowed bytes; not retained as bytes",161    "expanded_schedule": "private owner; zeroize on Drop; no Clone/Debug/Serde",162    "wrapper_batches": "32-byte input/output batch guards zeroize on Drop",163    "upstream_temporaries": "unchanged; no claim of complete erasure of compiler/register/stack temporaries",164    "caller_buffers": "caller-owned; never automatically erased"165  },166  "qualification": {167    "source_copy_verified": true,168    "native_test_status": "Recorded native NIST known-answer, registry-AES differential, unaligned-buffer and owner-contract tests pass; copied-source provenance alone is not execution qualification.",169    "installed_wasm_status": "The dedicated GC benchmark's actual 32-case AES byte probe checks the general-key fixslice32 one/two/four-block APIs against the portable native reference, separately from generic SIMD API checks.",170    "performance_status": "Actual general-key fixslice32 aes32-block/pair/four rows remain separately named measured references with real-block denominators. They are distinct from public-zero-key GC kernel measurements and do not measure generic secret-key narrow SIMD costs.",171    "default_recommendation": "fixslice32 remains an opt-in portable reference. The round5 preferred GC configuration uses optional aes-narrow on the qualified engine under its hardware register-swizzle assumption; see SIMD128-PROVENANCE.json for the separate SIMD source and execution scope.",172    "evidence": {173      "aes32_cost_report": "../../research/benchmarks/2026-10-31-garbled-circuit-round2.md",174      "current_cost_report": "../../research/benchmarks/2026-10-31-garbled-circuit-round5.md",175      "current_independent_review": "../../research/experiments/2026-10-31-garbled-circuit/round5/narrow-aes/review/IC-REVIEW.txt",176      "benchmark_contract": "../../bench/garbled-circuit/README.md",177      "simd_source_profile": "SIMD128-PROVENANCE.json"178    }179  }180}