Commit Graph

11 Commits

Author SHA1 Message Date
Cléo REBERT e4e055dedd
5.0
Signed-off-by: Cléo REBERT <cleo.rebert-ext@treezor.com>
2023-03-28 10:47:52 +02:00
Cléo Rebert cf017a9b67
Zeroize secret 2022-12-22 17:06:52 +01:00
constantoine 9a202c20ec
Fix coverage for secret.rs
Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
2022-10-10 10:34:52 +02:00
constantoine b308f7455d
Add tests for secret.rs
Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
2022-10-10 10:22:52 +02:00
constantoine 0f0e7d6032
Cargo fmt
Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
2022-10-05 11:55:37 +02:00
constantoine 4d9e41ee68
Fix clippy warnings
Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
2022-10-05 11:45:21 +02:00
Cléo Rebert 26416df28b
Fix totp_url export
* base32 unexported
* Secret comparison is now constant_time
2022-08-13 11:23:03 +02:00
constantoine b6295ae878
Fix doc tests
Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
2022-08-09 11:13:55 +02:00
constantoine 0103e7a6e5
Add test to secret.rs
Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>
2022-08-09 11:04:11 +02:00
Steven Salaun 3d61027d52 Change Secret: Plain to Raw & Base32 to Encoded 2022-08-08 20:19:04 +02:00
Steven Salaun f65a2e840a add `Secret` enum & `gen_secret` feature
- Make the distinction between encoded/non-encoded secret clear,
and allows for easy transformation betwen the two formats
- add `gen_secret` feature to allow easy generation of CSPRNG secret,
also add function to generate rfc recommended length secret
2022-08-06 23:04:50 +02:00