mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
crypto/cryptodev: export ivlen to support different cipher algs
Add ivlen field to crypt_op and crp_ivlen to cryptop structure to support cipher algorithms with different IV lengths. Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
parent
143547128b
commit
66f9329839
2 changed files with 3 additions and 0 deletions
|
|
@ -476,6 +476,7 @@ static int cryptodev_op(FAR struct csession *cse,
|
|||
}
|
||||
|
||||
crp->crp_iv = cop->iv;
|
||||
crp->crp_ivlen = cop->ivlen;
|
||||
}
|
||||
|
||||
if (cop->dst)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue