subtle-ng-derive

Crates.iosubtle-ng-derive
lib.rssubtle-ng-derive
version0.0.5
sourcesrc
created_at2022-06-30 10:23:50.83239
updated_at2022-07-01 11:13:34.819844
descriptionDerive macros for subtle-ng traits.
homepage
repositoryhttps://github.com/cosmicexplorer/subtle-ng-derive
max_upload_size
id616317
size11,900
Danny McClanahan (cosmicexplorer)

documentation

https://docs.rs/subtle-ng-derive

README

subtle-ng-derive

A set of derive macros for subtle-ng traits:

  • #[derive(ConstantTimeEq)]: Implement equality by &=ing the .ct_eq() of every pair of fields.
  • #[derive(ConstantTimeGreater)]: Implement comparison in a more complex way by using .ct_eq() and .ct_gt() on each pair of fields.

License

BSD 3 Clause, to match the license of subtle-ng.

Commit count: 13

cargo fmt