2017-01-01 12:58:02 +00:00
|
|
|
// Copyright 2017 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
#include "common/alignment.h"
|
2018-01-13 00:36:41 +00:00
|
|
|
#include "common/assert.h"
|
2017-01-01 12:58:02 +00:00
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "core/hw/aes/ccm.h"
|
|
|
|
#include "core/hw/aes/key.h"
|
|
|
|
|
|
|
|
namespace HW {
|
|
|
|
namespace AES {
|
|
|
|
|
|
|
|
std::vector<u8> EncryptSignCCM(const std::vector<u8>& pdata, const CCMNonce& nonce,
|
|
|
|
size_t slot_id) {
|
2018-01-13 00:36:41 +00:00
|
|
|
UNIMPLEMENTED();
|
|
|
|
return {};
|
2017-01-01 12:58:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
std::vector<u8> DecryptVerifyCCM(const std::vector<u8>& cipher, const CCMNonce& nonce,
|
|
|
|
size_t slot_id) {
|
2018-01-13 00:36:41 +00:00
|
|
|
UNIMPLEMENTED();
|
|
|
|
return {};
|
2017-01-01 12:58:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace AES
|
|
|
|
} // namespace HW
|