recrypt 0.1.0

A pure-Rust implementation of Transform Encryption, a Proxy Re-encryption scheme
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use gridiron::fp_256::Fp256;

///A trait that signifies the ability to create a Nonadjacent form from a value
///
///This is possible for all numeric types.
pub trait NonAdjacentForm {
    fn to_naf(&self) -> Vec<i8>;
}

impl NonAdjacentForm for Fp256 {
    fn to_naf(&self) -> Vec<i8> {
        (*self).create_naf()
    }
}