daxpedda and Kevin Lewi
d1dfee9a65
Add SlowHash configuration ( #234 )
...
* Add `SlowHash` configuration
* Use a reference
* Changing generic argument to be CipherSuite instead of SlowHash
Co-authored-by: Kevin Lewi <[email protected] >
2021-09-02 02:28:21 -07:00
Kevin Lewi
aee4b5d50e
Simplifying error handling ( #232 )
2021-08-22 12:28:19 -07:00
daxpedda
6c7840514d
Fix no_std support ( #229 )
2021-08-16 20:11:53 -07:00
daxpedda and Kevin Lewi
8a7bcf9097
no_std support (#225 )
...
* No std implementation
* Run tests with std
* Adding wasm32-unknown-unknown target
Co-authored-by: Kevin Lewi <[email protected] >
2021-08-11 21:25:07 -07:00
daxpedda
88673d8e05
Separate AKE from OPRF take 2 ( #222 )
...
* Separate AKE from OPRF
Introduce X25519 implementation
* Rename `AkeGroup` to `KeGroup` and `Group` to `OprfGroup`
* Add documentation to "Overview"
2021-08-04 12:24:46 -07:00
daxpedda
10a38bc58b
Merge GroupWithMapToCurve into Group ( #219 )
...
* Merge `GroupWithMapToCurve` into `Group`
* Remove `hash_to_curve`
* Ristretto improvements
* P-256 improvements
2021-08-01 17:48:56 -07:00
dAxpeDDa
db4e07811e
Implement oprf_key test
2021-07-30 14:45:27 -07:00
dAxpeDDa
a5b9330b63
Improve types and documentation
2021-07-30 14:45:27 -07:00
dAxpeDDa
3f6b6d4afe
Implement client_mac_key test
2021-07-30 14:45:27 -07:00
dAxpeDDa
ec528eb4d9
Implement server_mac_key test
2021-07-30 14:45:27 -07:00
dAxpeDDa
4298deadff
Implement handshake_secret test
2021-07-30 14:45:27 -07:00
dAxpeDDa
49dc5b9050
Implement auth_key test
2021-07-30 14:45:27 -07:00
dAxpeDDa
dcaedc278c
Fix randomized_pwd
2021-07-30 14:45:27 -07:00
dAxpeDDa
460e2aef1c
Fix rustfmt
2021-07-30 14:45:27 -07:00
dAxpeDDa
b90163a007
Add randomized_pwd tests
2021-07-30 14:45:27 -07:00
daxpedda
77461b640d
Add custom ServerSetup construction
2021-07-23 15:23:10 -07:00
daxpedda
4ce61acc6e
Implement custom error type
2021-07-23 15:23:10 -07:00
daxpedda
3d01a605df
Move PrivateKey from CipherSuite to ServerSetup
2021-07-23 15:23:10 -07:00
daxpedda
124d64c9ca
Fix 1.41 compilation
2021-07-23 15:23:10 -07:00
daxpedda
d61e2d0b5c
Introduce PrivateKey associated type to CipherSuite
2021-07-23 15:23:10 -07:00
Kevin Lewi
b4882f8810
Adding reflected value check on client side
2021-07-14 18:10:35 -07:00
Kevin Lewi
8de2f37235
Updating VOPRF dependency
2021-07-12 15:16:08 -07:00
Kevin Lewi
e6b5a5dcf6
Adding i2osp error checking condition
2021-07-08 19:38:30 -07:00
daxpedda
c0e1181cac
Rustfmt
2021-07-08 18:55:53 -07:00
daxpedda
52d68d6f77
Constraint Scalar with Copy
2021-07-08 18:55:53 -07:00
daxpedda
dd97a81641
Generic PublicKey and PrivateKey
2021-07-08 18:55:53 -07:00
daxpedda
f05fcf0278
Expose public key in ClientRegistrationFinishResult
2021-06-28 02:06:10 -07:00
daxpedda
eb59676a94
Implement common traits
2021-06-22 20:46:34 -07:00
Kevin Lewi
1572ff0104
Adding support for "internal mode" and fake credential response + test vectors ( #155 )
...
* Adding support for internal and external mode
2021-06-21 01:29:39 -07:00
Kevin Lewi
f0c13945d1
Adding client enumeration mitigations ( #153 )
2021-06-21 01:29:39 -07:00
Kevin Lewi
98f1821897
Adding identity element checks and ensuring non-zero scalar selection
2021-06-15 18:39:33 -07:00
Valentin Tolmer
210e0e99df
Enforce public vs private keys via types
2021-06-15 14:47:35 -07:00
Valentin Tolmer
2c7fe4e382
Implement Clone for every message type
2021-06-15 10:06:32 -07:00
Kevin Lewi
30e27a11e2
Ensure that all public keys are being checked when deserialized
2021-06-14 22:39:13 -07:00
Kevin Lewi
0935bea8ff
Adding documentation of slow-hash + other features
2021-06-13 15:45:53 -07:00
Kevin Lewi
51b14f34e0
Fixing some clippy errors and CI
2021-06-12 23:24:27 -07:00
Marcelin Dupraz
055e76a115
Implement serde serialization and deserialization to follow Rust's standards.
2021-06-12 23:24:27 -07:00
Kevin Lewi
8bc5e7dc02
Add zeroize on drop for remaining intermediate API states and tests
2021-06-04 16:37:54 -07:00
Kevin Lewi
fa0fb48654
Fixing test vector bug with envelope ciphertext serialization and updating VOPRF ( #145 )
2021-02-21 18:44:36 -08:00
Kevin Lewi
a457d82793
Updating transcript computation for 3DH ( #143 )
2021-02-19 12:02:44 -08:00
Kevin Lewi
782eeb7090
Converting to_bytes and try_from to serialize() and deserialize() ( #138 )
2021-02-17 02:47:00 -08:00
Kevin Lewi
7f84984f61
Making message type parameters set to CipherSuite ( #140 )
2021-02-17 02:13:03 -08:00
Kevin Lewi
e694a88ef9
Exporting rand ( #137 )
2021-02-11 18:10:48 -08:00
Kevin Lewi
160ac47ffa
Renaming shared secret to session key ( #133 )
2021-02-08 11:19:06 -08:00
Kevin Lewi
099f887530
Applying envelope simplified construction and km3 mac changes ( #128 )
2021-02-04 15:57:06 -08:00
Kevin Lewi
9d3963f98e
Addressing various TODOs and minor cleanups ( #127 )
2021-02-02 12:12:20 -08:00
Kevin Lewi
6eeeb0db28
Fixing test vectors and use of SHA512 ( #120 )
2021-01-26 09:27:30 -08:00
Kevin Lewi
6dc1c8b212
Turning KeyPair into a struct ( #119 )
2021-01-25 13:20:36 -08:00
Kevin Lewi
2a2d0888a5
Adding encryption algorithm and removing unnecesssary info fields ( #114 )
2021-01-14 15:30:37 -08:00
Kevin Lewi
fa6752cdc5
Adding documentation for advanced usage + optional parameters ( #110 )
2021-01-05 10:13:00 -08:00