Cléo Rebert
7ecdf7d440
Merge pull request #15 from constantoine/constant_time_eq
...
Add constant-time token comparison and partialEq trait
2022-04-24 16:48:30 +02:00
Cleo Rebert
1f1e1a6fe7
Add constant-time token comparison and partialEq trait
...
Add PartialEq for TOTP<T> and PartialEq+Eq for Algorithm
2022-04-24 16:41:56 +02:00
constantoine
ba925c2442
Update to 1.0
...
Signed-off-by: constantoine <cleo.rebert@gmail.com>
2022-04-15 15:08:41 +02:00
Cléo Rebert
0f245d26cc
Merge pull request #12 from ironhaven/patch-1
...
Use last byte of HMAC output for truncating
2022-04-08 20:31:05 +02:00
ironhaven
c30d02b512
Use last byte of HMAC output for truncating
...
This is to use the least significant byte of the HMAC regardless of size. RFC 6328 (TOTP) Section 1.2 says you can use SHA-1 SHA-256 or SHA-512 with the same algorithm of RFC 4226 (HTOP). This seems ok until you realize that all the new HMACs have different output sizes and HTOP only expects a 20 byte fixed MAC. It is not completely clear if RFC 4226 Section 5.3 means "get the bottom 4 bits from byte at offset 19" or "get the 4 least significant bits". Other implementations (6568c1a83a/src/pyotp/otp.py (L28)
) and Wikipedia read the "Dynamic Truncation" algorithm to be the last 4 bits of the MAC, so I think this implementation should follow the others.
2022-03-07 23:10:31 -06:00
constantoine
d1d6fc0411
Bump version
2022-02-10 11:25:41 +01:00
Cléo Rebert
4ef27bd616
Merge pull request #11 from tmpfs/doc-comment-warning
...
Warn about silent fallback to SHA1
2022-02-10 10:37:40 +01:00
Cléo Rebert
8db59df6c8
Update README.md
2022-02-10 10:34:28 +01:00
muji
9888507d16
Add notes to doc comments.
2022-02-10 17:00:33 +08:00
constantoine
4b486b5aa6
Removed byteorder dependency
2022-01-20 17:58:27 +01:00
constantoine
2ed419a83e
Merge branch 'master' of github.com:constantoine/totp-rs
2022-01-13 22:04:34 +01:00
Cléo Rebert
b68dd87ce2
Hash refactor
2022-01-13 21:52:55 +01:00
Cléo Rebert
79b714aeaa
Update README.md
2022-01-13 18:33:59 +01:00
Cléo Rebert
f2fb6ae53f
Update security.yml
2022-01-13 18:33:33 +01:00
Cléo Rebert
c111632726
Update security.yml
2022-01-13 18:26:45 +01:00
Cléo Rebert
052531694f
Update rust.yml
2022-01-13 18:19:34 +01:00
Cléo Rebert
4f1324411c
Update rust.yml
2022-01-13 18:15:14 +01:00
Cléo Rebert
b26322cd33
Update rust.yml
2022-01-13 18:04:12 +01:00
Cléo Rebert
2f864c4585
Update rust.yml
2022-01-13 18:00:02 +01:00
Cléo Rebert
4664298966
Update rust.yml
2022-01-13 17:56:20 +01:00
Cléo Rebert
4e5e605db6
Merge branch 'master' of github.com:constantoine/totp-rs
2022-01-13 17:52:12 +01:00
Cléo Rebert
b23080d4de
Add crates.io badge and coverage badge
2022-01-13 17:52:06 +01:00
Cléo Rebert
aa1dccb397
Create security.yml
2022-01-13 17:41:52 +01:00
Cléo Rebert
5a39aa778b
Update rust.yml
2022-01-13 16:52:27 +01:00
Cléo Rebert
f78707cb05
0.7.1
2022-01-13 16:35:38 +01:00
Cléo Rebert
d75ca4ddcd
Changed to 7.0 for 2021 edition
2022-01-13 16:23:07 +01:00
Cléo Rebert
97695cf26d
Updated dependencies, bumped to 2021 edition
...
- Updated sha2 from a yanked version
- Updated sha-1
- Updated hmac
- Updated byteorder
- Updated base64
2022-01-13 15:55:04 +01:00
Cléo Rebert
43107283ac
Update README.md
2021-08-20 18:59:09 +02:00
Cléo Rebert
0f59d89995
New version
2021-08-20 18:50:56 +02:00
Cléo Rebert
de4a4f91c1
Update dependencies
2021-08-20 18:49:34 +02:00
Cléo Rebert
981ad64477
Fixed warning about deprecated type alias
2020-11-02 23:21:19 +01:00
Cleo Rebert
9c84840f65
Bumped Cargo.toml version
2020-09-12 08:55:35 +02:00
Cléo Rebert
8c86a94f3e
Merge pull request #8 from evenorog/master
...
Remove some unnecessary to_vec calls in code
2020-09-12 08:54:07 +02:00
evenorog
ffe9e4d50f
Remove some unnecessary to_vec calls in code
2020-08-09 20:10:44 +02:00
Cleo Rebert
12cbfc1005
Updated README.md
2020-08-09 08:36:06 +02:00
Cléo Rebert
730a767b84
Bumped version number in README.md
2020-08-09 08:28:00 +02:00
Cleo Rebert
b4c1b5d43c
Bumped up major version following PR
2020-08-08 17:21:06 +02:00
Cléo Rebert
54116c0e45
Merge pull request #7 from evenorog/master
...
Be generic over secret type
2020-08-08 17:18:03 +02:00
evenorog
61fc895267
Be generic over secret type
...
Allow to store anything that implement AsRef<[u8]> as secret in TOTP
struct.
2020-08-05 13:24:34 +02:00
Cleo Rebert
d7f8790243
Optionnal serde support for smaller builds
2020-07-03 14:34:58 +02:00
Cleo Rebert
83c0ded335
Change description for shorter
2020-07-03 14:18:16 +02:00
Cleo Rebert
a095a89f84
Fixed typo and added tag
2020-06-23 10:30:54 +02:00
Cléo Rebert
9c944c82d4
Added badges
2020-06-22 17:16:42 +02:00
Cléo Rebert
25cacea519
Create rust.yml
2020-06-22 17:10:33 +02:00
Cléo Rebert
a8c78041b3
Merge pull request #6 from marknijboer/master
...
Added unit tests, replaced String for &str and removed println!
2020-06-22 17:05:37 +02:00
Mark Nijboer
a80ed7f1d9
* Changed version in README
2020-06-22 17:02:02 +02:00
Mark Nijboer
2c12f47652
* Changed version to 0.4.0 and updated docs
2020-06-22 16:16:05 +02:00
Mark Nijboer
66ef16fb45
* Added unit tests, replaced String for &str and removed println
2020-06-22 16:09:53 +02:00
Cleo Rebert
bb9b5d851c
Fixed documentation
2020-06-21 19:08:52 +02:00
Cléo Rebert
77dd798fd3
Merge pull request #5 from underdiskdev/master
...
Changed a bunch of to_string() to to_owned()
2020-06-21 17:24:48 +02:00
Cléo Rebert
e02e1f7ffd
Worth a try
2020-06-21 17:24:32 +02:00
hebriel
fd6b23437b
bumped to version 0.3.1
2020-06-21 17:02:43 +02:00
Cléo Rebert
5a1e9653c7
Create rust.yml
2020-06-21 16:47:44 +02:00
hebriel
64faae59f6
Changed a bunch of to_string() to to_owned()
2020-06-21 16:39:00 +02:00
Cléo Rebert
9746793f83
delete test file
2020-06-21 16:03:39 +02:00
Cleo Rebert
32b618c827
Additional feature!
2020-06-21 15:57:16 +02:00
Cleo Rebert
bba8e818da
Switched from ring to the RustCrypto project
2020-06-16 14:39:08 +02:00
Cleo Rebert
0c19a359c3
Changed dependencies + removed one
2020-04-25 19:20:11 +02:00
Cleo Rebert
9d470e8414
Don't forget to change crate version
2020-04-18 14:27:46 +02:00
Cleo Rebert
5e64ae8de8
Changed ring version requirement because of compatibility issues with rocket
2020-04-18 14:25:40 +02:00
Cleo Rebert
9064404264
Implemented serialize and clone fot both TOTP and Algorithm. Only Algorithm is copy
2020-04-14 12:51:44 +02:00
Cleo Rebert
c9b81c70c1
Better doc with examples
2020-04-13 22:57:06 +02:00
Cleo Rebert
8a236fbdea
fixed typo
2020-04-13 18:09:02 +02:00
Cleo Rebert
7de3d06772
Changed dependency version for more compatibility
2020-04-13 18:06:33 +02:00
Cleo Rebert
7876ca57c7
exported fields to export documentation
2020-04-13 17:59:04 +02:00
Cleo Rebert
6b091b7e08
cargo fmt
2020-04-13 17:02:00 +02:00
Cleo Rebert
bf2d753f72
preparations to push to crates.io
2020-04-13 16:59:30 +02:00
Cléo Rebert
30ac2766f0
Merge pull request #2 from constantoine/add-license-1
...
Create license
2020-04-13 16:54:37 +02:00
Cléo Rebert
4f59840034
Create license
2020-04-13 16:54:21 +02:00
Cleo Rebert
2c3d9a3995
Merge branch 'master' of github.com:constantoine/totp-rs
2020-04-13 16:41:42 +02:00
Cleo Rebert
e4915a6446
Finally, my own library. With a fix on the QR code generation
2020-04-13 16:39:57 +02:00
Cléo Rebert
e89e1f5cc8
Update README.md
2020-04-12 01:08:38 +02:00
Cléo Rebert
b2af324a25
Fixed typo in readme
2020-04-12 01:05:26 +02:00
Cleo Rebert
d1e04d7c6e
First commit
2020-04-11 21:24:50 +02:00