From 1d28b2e142f845773e2b90e267d9632e196a99b9 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Thu, 11 Jan 2018 20:07:44 -0700 Subject: Remove references to PICA and rasterizers in video_core --- src/core/hw/aes/arithmetic128.cpp | 47 --------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/core/hw/aes/arithmetic128.cpp (limited to 'src/core/hw/aes/arithmetic128.cpp') diff --git a/src/core/hw/aes/arithmetic128.cpp b/src/core/hw/aes/arithmetic128.cpp deleted file mode 100644 index 55b954a52..000000000 --- a/src/core/hw/aes/arithmetic128.cpp +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2017 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#include -#include -#include "core/hw/aes/arithmetic128.h" - -namespace HW { -namespace AES { - -AESKey Lrot128(const AESKey& in, u32 rot) { - AESKey out; - rot %= 128; - const u32 byte_shift = rot / 8; - const u32 bit_shift = rot % 8; - - for (u32 i = 0; i < 16; i++) { - const u32 wrap_index_a = (i + byte_shift) % 16; - const u32 wrap_index_b = (i + byte_shift + 1) % 16; - out[i] = ((in[wrap_index_a] << bit_shift) | (in[wrap_index_b] >> (8 - bit_shift))) & 0xFF; - } - return out; -} - -AESKey Add128(const AESKey& a, const AESKey& b) { - AESKey out; - u32 carry = 0; - u32 sum = 0; - - for (int i = 15; i >= 0; i--) { - sum = a[i] + b[i] + carry; - carry = sum >> 8; - out[i] = static_cast(sum & 0xff); - } - - return out; -} - -AESKey Xor128(const AESKey& a, const AESKey& b) { - AESKey out; - std::transform(a.cbegin(), a.cend(), b.cbegin(), out.begin(), std::bit_xor<>()); - return out; -} - -} // namespace AES -} // namespace HW -- cgit v1.2.3