Skip to content

Commit

Permalink
Merge branch 'test-code-history' into dev/davidhorstmann-arm/move-tes…
Browse files Browse the repository at this point in the history
…t-code
  • Loading branch information
davidhorstmann-arm committed Mar 28, 2024
2 parents 1a35cfa + 84523d7 commit 46663d5
Show file tree
Hide file tree
Showing 74 changed files with 15,586 additions and 0 deletions.
23 changes: 23 additions & 0 deletions include/alt-dummy/aes_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* aes_alt.h with dummy types for MBEDTLS_AES_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef AES_ALT_H
#define AES_ALT_H

typedef struct mbedtls_aes_context {
int dummy;
}
mbedtls_aes_context;

#if defined(MBEDTLS_CIPHER_MODE_XTS)

typedef struct mbedtls_aes_xts_context {
int dummy;
} mbedtls_aes_xts_context;
#endif


#endif /* aes_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/aria_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* aria_alt.h with dummy types for MBEDTLS_ARIA_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef ARIA_ALT_H
#define ARIA_ALT_H

typedef struct mbedtls_aria_context {
int dummy;
}
mbedtls_aria_context;


#endif /* aria_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/camellia_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* camellia_alt.h with dummy types for MBEDTLS_CAMELLIA_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CAMELLIA_ALT_H
#define CAMELLIA_ALT_H

typedef struct mbedtls_camellia_context {
int dummy;
}
mbedtls_camellia_context;


#endif /* camellia_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/ccm_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* ccm_alt.h with dummy types for MBEDTLS_CCM_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CCM_ALT_H
#define CCM_ALT_H

typedef struct mbedtls_ccm_context {
int dummy;
}
mbedtls_ccm_context;


#endif /* ccm_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/chacha20_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* chacha20_alt.h with dummy types for MBEDTLS_CHACHA20_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CHACHA20_ALT_H
#define CHACHA20_ALT_H

typedef struct mbedtls_chacha20_context {
int dummy;
}
mbedtls_chacha20_context;


#endif /* chacha20_alt.h */
18 changes: 18 additions & 0 deletions include/alt-dummy/chachapoly_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* chachapoly_alt.h with dummy types for MBEDTLS_CHACHAPOLY_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CHACHAPOLY_ALT_H
#define CHACHAPOLY_ALT_H

#include "mbedtls/chacha20.h"

typedef struct mbedtls_chachapoly_context {
int dummy;
}
mbedtls_chachapoly_context;


#endif /* chachapoly_alt.h */
15 changes: 15 additions & 0 deletions include/alt-dummy/cmac_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* cmac_alt.h with dummy types for MBEDTLS_CMAC_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef CMAC_ALT_H
#define CMAC_ALT_H

struct mbedtls_cmac_context_t {
int dummy;
};


#endif /* cmac_alt.h */
22 changes: 22 additions & 0 deletions include/alt-dummy/des_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* des_alt.h with dummy types for MBEDTLS_DES_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*
*/

#ifndef DES_ALT_H
#define DES_ALT_H

typedef struct mbedtls_des_context {
int dummy;
}
mbedtls_des_context;

typedef struct mbedtls_des3_context {
int dummy;
}
mbedtls_des3_context;


#endif /* des_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/dhm_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* dhm_alt.h with dummy types for MBEDTLS_DHM_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef DHM_ALT_H
#define DHM_ALT_H

typedef struct mbedtls_dhm_context {
int dummy;
}
mbedtls_dhm_context;


#endif /* dhm_alt.h */
15 changes: 15 additions & 0 deletions include/alt-dummy/ecjpake_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* ecjpake_alt.h with dummy types for MBEDTLS_ECJPAKE_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef ECJPAKE_ALT_H
#define ECJPAKE_ALT_H

typedef struct mbedtls_ecjpake_context {
int dummy;
} mbedtls_ecjpake_context;


