JB, Thank you very much for your help.
For adding a copy method direcly on sha256.digest, I propose this
// Copy returns a copy of hash.Hash
func (d *digest) Copy() hash.Hash {
dh := new(digest)
dh.h = d.h
dh.x = d.x
dh.nx = d.nx
dh.len = d.len
dh.is224 = d.is224
return dh
}
Does this sound correct to you?
(Rem: I am newbie to GO)
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.