Move hmac_non_psa out of psa/ directory

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2022-01-31 13:09:47 +01:00
parent 248b385f1b
commit 69bb3f5332
6 changed files with 20 additions and 20 deletions

4
programs/.gitignore vendored
View file

@ -15,6 +15,7 @@
aes/crypt_and_hash aes/crypt_and_hash
hash/generic_sum hash/generic_sum
hash/hello hash/hello
hash/hmac_demo
hash/md5sum hash/md5sum
hash/sha1sum hash/sha1sum
hash/sha2sum hash/sha2sum
@ -41,8 +42,7 @@ pkey/rsa_verify_pss
psa/aead_non_psa psa/aead_non_psa
psa/aead_psa psa/aead_psa
psa/crypto_examples psa/crypto_examples
psa/hmac_non_psa psa/hmac_demo
psa/hmac_psa
psa/key_ladder_demo psa/key_ladder_demo
psa/psa_constant_names psa/psa_constant_names
random/gen_entropy random/gen_entropy

View file

@ -64,6 +64,7 @@ APPS = \
aes/crypt_and_hash \ aes/crypt_and_hash \
hash/generic_sum \ hash/generic_sum \
hash/hello \ hash/hello \
hash/hmac_demo \
pkey/dh_client \ pkey/dh_client \
pkey/dh_genprime \ pkey/dh_genprime \
pkey/dh_server \ pkey/dh_server \
@ -87,8 +88,7 @@ APPS = \
psa/aead_non_psa \ psa/aead_non_psa \
psa/aead_psa \ psa/aead_psa \
psa/crypto_examples \ psa/crypto_examples \
psa/hmac_non_psa \ psa/hmac_demo \
psa/hmac_psa \
psa/key_ladder_demo \ psa/key_ladder_demo \
psa/psa_constant_names \ psa/psa_constant_names \
random/gen_entropy \ random/gen_entropy \
@ -177,13 +177,17 @@ aes/crypt_and_hash$(EXEXT): aes/crypt_and_hash.c $(DEP)
echo " CC aes/crypt_and_hash.c" echo " CC aes/crypt_and_hash.c"
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/crypt_and_hash.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ $(CC) $(LOCAL_CFLAGS) $(CFLAGS) aes/crypt_and_hash.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
hash/generic_sum$(EXEXT): hash/generic_sum.c $(DEP)
echo " CC hash/generic_sum.c"
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/generic_sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
hash/hello$(EXEXT): hash/hello.c $(DEP) hash/hello$(EXEXT): hash/hello.c $(DEP)
echo " CC hash/hello.c" echo " CC hash/hello.c"
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/hello.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/hello.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
hash/generic_sum$(EXEXT): hash/generic_sum.c $(DEP) hash/hmac_demo$(EXEXT): hash/hmac_demo.c $(DEP)
echo " CC hash/generic_sum.c" echo " CC hash/hmac_demo.c"
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/generic_sum.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ $(CC) $(LOCAL_CFLAGS) $(CFLAGS) hash/hmac_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
pkey/dh_client$(EXEXT): pkey/dh_client.c $(DEP) pkey/dh_client$(EXEXT): pkey/dh_client.c $(DEP)
echo " CC pkey/dh_client.c" echo " CC pkey/dh_client.c"
@ -277,13 +281,9 @@ psa/crypto_examples$(EXEXT): psa/crypto_examples.c $(DEP)
echo " CC psa/crypto_examples.c" echo " CC psa/crypto_examples.c"
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/crypto_examples.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/crypto_examples.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
psa/hmac_non_psa$(EXEXT): psa/hmac_non_psa.c $(DEP) psa/hmac_demo$(EXEXT): psa/hmac_demo.c $(DEP)
echo " CC psa/hmac_non_psa.c" echo " CC psa/hmac_demo.c"
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/hmac_non_psa.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@ $(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/hmac_demo.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
psa/hmac_psa$(EXEXT): psa/hmac_psa.c $(DEP)
echo " CC psa/hmac_psa.c"
$(CC) $(LOCAL_CFLAGS) $(CFLAGS) psa/hmac_psa.c $(LOCAL_LDFLAGS) $(LDFLAGS) -o $@
psa/key_ladder_demo$(EXEXT): psa/key_ladder_demo.c $(DEP) psa/key_ladder_demo$(EXEXT): psa/key_ladder_demo.c $(DEP)
echo " CC psa/key_ladder_demo.c" echo " CC psa/key_ladder_demo.c"

View file

@ -1,6 +1,7 @@
set(executables set(executables
generic_sum generic_sum
hello hello
hmac_demo
) )
foreach(exe IN LISTS executables) foreach(exe IN LISTS executables)

View file

@ -3,7 +3,7 @@
* *
* This programs computes the HMAC of two messages using the multi-part API. * This programs computes the HMAC of two messages using the multi-part API.
* *
* This is a companion to hmac_psa.c, doing the same operations with the * This is a companion to psa/hmac_demo.c, doing the same operations with the
* legacy MD API. The goal is that comparing the two programs will help people * legacy MD API. The goal is that comparing the two programs will help people
* migrating to the PSA Crypto API. * migrating to the PSA Crypto API.
* *
@ -13,7 +13,7 @@
* objects: (1) a psa_key_id_t to hold the key, and (2) a psa_operation_t for * objects: (1) a psa_key_id_t to hold the key, and (2) a psa_operation_t for
* multi-part progress. * multi-part progress.
* *
* This program and its companion hmac_non_psa.c illustrate this by doing the * This program and its companion psa/hmac_demo.c illustrate this by doing the
* same sequence of multi-part HMAC computation with both APIs; looking at the * same sequence of multi-part HMAC computation with both APIs; looking at the
* two side by side should make the differences and similarities clear. * two side by side should make the differences and similarities clear.
*/ */

View file

@ -2,8 +2,7 @@ set(executables
aead_non_psa aead_non_psa
aead_psa aead_psa
crypto_examples crypto_examples
hmac_non_psa hmac_demo
hmac_psa
key_ladder_demo key_ladder_demo
psa_constant_names psa_constant_names
) )

View file

@ -3,7 +3,7 @@
* *
* This programs computes the HMAC of two messages using the multi-part API. * This programs computes the HMAC of two messages using the multi-part API.
* *
* It comes with a companion program hmac_non_psa.c, which does the same * It comes with a companion program hash/hmac_demo.c, which does the same
* operations with the legacy MD API. The goal is that comparing the two * operations with the legacy MD API. The goal is that comparing the two
* programs will help people migrating to the PSA Crypto API. * programs will help people migrating to the PSA Crypto API.
* *
@ -13,7 +13,7 @@
* objects: (1) a psa_key_id_t to hold the key, and (2) a psa_operation_t for * objects: (1) a psa_key_id_t to hold the key, and (2) a psa_operation_t for
* multi-part progress. * multi-part progress.
* *
* This program and its companion hmac_non_psa.c illustrate this by doing the * This program and its companion hash/hmac_demo.c illustrate this by doing the
* same sequence of multi-part HMAC computation with both APIs; looking at the * same sequence of multi-part HMAC computation with both APIs; looking at the
* two side by side should make the differences and similarities clear. * two side by side should make the differences and similarities clear.
*/ */