Skip to content

cosmicexplorer/subtle-derive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

subtle-derive

A set of derive macros for subtle 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.

TODO: Upstream patches required

This derive macro requires:

so it depends on the integration branch of https://github.com/cosmicexplorer/subtle in its dev-dependencies for now.

License

BSD 3 Clause, to match the license of subtle.

About

Derive macros for subtle traits.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages