debris / tiny-keccak

An implementation of Keccak derived functions specified in FIPS-202, SP800-185 and KangarooTwelve
Creative Commons Zero v1.0 Universal
194 stars 50 forks source link

public some function #3

Closed quininer closed 8 years ago

quininer commented 8 years ago

Sometimes we need to repeatedly squeezing a sponge, like newhope/poly.rs.

:D

debris commented 8 years ago

I agree with making absorb/pad/squeeze pub, but imo finalize should remain unchanged. For convenience you can also add keccakf method to Keccak impl

impl Keccak {
/*
some code
*/

  #[inline]
  pub fn keccakf(&mut self) {
    keccakf(&mut self.a);
  }

/*
some code
*/
}
debris commented 8 years ago

Thank you! I will release new version in few minutes! :)

quininer commented 8 years ago

Thank you! :D

debris commented 8 years ago

1.1.0 released