Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
krypto
ZKFriendlyHashZoo
Commits
c1b60898
Commit
c1b60898
authored
Aug 09, 2021
by
Roman Walch
Browse files
naming
parent
92799a62
Changes
16
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c1b60898
...
...
@@ -12,7 +12,7 @@ Please use the following BibTeX entry to cite our work in academic papers.
```
tex
@misc
{
HashZKP,
title
=
{
Hash functions for Zero-Knowledge applications Zoo
}
,
title =
{
Hash functions for Zero-Knowledge applications Zoo
}
,
howpublished =
{
\url
{
https://extgit.iaik.tugraz.at/krypto/zkfriendlyhashzoo
}}
,
month = aug,
year = 2021,
...
...
plain_impls/Cargo.toml
View file @
c1b60898
[package]
name
=
"
ZKH
ash"
name
=
"
zkh
ash"
version
=
"0.1.0"
authors
=
[
"Roman Walch <roman.walch@iaik.tugraz.at>"
]
description
=
"Rust implementaiton of the ReinforcedConcrete permutation"
...
...
plain_impls/benches/fp4_bls12.rs
View file @
c1b60898
use
criterion
::{
black_box
,
criterion_group
,
criterion_main
,
Criterion
};
use
rand
::{
thread_rng
,
Rng
};
use
ZKH
ash
::
fields
::{
bls12
::
FpBLS12
,
utils4
};
use
zkh
ash
::
fields
::{
bls12
::
FpBLS12
,
utils4
};
type
Scalar
=
FpBLS12
;
...
...
plain_impls/benches/fp4_bn256.rs
View file @
c1b60898
use
criterion
::{
black_box
,
criterion_group
,
criterion_main
,
Criterion
};
use
rand
::{
thread_rng
,
Rng
};
use
ZKH
ash
::
fields
::{
bn256
::
FpBN256
,
utils4
};
use
zkh
ash
::
fields
::{
bn256
::
FpBN256
,
utils4
};
type
Scalar
=
FpBN256
;
...
...
plain_impls/benches/fp4_st.rs
View file @
c1b60898
use
criterion
::{
black_box
,
criterion_group
,
criterion_main
,
Criterion
};
use
rand
::{
thread_rng
,
Rng
};
use
ZKH
ash
::
fields
::{
st
::
FpST
,
utils4
};
use
zkh
ash
::
fields
::{
st
::
FpST
,
utils4
};
type
Scalar
=
FpST
;
...
...
plain_impls/benches/fp_bls12.rs
View file @
c1b60898
use
criterion
::{
black_box
,
criterion_group
,
criterion_main
,
Criterion
};
use
ff
::
PrimeField
;
use
rand
::{
thread_rng
,
Rng
};
use
ZKH
ash
::
fields
::{
bls12
::
FpBLS12
,
utils
};
use
zkh
ash
::
fields
::{
bls12
::
FpBLS12
,
utils
};
type
Scalar
=
FpBLS12
;
...
...
plain_impls/benches/fp_bn256.rs
View file @
c1b60898
use
criterion
::{
black_box
,
criterion_group
,
criterion_main
,
Criterion
};
use
ff
::
PrimeField
;
use
rand
::{
thread_rng
,
Rng
};
use
ZKH
ash
::
fields
::{
bn256
::
FpBN256
,
utils
};
use
zkh
ash
::
fields
::{
bn256
::
FpBN256
,
utils
};
type
Scalar
=
FpBN256
;
...
...
plain_impls/benches/fp_st.rs
View file @
c1b60898
use
criterion
::{
black_box
,
criterion_group
,
criterion_main
,
Criterion
};
use
ff
::
PrimeField
;
use
rand
::{
thread_rng
,
Rng
};
use
ZKH
ash
::
fields
::{
st
::
FpST
,
utils
};
use
zkh
ash
::
fields
::{
st
::
FpST
,
utils
};
type
Scalar
=
FpST
;
...
...
plain_impls/benches/hashes.rs
View file @
c1b60898
...
...
@@ -9,9 +9,9 @@ use random::thread_rng;
use
random
::
Rng
;
use
sha2
::{
Digest
,
Sha256
};
use
sha3
::
Sha3_256
;
use
ZKH
ash
::
pedersen_hash
::
pedersen_hash
::
pedersen_hash
;
use
ZKH
ash
::
pedersen_hash
::
pedersen_hash
::
Personalization
;
use
ZKH
ash
::
sinsemilla
::
sinsemilla
::{
use
zkh
ash
::
pedersen_hash
::
pedersen_hash
::
pedersen_hash
;
use
zkh
ash
::
pedersen_hash
::
pedersen_hash
::
Personalization
;
use
zkh
ash
::
sinsemilla
::
sinsemilla
::{
i2lebsp_k
,
HashDomain
,
L_ORCHARD_MERKLE
,
MERKLE_CRH_PERSONALIZATION
,
};
...
...
plain_impls/benches/rc_bls12.rs
View file @
c1b60898
use
criterion
::{
black_box
,
criterion_group
,
criterion_main
,
Criterion
};
use
ZKH
ash
::{
use
zkh
ash
::{
feistel_mimc
::{
feistel_mimc
::
FeistelMimc
,
feistel_mimc_instances
::
FM_BLS_PARAMS
},
fields
::{
bls12
::
FpBLS12
,
utils
},
poseidon
::{
poseidon
::
Poseidon
,
poseidon_instance_bls12
::
POSEIDON_BLS_PARAMS
},
...
...
plain_impls/benches/rc_bn256.rs
View file @
c1b60898
use
criterion
::{
black_box
,
criterion_group
,
criterion_main
,
Criterion
};
use
ZKH
ash
::{
use
zkh
ash
::{
feistel_mimc
::{
feistel_mimc
::
FeistelMimc
,
feistel_mimc_instances
::
FM_BN_PARAMS
},
fields
::{
bn256
::
FpBN256
,
utils
},
poseidon
::{
poseidon
::
Poseidon
,
poseidon_instance_bn256
::
POSEIDON_BN_PARAMS
},
...
...
plain_impls/benches/rc_st.rs
View file @
c1b60898
use
criterion
::{
black_box
,
criterion_group
,
criterion_main
,
Criterion
};
use
ZKH
ash
::{
use
zkh
ash
::{
feistel_mimc
::{
feistel_mimc
::
FeistelMimc
,
feistel_mimc_instances
::
FM_ST_PARAMS
},
fields
::{
st
::
FpST
,
utils
},
poseidon
::{
poseidon
::
Poseidon
,
poseidon_instance_st
::
POSEIDON_ST_PARAMS
},
...
...
plain_impls/examples/rc_bls12.rs
View file @
c1b60898
use
ZKH
ash
::{
use
zkh
ash
::{
fields
::{
bls12
::
FpBLS12
,
utils
},
reinforced_concrete
::{
reinforced_concrete
::
ReinforcedConcrete
,
reinforced_concrete_instances
::
RC_BLS_PARAMS
,
...
...
plain_impls/examples/rc_bn256.rs
View file @
c1b60898
use
ZKH
ash
::{
use
zkh
ash
::{
fields
::{
bn256
::
FpBN256
,
utils
},
reinforced_concrete
::{
reinforced_concrete
::
ReinforcedConcrete
,
reinforced_concrete_instances
::
RC_BN_PARAMS
,
...
...
plain_impls/examples/rc_st.rs
View file @
c1b60898
use
ZKH
ash
::{
use
zkh
ash
::{
fields
::{
st
::
FpST
,
utils
},
reinforced_concrete_st
::{
reinforced_concrete_st
::
ReinforcedConcreteSt
,
...
...
plain_impls/src/lib.rs
View file @
c1b60898
//! #
ZKH
ash
//! #
zkh
ash
//!
//! A pure Rust implementation of the ReinforcedConcrete Permutation
#![cfg_attr(feature
=
"asm"
,
feature(asm))]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment