├── .github └── workflows │ └── rustico.yml ├── Cargo.toml ├── LICENSE ├── benches └── h2c.rs ├── examples └── call01.rs ├── readme.md ├── src ├── api.rs ├── edw.rs ├── expander │ ├── mod.rs │ ├── testdata │ │ ├── expand_message_xmd_SHA256_256.json │ │ ├── expand_message_xmd_SHA256_38.json │ │ ├── expand_message_xmd_SHA512_38.json │ │ ├── expand_message_xof_SHAKE128_256.json │ │ ├── expand_message_xof_SHAKE128_36.json │ │ └── expand_message_xof_SHAKE256_36.json │ └── tests.rs ├── fp.rs ├── lib.rs ├── macros.rs ├── mont.rs └── weier.rs └── tests ├── json.rs ├── testdata ├── BLS12381G1_XMD-SHA-256_SSWU_NU_.json ├── BLS12381G1_XMD-SHA-256_SSWU_RO_.json ├── BLS12381G2_XMD-SHA-256_SSWU_NU_.json ├── BLS12381G2_XMD-SHA-256_SSWU_RO_.json ├── P256_XMD-SHA-256_SSWU_NU_.json ├── P256_XMD-SHA-256_SSWU_RO_.json ├── P384_XMD-SHA-384_SSWU_NU_.json ├── P384_XMD-SHA-384_SSWU_RO_.json ├── P521_XMD-SHA-512_SSWU_NU_.json ├── P521_XMD-SHA-512_SSWU_RO_.json ├── curve25519_XMD-SHA-512_ELL2_NU_.json ├── curve25519_XMD-SHA-512_ELL2_RO_.json ├── curve448_XOF-SHAKE256_ELL2_NU_.json ├── curve448_XOF-SHAKE256_ELL2_RO_.json ├── edwards25519_XMD-SHA-512_ELL2_NU_.json ├── edwards25519_XMD-SHA-512_ELL2_RO_.json ├── edwards448_XOF-SHAKE256_ELL2_NU_.json ├── edwards448_XOF-SHAKE256_ELL2_RO_.json ├── secp256k1_XMD-SHA-256_SSWU_NU_.json └── secp256k1_XMD-SHA-256_SSWU_RO_.json └── tests.rs /.github/workflows/rustico.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/.github/workflows/rustico.yml -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/LICENSE -------------------------------------------------------------------------------- /benches/h2c.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/benches/h2c.rs -------------------------------------------------------------------------------- /examples/call01.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/examples/call01.rs -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/readme.md -------------------------------------------------------------------------------- /src/api.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/api.rs -------------------------------------------------------------------------------- /src/edw.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/edw.rs -------------------------------------------------------------------------------- /src/expander/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/expander/mod.rs -------------------------------------------------------------------------------- /src/expander/testdata/expand_message_xmd_SHA256_256.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/expander/testdata/expand_message_xmd_SHA256_256.json -------------------------------------------------------------------------------- /src/expander/testdata/expand_message_xmd_SHA256_38.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/expander/testdata/expand_message_xmd_SHA256_38.json -------------------------------------------------------------------------------- /src/expander/testdata/expand_message_xmd_SHA512_38.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/expander/testdata/expand_message_xmd_SHA512_38.json -------------------------------------------------------------------------------- /src/expander/testdata/expand_message_xof_SHAKE128_256.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/expander/testdata/expand_message_xof_SHAKE128_256.json -------------------------------------------------------------------------------- /src/expander/testdata/expand_message_xof_SHAKE128_36.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/expander/testdata/expand_message_xof_SHAKE128_36.json -------------------------------------------------------------------------------- /src/expander/testdata/expand_message_xof_SHAKE256_36.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/expander/testdata/expand_message_xof_SHAKE256_36.json -------------------------------------------------------------------------------- /src/expander/tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/expander/tests.rs -------------------------------------------------------------------------------- /src/fp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/fp.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/macros.rs -------------------------------------------------------------------------------- /src/mont.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/mont.rs -------------------------------------------------------------------------------- /src/weier.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/src/weier.rs -------------------------------------------------------------------------------- /tests/json.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/json.rs -------------------------------------------------------------------------------- /tests/testdata/BLS12381G1_XMD-SHA-256_SSWU_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/BLS12381G1_XMD-SHA-256_SSWU_NU_.json -------------------------------------------------------------------------------- /tests/testdata/BLS12381G1_XMD-SHA-256_SSWU_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/BLS12381G1_XMD-SHA-256_SSWU_RO_.json -------------------------------------------------------------------------------- /tests/testdata/BLS12381G2_XMD-SHA-256_SSWU_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/BLS12381G2_XMD-SHA-256_SSWU_NU_.json -------------------------------------------------------------------------------- /tests/testdata/BLS12381G2_XMD-SHA-256_SSWU_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/BLS12381G2_XMD-SHA-256_SSWU_RO_.json -------------------------------------------------------------------------------- /tests/testdata/P256_XMD-SHA-256_SSWU_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/P256_XMD-SHA-256_SSWU_NU_.json -------------------------------------------------------------------------------- /tests/testdata/P256_XMD-SHA-256_SSWU_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/P256_XMD-SHA-256_SSWU_RO_.json -------------------------------------------------------------------------------- /tests/testdata/P384_XMD-SHA-384_SSWU_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/P384_XMD-SHA-384_SSWU_NU_.json -------------------------------------------------------------------------------- /tests/testdata/P384_XMD-SHA-384_SSWU_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/P384_XMD-SHA-384_SSWU_RO_.json -------------------------------------------------------------------------------- /tests/testdata/P521_XMD-SHA-512_SSWU_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/P521_XMD-SHA-512_SSWU_NU_.json -------------------------------------------------------------------------------- /tests/testdata/P521_XMD-SHA-512_SSWU_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/P521_XMD-SHA-512_SSWU_RO_.json -------------------------------------------------------------------------------- /tests/testdata/curve25519_XMD-SHA-512_ELL2_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/curve25519_XMD-SHA-512_ELL2_NU_.json -------------------------------------------------------------------------------- /tests/testdata/curve25519_XMD-SHA-512_ELL2_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/curve25519_XMD-SHA-512_ELL2_RO_.json -------------------------------------------------------------------------------- /tests/testdata/curve448_XOF-SHAKE256_ELL2_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/curve448_XOF-SHAKE256_ELL2_NU_.json -------------------------------------------------------------------------------- /tests/testdata/curve448_XOF-SHAKE256_ELL2_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/curve448_XOF-SHAKE256_ELL2_RO_.json -------------------------------------------------------------------------------- /tests/testdata/edwards25519_XMD-SHA-512_ELL2_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/edwards25519_XMD-SHA-512_ELL2_NU_.json -------------------------------------------------------------------------------- /tests/testdata/edwards25519_XMD-SHA-512_ELL2_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/edwards25519_XMD-SHA-512_ELL2_RO_.json -------------------------------------------------------------------------------- /tests/testdata/edwards448_XOF-SHAKE256_ELL2_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/edwards448_XOF-SHAKE256_ELL2_NU_.json -------------------------------------------------------------------------------- /tests/testdata/edwards448_XOF-SHAKE256_ELL2_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/edwards448_XOF-SHAKE256_ELL2_RO_.json -------------------------------------------------------------------------------- /tests/testdata/secp256k1_XMD-SHA-256_SSWU_NU_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/secp256k1_XMD-SHA-256_SSWU_NU_.json -------------------------------------------------------------------------------- /tests/testdata/secp256k1_XMD-SHA-256_SSWU_RO_.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/testdata/secp256k1_XMD-SHA-256_SSWU_RO_.json -------------------------------------------------------------------------------- /tests/tests.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/armfazh/h2c-rust-ref/HEAD/tests/tests.rs --------------------------------------------------------------------------------