#endif /* ecjpake_alt.h */
22 changes: 22 additions & 0 deletions include/alt-dummy/ecp_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* ecp_alt.h with dummy types for MBEDTLS_ECP_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef ECP_ALT_H
#define ECP_ALT_H

typedef struct mbedtls_ecp_group {
const mbedtls_ecp_group_id id;
const mbedtls_mpi P;
const mbedtls_mpi A;
const mbedtls_mpi B;
const mbedtls_ecp_point G;
const mbedtls_mpi N;
const size_t pbits;
const size_t nbits;
}
mbedtls_ecp_group;

#endif /* ecp_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/gcm_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* gcm_alt.h with dummy types for MBEDTLS_GCM_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef GCM_ALT_H
#define GCM_ALT_H

typedef struct mbedtls_gcm_context {
int dummy;
}
mbedtls_gcm_context;


#endif /* gcm_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/md5_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* md5_alt.h with dummy types for MBEDTLS_MD5_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef MD5_ALT_H
#define MD5_ALT_H

typedef struct mbedtls_md5_context {
int dummy;
}
mbedtls_md5_context;


#endif /* md5_alt.h */
15 changes: 15 additions & 0 deletions include/alt-dummy/nist_kw_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* nist_kw_alt.h with dummy types for MBEDTLS_NIST_KW_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef NIST_KW_ALT_H
#define NIST_KW_ALT_H

typedef struct {
int dummy;
} mbedtls_nist_kw_context;


#endif /* nist_kw_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/platform_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* platform_alt.h with dummy types for MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef PLATFORM_ALT_H
#define PLATFORM_ALT_H

typedef struct mbedtls_platform_context {
int dummy;
}
mbedtls_platform_context;


#endif /* platform_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/poly1305_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* poly1305_alt.h with dummy types for MBEDTLS_POLY1305_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef POLY1305_ALT_H
#define POLY1305_ALT_H

typedef struct mbedtls_poly1305_context {
int dummy;
}
mbedtls_poly1305_context;


#endif /* poly1305_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/ripemd160_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* ripemd160_alt.h with dummy types for MBEDTLS_RIPEMD160_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef RIPEMD160_ALT_H
#define RIPEMD160_ALT_H

typedef struct mbedtls_ripemd160_context {
int dummy;
}
mbedtls_ripemd160_context;


#endif /* ripemd160_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/rsa_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* rsa_alt.h with dummy types for MBEDTLS_RSA_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef RSA_ALT_H
#define RSA_ALT_H

typedef struct mbedtls_rsa_context {
int dummy;
}
mbedtls_rsa_context;


#endif /* rsa_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/sha1_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* sha1_alt.h with dummy types for MBEDTLS_SHA1_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef SHA1_ALT_H
#define SHA1_ALT_H

typedef struct mbedtls_sha1_context {
int dummy;
}
mbedtls_sha1_context;


#endif /* sha1_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/sha256_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* sha256_alt.h with dummy types for MBEDTLS_SHA256_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef SHA256_ALT_H
#define SHA256_ALT_H

typedef struct mbedtls_sha256_context {
int dummy;
}
mbedtls_sha256_context;


#endif /* sha256_alt.h */
16 changes: 16 additions & 0 deletions include/alt-dummy/sha512_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* sha512_alt.h with dummy types for MBEDTLS_SHA512_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef SHA512_ALT_H
#define SHA512_ALT_H

typedef struct mbedtls_sha512_context {
int dummy;
}
mbedtls_sha512_context;


#endif /* sha512_alt.h */
14 changes: 14 additions & 0 deletions include/alt-dummy/threading_alt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* threading_alt.h with dummy types for MBEDTLS_THREADING_ALT */
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef THREADING_ALT_H
#define THREADING_ALT_H

typedef struct mbedtls_threading_mutex_t {
int dummy;
} mbedtls_threading_mutex_t;

#endif /* threading_alt.h */
Loading

0 comments on commit 46663d5

Please sign in to comment.