diff mbox

[API-NEXT,2/2] linux-generic: Support for md5 512 bit key size

Message ID 1478870270-2833-3-git-send-email-balakrishna.garapati@linaro.org
State New
Headers show

Commit Message

Balakrishna Garapati Nov. 11, 2016, 1:17 p.m. UTC
Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org>

---
 platform/linux-generic/include/odp_crypto_internal.h | 2 +-
 platform/linux-generic/odp_crypto.c                  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
1.9.1

Comments

Balakrishna Garapati Nov. 18, 2016, 8:07 a.m. UTC | #1
ping

On 11 November 2016 at 14:17, Balakrishna Garapati <
balakrishna.garapati@linaro.org> wrote:

> Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org>

> ---

>  platform/linux-generic/include/odp_crypto_internal.h | 2 +-

>  platform/linux-generic/odp_crypto.c                  | 1 +

>  2 files changed, 2 insertions(+), 1 deletion(-)

>

> diff --git a/platform/linux-generic/include/odp_crypto_internal.h

> b/platform/linux-generic/include/odp_crypto_internal.h

> index 7b104af..d79d09d 100644

> --- a/platform/linux-generic/include/odp_crypto_internal.h

> +++ b/platform/linux-generic/include/odp_crypto_internal.h

> @@ -60,7 +60,7 @@ struct odp_crypto_generic_session {

>                 odp_auth_alg_t  alg;

>                 union {

>                         struct {

> -                               uint8_t  key[16];

> +                               uint8_t  key[64];

>                                 uint32_t bytes;

>                         } md5;

>                         struct {

> diff --git a/platform/linux-generic/odp_crypto.c

> b/platform/linux-generic/odp_crypto.c

> index 9e09d42..e2b7a73 100644

> --- a/platform/linux-generic/odp_crypto.c

> +++ b/platform/linux-generic/odp_crypto.c

> @@ -613,6 +613,7 @@ int odp_crypto_capability(odp_crypto_capability_t

> *capa)

>

>         capa->auths.bit.null = 1;

>         capa->auths.bit.md5_96 = 1;

> +       capa->auths.bit.md5_512 = 1;

>         capa->auths.bit.sha256_128 = 1;

>         capa->auths.bit.aes128_gcm  = 1;

>

> --

> 1.9.1

>

>
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp_crypto_internal.h b/platform/linux-generic/include/odp_crypto_internal.h
index 7b104af..d79d09d 100644
--- a/platform/linux-generic/include/odp_crypto_internal.h
+++ b/platform/linux-generic/include/odp_crypto_internal.h
@@ -60,7 +60,7 @@  struct odp_crypto_generic_session {
 		odp_auth_alg_t  alg;
 		union {
 			struct {
-				uint8_t  key[16];
+				uint8_t  key[64];
 				uint32_t bytes;
 			} md5;
 			struct {
diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c
index 9e09d42..e2b7a73 100644
--- a/platform/linux-generic/odp_crypto.c
+++ b/platform/linux-generic/odp_crypto.c
@@ -613,6 +613,7 @@  int odp_crypto_capability(odp_crypto_capability_t *capa)
 
 	capa->auths.bit.null = 1;
 	capa->auths.bit.md5_96 = 1;
+	capa->auths.bit.md5_512 = 1;
 	capa->auths.bit.sha256_128 = 1;
 	capa->auths.bit.aes128_gcm  = 1;