This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, api-next has been updated via ff6c083358f97f7b5b261d8e75ca7a2eaaab5dea (commit) via 834c4787fd48b2532266c9ba49c15edc64bdb8b6 (commit) via 2138886d47cc41cf145ce9c085bd26439b1b2438 (commit) via d4627e38c1750ef3a0f063c72bbc0e8c3f1775a8 (commit) via 6111bd9ec71787f86375f333ace6c731b4d3f0d4 (commit) via 2bac2dbfd7a7c55e588a6b72af22ae7b810558f7 (commit) via e93df7d7b3b278dfadba4a9b7c01afc0dd411f13 (commit) via 39f85bc6cab329b4ae41ba2ec922370c24254325 (commit) via 2eb3e7aa8afebb137a5aac2be4166c3ccfa3e581 (commit) via a652887cfebadb30843a6fbfe9d5655031d46881 (commit) via 919d6924c532d46a52e467d481ee30b6b8bd78ec (commit) via ba12518e030095c7a3fd5a0156522c427b25e776 (commit) via f0ee0e9812cb05fac89ed464732a3cd421974af9 (commit) via 8cdc31026eab52b59169e8450308c8f552f49613 (commit) via 8f33c673232c6b12334d02d12850e6a3e9fbde0e (commit) via 33b2cc17e92ae0eaa3961bf262035f45b9e6e2f5 (commit) via 4210d023fd08e4e36983a7c5a8e7de13bcf38204 (commit) via ff30fcb8467467e4dd08dc1f72b852f5e0c903f1 (commit) via 8e2059e01f0d94257481cd71a5bb67733d9cb6ff (commit) via 34f63c0cb6421ce32fac1a409cbc75fd1cc8fdbc (commit) via a26219abfccbd1148a1ccbf9648039dd6a790a6e (commit) via ce8fb2e5d86dd2b041d8bd17f7ed46035b516094 (commit) via 6d0a57c69bd41ad152a6366b0563edd2f39381f5 (commit) via 4d2965368138f5980598bff84bb8a5bb23b764ef (commit) via 7f67f9c82f0d8454a17c57480e0d042ce4d02c2b (commit) via 20dd9920a9666adbbc5700a0c5f91539f36748e0 (commit) from ba70a2a8ef150ac62f2850e0b47d4708f3730a79 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit ff6c083358f97f7b5b261d8e75ca7a2eaaab5dea Author: Petri Savolainen petri.savolainen@linaro.org Date: Wed Feb 22 17:08:25 2017 +0200
validation: crypto: add stubs for sha-1 and sha-512 tests
API enumerations are tested but functional tests are missing still.
Signed-off-by: Petri Savolainen petri.savolainen@linaro.org Reviewed-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/validation/api/crypto/crypto.h b/test/common_plat/validation/api/crypto/crypto.h index 9b909aa..c25cbb3 100644 --- a/test/common_plat/validation/api/crypto/crypto.h +++ b/test/common_plat/validation/api/crypto/crypto.h @@ -23,7 +23,9 @@ void crypto_test_enc_alg_aes128_gcm_ovr_iv(void); void crypto_test_dec_alg_aes128_gcm(void); void crypto_test_dec_alg_aes128_gcm_ovr_iv(void); void crypto_test_alg_hmac_md5(void); +void crypto_test_alg_hmac_sha1(void); void crypto_test_alg_hmac_sha256(void); +void crypto_test_alg_hmac_sha512(void);
/* test arrays: */ extern odp_testinfo_t crypto_suite[]; diff --git a/test/common_plat/validation/api/crypto/odp_crypto_test_inp.c b/test/common_plat/validation/api/crypto/odp_crypto_test_inp.c index 43ddb2f..42149ac 100644 --- a/test/common_plat/validation/api/crypto/odp_crypto_test_inp.c +++ b/test/common_plat/validation/api/crypto/odp_crypto_test_inp.c @@ -330,10 +330,18 @@ static int check_alg_support(odp_cipher_alg_t cipher, odp_auth_alg_t auth) if (!capability.auths.bit.md5_hmac) return ODP_TEST_INACTIVE; break; + case ODP_AUTH_ALG_SHA1_HMAC: + if (!capability.auths.bit.sha1_hmac) + return ODP_TEST_INACTIVE; + break; case ODP_AUTH_ALG_SHA256_HMAC: if (!capability.auths.bit.sha256_hmac) return ODP_TEST_INACTIVE; break; + case ODP_AUTH_ALG_SHA512_HMAC: + if (!capability.auths.bit.sha512_hmac) + return ODP_TEST_INACTIVE; + break; case ODP_AUTH_ALG_AES_GCM: if (!capability.auths.bit.aes_gcm) return ODP_TEST_INACTIVE; @@ -1001,6 +1009,26 @@ void crypto_test_alg_hmac_sha256(void) } }
+static int check_alg_hmac_sha1(void) +{ + return check_alg_support(ODP_CIPHER_ALG_NULL, ODP_AUTH_ALG_SHA1_HMAC); +} + +void crypto_test_alg_hmac_sha1(void) +{ + printf(" TEST NOT IMPLEMENTED YET "); +} + +static int check_alg_hmac_sha512(void) +{ + return check_alg_support(ODP_CIPHER_ALG_NULL, ODP_AUTH_ALG_SHA512_HMAC); +} + +void crypto_test_alg_hmac_sha512(void) +{ + printf(" TEST NOT IMPLEMENTED YET "); +} + int crypto_suite_sync_init(void) { suite_context.pool = odp_pool_lookup("packet_pool"); @@ -1052,8 +1080,12 @@ odp_testinfo_t crypto_suite[] = { check_alg_aes_gcm), ODP_TEST_INFO_CONDITIONAL(crypto_test_alg_hmac_md5, check_alg_hmac_md5), + ODP_TEST_INFO_CONDITIONAL(crypto_test_alg_hmac_sha1, + check_alg_hmac_sha1), ODP_TEST_INFO_CONDITIONAL(crypto_test_alg_hmac_sha256, check_alg_hmac_sha256), + ODP_TEST_INFO_CONDITIONAL(crypto_test_alg_hmac_sha512, + check_alg_hmac_sha512), ODP_TEST_INFO_NULL, };
commit 834c4787fd48b2532266c9ba49c15edc64bdb8b6 Author: Petri Savolainen petri.savolainen@linaro.org Date: Wed Feb 22 17:08:24 2017 +0200
linux-gen: crypto: sha-1 and sha-512 not implemented yet
Explicitly set capabilities to zero.
Signed-off-by: Petri Savolainen petri.savolainen@linaro.org Reviewed-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 54b222f..2ba504b 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -639,7 +639,9 @@ int odp_crypto_capability(odp_crypto_capability_t *capa)
capa->auths.bit.null = 1; capa->auths.bit.md5_hmac = 1; + capa->auths.bit.sha1_hmac = 0; capa->auths.bit.sha256_hmac = 1; + capa->auths.bit.sha512_hmac = 0; capa->auths.bit.aes_gcm = 1;
/* Deprecated */
commit 2138886d47cc41cf145ce9c085bd26439b1b2438 Author: Petri Savolainen petri.savolainen@linaro.org Date: Wed Feb 22 17:08:23 2017 +0200
api: crypto: add sha-1 and sha-512 enumerations
Added enumerations for HMAC-SHA-1 and HMAC-SHA-256 authentication algorithms.
Signed-off-by: Petri Savolainen petri.savolainen@linaro.org Reviewed-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h index 9855bf9..d30f050 100644 --- a/include/odp/api/spec/crypto.h +++ b/include/odp/api/spec/crypto.h @@ -102,12 +102,24 @@ typedef enum { */ ODP_AUTH_ALG_MD5_HMAC,
+ /** HMAC-SHA-1 + * + * SHA-1 algorithm in HMAC mode + */ + ODP_AUTH_ALG_SHA1_HMAC, + /** HMAC-SHA-256 * * SHA-256 algorithm in HMAC mode */ ODP_AUTH_ALG_SHA256_HMAC,
+ /** HMAC-SHA-512 + * + * SHA-512 algorithm in HMAC mode + */ + ODP_AUTH_ALG_SHA512_HMAC, + /** AES in Galois/Counter Mode * * @note Must be paired with cipher ODP_CIPHER_ALG_AES_GCM @@ -171,9 +183,15 @@ typedef union odp_crypto_auth_algos_t { /** ODP_AUTH_ALG_MD5_HMAC */ uint32_t md5_hmac : 1;
+ /** ODP_AUTH_ALG_SHA1_HMAC */ + uint32_t sha1_hmac : 1; + /** ODP_AUTH_ALG_SHA256_HMAC */ uint32_t sha256_hmac : 1;
+ /** ODP_AUTH_ALG_SHA512_HMAC */ + uint32_t sha512_hmac : 1; + /** ODP_AUTH_ALG_AES_GCM */ uint32_t aes_gcm : 1;
commit d4627e38c1750ef3a0f063c72bbc0e8c3f1775a8 Author: Petri Savolainen petri.savolainen@linaro.org Date: Wed Feb 22 17:08:22 2017 +0200
abi: event: add ODP_EVENT_IPSEC_RESULT
Update ABI spec with the new IPSEC event type.
Signed-off-by: Petri Savolainen petri.savolainen@linaro.org Signed-off-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Reviewed-by: Dmitry Eremin-Solenikov dmitry.ereminsolenikov@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/include/odp/arch/default/api/abi/event.h b/include/odp/arch/default/api/abi/event.h index 4f6596b..ab14157 100644 --- a/include/odp/arch/default/api/abi/event.h +++ b/include/odp/arch/default/api/abi/event.h @@ -28,7 +28,8 @@ typedef enum odp_event_type_t { ODP_EVENT_BUFFER = 1, ODP_EVENT_PACKET = 2, ODP_EVENT_TIMEOUT = 3, - ODP_EVENT_CRYPTO_COMPL = 4 + ODP_EVENT_CRYPTO_COMPL = 4, + ODP_EVENT_IPSEC_RESULT = 5 } odp_event_type_t;
/**
commit 6111bd9ec71787f86375f333ace6c731b4d3f0d4 Merge: 2eb3e7a 2bac2db Author: Maxim Uvarov maxim.uvarov@linaro.org Date: Thu Mar 2 16:58:28 2017 +0300
Merge branch 'master' into api-next
commit 2eb3e7aa8afebb137a5aac2be4166c3ccfa3e581 Merge: ba70a2a a652887 Author: Maxim Uvarov maxim.uvarov@linaro.org Date: Thu Mar 2 15:44:12 2017 +0300
Merge branch 'master' into api-next
-----------------------------------------------------------------------
Summary of changes: CHANGELOG | 144 +++++++++++++++++++++ DEPENDENCIES | 23 +++- configure.ac | 8 +- helper/Makefile.am | 5 +- helper/include/odp/helper/linux.h | 27 ++++ include/odp/api/spec/crypto.h | 18 +++ include/odp/arch/default/api/abi/event.h | 3 +- ...lper-linux-generic.pc.in => libodphelper.pc.in} | 4 +- platform/linux-generic/odp_crypto.c | 2 + test/common_plat/validation/api/crypto/crypto.h | 2 + .../validation/api/crypto/odp_crypto_test_inp.c | 32 +++++ 11 files changed, 257 insertions(+), 11 deletions(-) create mode 100644 helper/include/odp/helper/linux.h rename pkgconfig/{libodphelper-linux-generic.pc.in => libodphelper.pc.in} (72%)
hooks/post-receive