add note & fix typo

pull/1315/head
Joe Conigliaro 2019-07-26 02:07:30 +10:00 committed by Alexander Medvednikov
parent 20a885ff1d
commit 655cad58b2
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
// This implementation is derived from the golang implementation // This implementation is derived from the golang implementation
// which itself is deroved in part from the reference // which itself is derived in part from the reference
// ANSI C implementation, which carries the following notice: // ANSI C implementation, which carries the following notice:
// //
// rijndael-alg-fst.c // rijndael-alg-fst.c

View File

@ -7,6 +7,8 @@
module subtle module subtle
// NOTE: require unsafe in future
// any_overlap reports whether x and y share memory at any (not necessarily // any_overlap reports whether x and y share memory at any (not necessarily
// corresponding) index. The memory beyond the slice length is ignored. // corresponding) index. The memory beyond the slice length is ignored.
pub fn any_overlap(x, y []byte) bool { pub fn any_overlap(x, y []byte) bool {