File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
extensions/sha2/circuit/src/sha2_chips
guest-libs/k256/tests/programs/examples Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -570,15 +570,17 @@ fn negative_sha384_test_bad_final_hash() {
570570// Ensure GPU tracegen is equivalent to CPU tracegen
571571// ////////////////////////////////////////////////////////////////////////////////////
572572
573+ type Sha2GpuTestChip < C > = GpuTestChipHarness <
574+ F ,
575+ Sha2VmExecutor < C > ,
576+ Sha2MainAir < C > ,
577+ Sha2MainChipGpu < C > ,
578+ Sha2MainChip < F , C > ,
579+ > ;
580+
573581#[ cfg( feature = "cuda" ) ]
574582struct GpuHarness < C : Sha2Config > {
575- pub main : GpuTestChipHarness <
576- F ,
577- Sha2VmExecutor < C > ,
578- Sha2MainAir < C > ,
579- Sha2MainChipGpu < C > ,
580- Sha2MainChip < F , C > ,
581- > ,
583+ pub main : Sha2GpuTestChip < C > ,
582584 block_air : Sha2BlockHasherVmAir < C > ,
583585 block_gpu : Sha2BlockHasherChipGpu < C > ,
584586 block_cpu : Sha2BlockHasherChip < F , C > ,
@@ -601,8 +603,7 @@ fn create_cuda_harness<C: Sha2Config>(tester: &GpuChipTestBuilder) -> GpuHarness
601603 tester. address_bits ( ) ,
602604 ) ;
603605
604- let block_hasher_air =
605- Sha2BlockHasherVmAir :: new ( bitwise_bus. clone ( ) , SUBAIR_BUS_IDX , SHA2_BUS_IDX ) ;
606+ let block_hasher_air = Sha2BlockHasherVmAir :: new ( bitwise_bus, SUBAIR_BUS_IDX , SHA2_BUS_IDX ) ;
606607 let block_hasher_chip = Sha2BlockHasherChip :: new (
607608 dummy_bitwise_chip. clone ( ) ,
608609 tester. address_bits ( ) ,
Original file line number Diff line number Diff line change 44extern crate alloc;
55
66use core:: hint:: black_box;
7+
78use ecdsa:: RecoveryId ;
89use hex_literal:: hex;
910use openvm_k256:: ecdsa:: { Signature , VerifyingKey } ;
You can’t perform that action at this time.
0 commit comments