Use input parameter 'alg_name' to indicate the device, rather than a fixed string.
Signed-off-by: Zhiqi Song songzhiqi1@huawei.com --- src/uadk_cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/uadk_cipher.c b/src/uadk_cipher.c index c71e54c..ee9363e 100644 --- a/src/uadk_cipher.c +++ b/src/uadk_cipher.c @@ -337,7 +337,7 @@ static int uadk_get_accel_platform(char *alg_name) { struct uacce_dev *dev;
- dev = wd_get_accel_dev("cipher"); + dev = wd_get_accel_dev(alg_name); if (dev == NULL) return 0;