crypto: fixed vnet_crypto_is_set_handler() 90/30690/5
authorPiotrX Kleski <piotrx.kleski@intel.com>
Mon, 11 Jan 2021 08:59:31 +0000 (08:59 +0000)
committerNeale Ranns <neale@graphiant.com>
Wed, 20 Jan 2021 11:04:46 +0000 (11:04 +0000)
commitb2525922cd7932413a370c212c09485367d15464
treee7c06f8b6868ab662650a2ad1229e1bc4a180489
parent2a81d9a4cc3436d63dad618ec654572343e89257
crypto: fixed vnet_crypto_is_set_handler()

Type: fix

vnet_crypto_is_set_handler() was checking if op handler is set by
using alg instead of op id.
This fix changes the check to use op ids from crypto_main's alg_data
for provided alg.

Signed-off-by: PiotrX Kleski <piotrx.kleski@intel.com>
Change-Id: I5f0f00a889ddada44d9912af175ebad66677037a
src/vnet/crypto/crypto.c