summaryrefslogtreecommitdiffstats
path: root/src/core/hw/aes/ccm.h
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2018-01-12 04:07:44 +0100
committerJames Rowe <jroweboy@gmail.com>2018-01-13 03:11:03 +0100
commit1d28b2e142f845773e2b90e267d9632e196a99b9 (patch)
tree027a3586a0fc927731afb3711c328c6dafc8551f /src/core/hw/aes/ccm.h
parentMassive removal of unused modules (diff)
downloadyuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.gz
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.bz2
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.lz
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.xz
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.tar.zst
yuzu-1d28b2e142f845773e2b90e267d9632e196a99b9.zip
Diffstat (limited to 'src/core/hw/aes/ccm.h')
-rw-r--r--src/core/hw/aes/ccm.h40
1 files changed, 0 insertions, 40 deletions
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 <array>
-#include <cstddef>
-#include <vector>
-#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<u8, CCM_NONCE_SIZE>;
-
-/**
- * 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<u8> EncryptSignCCM(const std::vector<u8>& 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<u8> DecryptVerifyCCM(const std::vector<u8>& cipher, const CCMNonce& nonce,
- size_t slot_id);
-
-} // namespace AES
-} // namespace HW