Rust does not (yet) implement named return value optimisation, so fixed_result forces a copy.
How would you feel about adding a
fn fixed_result_into(mut self, out : &mut GenericArray<u8, Self::OutputSize>)
function to the FixedOutput trait so that the copy can be avoided. I'm happy to create a PR.
(Background: I'm implementing the hash-based signature XMSSMT in rust, where lots of hashes are computed on on very short inputs. These copies have a significant overhead.)
Rust does not (yet) implement named return value optimisation, so
fixed_resultforces a copy.How would you feel about adding a
function to the
FixedOutputtrait so that the copy can be avoided. I'm happy to create a PR.(Background: I'm implementing the hash-based signature XMSSMT in rust, where lots of hashes are computed on on very short inputs. These copies have a significant overhead.)