Crates.io | subtle-ng-derive |
lib.rs | subtle-ng-derive |
version | 0.0.5 |
source | src |
created_at | 2022-06-30 10:23:50.83239 |
updated_at | 2022-07-01 11:13:34.819844 |
description | Derive macros for subtle-ng traits. |
homepage | |
repository | https://github.com/cosmicexplorer/subtle-ng-derive |
max_upload_size | |
id | 616317 |
size | 11,900 |
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.BSD 3 Clause, to match the license of subtle-ng
.