Merge rust-bitcoin/rust-bitcoin#4460: fix duplicate poly1305.rs
f36b8f22d9
fix duplicate poly1305.rs (futreall) Pull request description: hi devs fixed error `and and` ACKs for top commit: tcharding: ACKf36b8f22d9
Tree-SHA512: 65669ebcd289e2431fe2126ad8256fdc79f2c3afc2bdff4ded968f453bd865feb82488ba9ab2ec1678b1d9b9c6947e82e61848d8f445d0558eb24a51cad76a4d
This commit is contained in:
commit
8a563efb02
|
@ -55,7 +55,7 @@ impl Poly1305 {
|
|||
// Process previous leftovers if the message is long enough to fill the leftovers buffer. If
|
||||
// the message is too short then it will just be added to the leftovers at the end. Now if there
|
||||
// are no leftovers, but the message can fill the buffer, it will process that buffer and
|
||||
// and process the rest of the message later on.
|
||||
// process the rest of the message later on.
|
||||
let fill =
|
||||
if self.leftovers_len + message.len() >= 16 { 16 - self.leftovers_len } else { 0 };
|
||||
|
||||
|
|
Loading…
Reference in New Issue