src


Log

Author Commit Date CI Message
constantoine bacf1c4f 2022-05-05T11:50:41 Switch to qrcodegen, and update image dependency Signed-off-by: constantoine <cleo.rebert@gmail.com>
Cleo Rebert 1f1e1a6f 2022-04-24T16:41:56 Add constant-time token comparison and partialEq trait Add PartialEq for TOTP<T> and PartialEq+Eq for Algorithm
ironhaven c30d02b5 2022-03-07T23:10:31 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 (https://github.com/pyauth/pyotp/blob/6568c1a83af8e0229f3c4b28d03552d601e2b7fe/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.
muji 9888507d 2022-02-10T17:00:33 Add notes to doc comments.
constantoine 4b486b5a 2022-01-20T17:58:27 Removed byteorder dependency
Cléo Rebert b68dd87c 2022-01-13T21:52:55 Hash refactor
Cléo Rebert 97695cf2 2022-01-13T15:55:04 Updated dependencies, bumped to 2021 edition - Updated sha2 from a yanked version - Updated sha-1 - Updated hmac - Updated byteorder - Updated base64
Cléo Rebert 981ad644 2020-11-02T23:21:19 Fixed warning about deprecated type alias
evenorog ffe9e4d5 2020-08-09T20:10:44 Remove some unnecessary to_vec calls in code
evenorog 61fc8952 2020-08-05T13:24:34 Be generic over secret type Allow to store anything that implement AsRef<[u8]> as secret in TOTP struct.
Cleo Rebert d7f87902 2020-07-03T14:34:58 Optionnal serde support for smaller builds
Mark Nijboer 2c12f476 2020-06-22T16:16:05 * Changed version to 0.4.0 and updated docs
Mark Nijboer 66ef16fb 2020-06-22T16:09:53 * Added unit tests, replaced String for &str and removed println
Cleo Rebert bb9b5d85 2020-06-21T19:08:52 Fixed documentation
hebriel 64faae59 2020-06-21T16:39:00 Changed a bunch of to_string() to to_owned()
Cléo Rebert 9746793f 2020-06-21T16:03:39 delete test file
Cleo Rebert 32b618c8 2020-06-21T15:57:16 Additional feature!
Cleo Rebert bba8e818 2020-06-16T14:39:08 Switched from ring to the RustCrypto project
Cleo Rebert 0c19a359 2020-04-25T19:20:11 Changed dependencies + removed one
Cleo Rebert 90644042 2020-04-14T12:51:22 Implemented serialize and clone fot both TOTP and Algorithm. Only Algorithm is copy
Cleo Rebert c9b81c70 2020-04-13T22:57:06 Better doc with examples
Cleo Rebert 8a236fbd 2020-04-13T18:09:02 fixed typo
Cleo Rebert 7876ca57 2020-04-13T17:59:04 exported fields to export documentation
Cleo Rebert 6b091b7e 2020-04-13T17:02:00 cargo fmt
Cleo Rebert bf2d753f 2020-04-13T16:59:30 preparations to push to crates.io
Cleo Rebert e4915a64 2020-04-13T16:39:57 Finally, my own library. With a fix on the QR code generation
Cleo Rebert d1e04d7c 2020-04-11T21:24:50 First commit