macro_rules! fixed_alias_rng {
($vis:vis $name:ident, $size:literal) => { ... };
($name:ident, $size:literal) => { ... };
}Expand description
Creates a type alias for a random-only fixed-size secret.
This macro generates a type alias to FixedRng<N>, which can only be
instantiated via .generate() (requires the “rand” feature).
§Examples
Public alias:
#[cfg(feature = "rand")]
{
use secure_gate::fixed_alias_rng;
fixed_alias_rng!(pub MasterKey, 32);Private alias:
#[cfg(feature = "rand")]
{
use secure_gate::fixed_alias_rng;
fixed_alias_rng!(PrivateKey, 32); // No visibility modifier = privateInstantiate with Type::generate() (requires ‘rand’ feature).