mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-09-14 06:09:55 +00:00
Add a brief description of each file and copyright+license notices
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
/* PSA Firmware Framework client header for psasim. */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef __PSA_CLIENT_H__
|
#ifndef __PSA_CLIENT_H__
|
||||||
#define __PSA_CLIENT_H__
|
#define __PSA_CLIENT_H__
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* PSA status codes used by psasim. */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef PSA_ERROR_H
|
#ifndef PSA_ERROR_H
|
||||||
#define PSA_ERROR_H
|
#define PSA_ERROR_H
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* PSA lifecycle states used by psasim. */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#define PSA_LIFECYCLE_PSA_STATE_MASK (0xff00u)
|
#define PSA_LIFECYCLE_PSA_STATE_MASK (0xff00u)
|
||||||
#define PSA_LIFECYCLE_IMP_STATE_MASK (0x00ffu)
|
#define PSA_LIFECYCLE_IMP_STATE_MASK (0x00ffu)
|
||||||
#define PSA_LIFECYCLE_UNKNOWN (0x0000u)
|
#define PSA_LIFECYCLE_UNKNOWN (0x0000u)
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
/* PSA Firmware Framework service header for psasim. */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef __PSA_SERVICE_H__
|
#ifndef __PSA_SERVICE_H__
|
||||||
#define __PSA_SERVICE_H__
|
#define __PSA_SERVICE_H__
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* Declarations of internal functions. */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <psa/service.h>
|
#include <psa/service.h>
|
||||||
void raise_signal(psa_signal_t signal);
|
void raise_signal(psa_signal_t signal);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* PSA firmware framework client API */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* Common code between clients and services */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
int __psa_ff_client_security_state = NON_SECURE;
|
int __psa_ff_client_security_state = NON_SECURE;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* Common definitions used for clients and services */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#include <psa/service.h>
|
#include <psa/service.h>
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* PSA Firmware Framework service API */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#include <psa/service.h>
|
#include <psa/service.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/ipc.h>
|
#include <sys/ipc.h>
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* psasim test client */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#include <psa/client.h>
|
#include <psa/client.h>
|
||||||
#include "psa_manifest/sid.h"
|
#include "psa_manifest/sid.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* psasim test server */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright The Mbed TLS Contributors
|
||||||
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#include <psa/service.h>
|
#include <psa/service.h>
|
||||||
#include "psa_manifest/manifest.h"
|
#include "psa_manifest/manifest.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
"""This hacky script generates a partition from a manifest file"""
|
"""This hacky script generates a partition from a manifest file"""
|
||||||
|
|
||||||
|
# Copyright The Mbed TLS Contributors
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
Reference in New Issue
Block a user