hw/misc: Implement ESP32-S3 AES
This commit is contained in:
committed by
Ivan Grokhotkov
parent
24deaa4323
commit
3629646ec5
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* ESP32S3 AES emulation
|
||||
*
|
||||
* Copyright (c) 2023 Espressif Systems (Shanghai) Co. Ltd.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
#include "qemu/osdep.h"
|
||||
#include "hw/misc/esp32s3_aes.h"
|
||||
|
||||
static const TypeInfo esp32s3_aes_info = {
|
||||
.name = TYPE_ESP32S3_AES,
|
||||
.parent = TYPE_ESP_AES,
|
||||
.instance_size = sizeof(ESP32S3AesState),
|
||||
.class_size = sizeof(ESP32S3AesClass)
|
||||
};
|
||||
|
||||
static void esp32s3_aes_register_types(void)
|
||||
{
|
||||
type_register_static(&esp32s3_aes_info);
|
||||
}
|
||||
|
||||
type_init(esp32s3_aes_register_types)
|
||||
@@ -184,6 +184,10 @@ if gcrypt.found()
|
||||
'esp32c3_ds.c',
|
||||
'esp32c3_xts_aes.c'
|
||||
))
|
||||
system_ss.add(when: [gcrypt, 'CONFIG_XTENSA_ESP32S3'], if_true: files(
|
||||
'esp_aes.c',
|
||||
'esp32s3_aes.c',
|
||||
))
|
||||
endif
|
||||
|
||||
system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_ahb_apb_pnp.c'))
|
||||
|
||||
Reference in New Issue
Block a user