[API-NEXT,3/4] linux-gen: crypto: sha-1 and sha-512 not implemented yet

Message ID 1487776105-32713-4-git-send-email-petri.savolainen@linaro.org
State Accepted
Commit 0ee227d51cdb1cc29853dac0376e6e02b6e585de
Headers show
Series
  • Add sha-1 and sha-512
Related show

Commit Message

Petri Savolainen Feb. 22, 2017, 3:08 p.m.
Explicitly set capabilities to zero.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
 platform/linux-generic/odp_crypto.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.8.1

Patch

diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c
index b53b0fc..fcbabd1 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 */