diff options
Diffstat (limited to 'src/crypto_engines/native/sha2.c')
-rw-r--r-- | src/crypto_engines/native/sha2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto_engines/native/sha2.c b/src/crypto_engines/native/sha2.c index b61a5f08060..46a71b5b327 100644 --- a/src/crypto_engines/native/sha2.c +++ b/src/crypto_engines/native/sha2.c @@ -110,7 +110,7 @@ sha2_key_add (vnet_crypto_key_t *key, clib_sha2_type_t type) clib_sha2_hmac_key_data_t *kd; kd = clib_mem_alloc_aligned (sizeof (*kd), CLIB_CACHE_LINE_BYTES); - clib_sha2_hmac_key_data (type, key->data, vec_len (key->data), kd); + clib_sha2_hmac_key_data (type, key->data, key->length, kd); return kd; } |