pub fn read_write_key<Scheme: UpEnc>(k: Scheme::K) { 
    let kfile = get_tmp_fname("upenc");
    let mut ofile = open_file(&kfile);
    k.write_key( &mut ofile).unwrap();
    let mut ifile = open_file(&kfile);
    let _k = Scheme::K::read_key(&mut ifile).unwrap();
    assert_eq!(k, _k);
}
// Tests read/write k to/from a keyfile.
Tests read/write k to/from a keyfile.
Tests read / write k to / from a keyfile .
pub fn read_write_key<Scheme: UpEnc>(k: Scheme::K) { 
    let kfile = get_tmp_fname("upenc");
    let mut ofile = open_file(&kfile);
    k.write_key( &mut ofile).unwrap();
    let mut ifile = open_file(&kfile);
    let _k = Scheme::K::read_key(&mut ifile).unwrap();
    assert_eq!(k, _k);
}
pub fn read_write_key < Scheme : UpEnc > ( k : Scheme :: K ) { let kfile = get_tmp_fname ( " " ) ; let mut ofile = open_file ( & kfile ) ; k . write_key ( & mut ofile ) . unwrap ( ) ; let mut ifile = open_file ( & kfile ) ; let _k = Scheme :: K :: read_key ( & mut ifile ) . unwrap ( ) ; assert_eq ! ( k _k ) ; }
Tests read/write k to/from a keyfile.
Tests read / write k to / from a keyfile .
k
Scheme::K
k
Scheme::K