Skip to content

Commit 37065ee

Browse files
Remove sample programs for the legacy cipher API
These programs illustrate the legacy cipher API, which is being removed. They are not particularly interesting and there is no straightforward translation to PSA. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
1 parent e457bf1 commit 37065ee

8 files changed

Lines changed: 0 additions & 884 deletions

File tree

programs/.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*.sln
66
*.vcxproj
77

8-
aes/crypt_and_hash
9-
cipher/cipher_aead_demo
108
hash/generic_sum
119
hash/hello
1210
hash/md_hmac_demo

programs/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
set(programs_target "${MBEDTLS_TARGET_PREFIX}programs")
22
add_custom_target(${programs_target})
33

4-
add_subdirectory(aes)
5-
add_subdirectory(cipher)
64
if (NOT WIN32)
75
add_subdirectory(fuzz)
86
endif()

programs/Makefile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ endif
3333
## Note: Variables cannot be used to define an apps path. This cannot be
3434
## substituted by the script generate_visualc_files.pl.
3535
APPS = \
36-
aes/crypt_and_hash \
37-
cipher/cipher_aead_demo \
3836
hash/generic_sum \
3937
hash/hello \
4038
hash/md_hmac_demo \
@@ -155,14 +153,6 @@ test/query_config.c:
155153
echo " Gen $@"
156154
$(PERL) ../scripts/generate_query_config.pl
157155

158-
aes/crypt_and_hash$(EXEXT): aes/crypt_and_hash.c $(DEP)
159-
echo " CC aes/crypt_and_hash.c"
160-
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/crypt_and_hash.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
161-
162-
cipher/cipher_aead_demo$(EXEXT): cipher/cipher_aead_demo.c $(DEP)
163-
echo " CC cipher/cipher_aead_demo.c"
164-
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) cipher/cipher_aead_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
165-
166156
hash/generic_sum$(EXEXT): hash/generic_sum.c $(DEP)
167157
echo " CC hash/generic_sum.c"
168158
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/generic_sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@

programs/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ Mbed TLS sample programs
33

44
This subdirectory mostly contains sample programs that illustrate specific features of the library, as well as a few test and support programs.
55

6-
## Symmetric cryptography (AES) examples
7-
8-
* [`aes/crypt_and_hash.c`](aes/crypt_and_hash.c): file encryption and authentication, demonstrating the generic cipher interface and the generic hash interface.
9-
106
## Hash (digest) examples
117

128
* [`hash/generic_sum.c`](hash/generic_sum.c): file hash calculator and verifier, demonstrating the message digest (`md`) interface.

programs/aes/CMakeLists.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)