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/ccm.h | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/core/hw/aes/ccm.h (limited to 'src/core/hw/aes/ccm.h') diff --git a/src/core/hw/aes/ccm.h b/src/core/hw/aes/ccm.h deleted file mode 100644 index bf4146e80..000000000 --- a/src/core/hw/aes/ccm.h +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2017 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#pragma once - -#include -#include -#include -#include "common/common_types.h" - -namespace HW { -namespace AES { - -constexpr size_t CCM_NONCE_SIZE = 12; -constexpr size_t CCM_MAC_SIZE = 16; - -using CCMNonce = std::array; - -/** - * Encrypts and adds a MAC to the given data using AES-CCM algorithm. - * @param pdata The plain text data to encrypt - * @param nonce The nonce data to use for encryption - * @param slot_id The slot ID of the key to use for encryption - * @returns a vector of u8 containing the encrypted data with MAC at the end - */ -std::vector EncryptSignCCM(const std::vector& pdata, const CCMNonce& nonce, size_t slot_id); - -/** - * Decrypts and verify the MAC of the given data using AES-CCM algorithm. - * @param cipher The cipher text data to decrypt, with MAC at the end to verify - * @param nonce The nonce data to use for decryption - * @param slot_id The slot ID of the key to use for decryption - * @returns a vector of u8 containing the decrypted data; an empty vector if the verification fails - */ -std::vector DecryptVerifyCCM(const std::vector& cipher, const CCMNonce& nonce, - size_t slot_id); - -} // namespace AES -} // namespace HW -- cgit v1.2.3