blob: ecc3862c85e8f5f5816551e8945dbaa78efc723c [file] [log] [blame]
Andrea Campanella7167ebb2020-02-24 09:56:38 +01001// 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
7package 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.
11func xor(dst, src []byte) {
12 for i, v := range src {
13 dst[i] ^= v
14 }
15}