X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Fpoly1305.rs;h=c6dbb43dd0d455f3538bcfb5d6edc9af101d6688;hb=0ea7dd8bfccf0369af8d8e7011997ced6df06c7a;hp=541c398baec8457e4d54e0a5e1548daefd49f5e9;hpb=53052234959a3c0a7323a194c351c4ba9b46339b;p=rust-lightning diff --git a/lightning/src/util/poly1305.rs b/lightning/src/util/poly1305.rs index 541c398b..c6dbb43d 100644 --- a/lightning/src/util/poly1305.rs +++ b/lightning/src/util/poly1305.rs @@ -1,13 +1,13 @@ -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. // This is a port of Andrew Moons poly1305-donna // https://github.com/floodyberry/poly1305-donna -use std::cmp::min; +use core::cmp::min; use util::byte_utils::{slice_to_le32, le32_to_array}; #[derive(Clone, Copy)] @@ -205,7 +205,7 @@ impl Poly1305 { #[cfg(test)] mod test { - use std::iter::repeat; + use core::iter::repeat; use util::poly1305::Poly1305;