Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 1 | // Copyright (c) 2016 Andreas Auernhammer. All rights reserved. |
2 | // Use of this source code is governed by a license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | // +build !amd64 | ||||
6 | |||||
7 | package cmac | ||||
8 | |||||
9 | // xor xors the bytes in dst with src and writes the result to dst. | ||||
10 | // The destination is assumed to have enough space. | ||||
11 | func xor(dst, src []byte) { | ||||
12 | for i, v := range src { | ||||
13 | dst[i] ^= v | ||||
14 | } | ||||
15 | } |