19 Commits

Author SHA1 Message Date
c3d6425e2d
reorganised cli 2020-04-29 18:50:55 +02:00
9307503bdc
applied clippy lints 2020-04-07 20:06:24 +02:00
Marek Mahut
a307d87d88 use password helper in modified environments 2020-01-10 16:52:22 +01:00
9a8ea993b5
fmt
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-12 13:40:24 +02:00
shimunn
7eb9dcc928
Merge pull request #2 from jannic/add-test-cases
Some checks failed
continuous-integration/drone/push Build is failing
Add test case for hash calculations
2019-10-12 13:24:33 +02:00
Jan Niehusmann
42945956a6 Add test case for hash calculations
While replacing the implementation of sha256, I noticed that there
is no test case actually calling the hash calculations.

Added two such test cases. Please note that I didn't verify that the
result is correct, but just took the value the existing implementation
returned. So those tests will only catch future regressions.
2019-10-11 22:15:21 +00:00
Jan Niehusmann
3cf5ccf2a0 Use ring for sha256 calculation
According to https://rustsec.org/advisories/RUSTSEC-2016-0005.html,
rust-crypto is unmaintained.

Crates depending on rust-crypto should be ported to other crates.

This port replaces rust-crypto with the sha2 implementation of ring,
as fido2luks already depends on it via ctap_hmac. Note that it uses
an old version of ring, so I used the same version, here.
2019-10-11 22:06:00 +00:00
99e408cc8d
replaced InputSalt::Both with String option
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-06 22:15:29 +02:00
50fad9ce92
add subcommand to remove key from device
Some checks failed
continuous-integration/drone/push Build is failing
2019-09-22 20:39:21 +02:00
78d5eafc9a
structopt 2019-09-20 17:03:32 +02:00
8a9cf9019d
ask password twice 2019-09-20 00:52:04 +02:00
03cc5c70fd
from err
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-18 19:38:58 +02:00
814761565d
trim password
Some checks failed
continuous-integration/drone/push Build is failing
2019-09-18 01:15:52 +02:00
d3eb44852b
ask
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-18 00:34:23 +02:00
80c100d584
use full device path
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-17 21:55:31 +02:00
c9d8d24eec
fetch salt only once
All checks were successful
continuous-integration/drone/push Build is passing
2019-09-17 21:45:28 +02:00
1a262c17cb
rpassword
Some checks failed
continuous-integration/drone/push Build is failing
2019-09-17 21:33:06 +02:00
34e428f507
parse env 2019-09-17 20:39:40 +02:00
4679e939cf
refractor 2019-09-17 14:28:55 +02:00