| 518a974b | 11-Feb-2022 |
Arek Kusztal <[email protected]> |
cryptodev: reorganize asymmetric structs
This patch adds crypto uint typedef so adding comment about byte-order becomes unnecessary.
It makes API comments more tidy, and consistent with other asymm
cryptodev: reorganize asymmetric structs
This patch adds crypto uint typedef so adding comment about byte-order becomes unnecessary.
It makes API comments more tidy, and consistent with other asymmetric crypto APIs.
Additionally it reorganizes code that enums, externs and forward declarations are moved to the top of the header file making code more readable.
It removes also comments like co-prime constraint from mod inv as it is natural mathematical constraint, not PMD constraint.
Signed-off-by: Arek Kusztal <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 3ec4cbfd | 11-Feb-2022 |
Arek Kusztal <[email protected]> |
cryptodev: use C11 macro instead of direct attribute
This commit replaces __extension__ attribute with RTE_STD_C11 in anonymous unions.
It makes API consistent in terms of usage of C11 feature macr
cryptodev: use C11 macro instead of direct attribute
This commit replaces __extension__ attribute with RTE_STD_C11 in anonymous unions.
It makes API consistent in terms of usage of C11 feature macro.
Signed-off-by: Arek Kusztal <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| baf482c0 | 11-Feb-2022 |
Arek Kusztal <[email protected]> |
cryptodev: clarify usage of random numbers in asym
This commit clarifies usage of random numbers in asymmetric crypto API.
The user is now allowed to provide information to the PMD if random number
cryptodev: clarify usage of random numbers in asym
This commit clarifies usage of random numbers in asymmetric crypto API.
The user is now allowed to provide information to the PMD if random number should be generated or should be read from user input. If PMD does not support random number generation user should always provide it, if PMD does not support user random, rte_crypto_param.data accordingly should be set to NULL.
Signed-off-by: Arek Kusztal <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| a678c5d3 | 11-Feb-2022 |
Arek Kusztal <[email protected]> |
cryptodev: add DSA random number k
This commit adds random number 'k' to DSA op param struct for asymmetric crypto ops.
This parameter is crucial in stiuations where: - PMD cannot generate random n
cryptodev: add DSA random number k
This commit adds random number 'k' to DSA op param struct for asymmetric crypto ops.
This parameter is crucial in stiuations where: - PMD cannot generate random number - User would like to provide random source
Additionally, it makes DSA consistent with ECDSA in terms of 'k' which includes this parameter.
Signed-off-by: Arek Kusztal <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 757f40e2 | 11-Feb-2022 |
Ciara Power <[email protected]> |
cryptodev: modify return value for asym session create
Rather than the asym session create function returning a session on success, and a NULL value on error, it is modified to now return int values
cryptodev: modify return value for asym session create
Rather than the asym session create function returning a session on success, and a NULL value on error, it is modified to now return int values - 0 on success or -EINVAL/-ENOTSUP/-ENOMEM on failure. The session to be used is passed as input.
This adds clarity on the failure of the create function, which enables treating the -ENOTSUP return as TEST_SKIPPED in test apps.
Signed-off-by: Ciara Power <[email protected]> Acked-by: Fan Zhang <[email protected]> Acked-by: Anoob Joseph <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 33cd3fd5 | 20-Oct-2021 |
Akhil Goyal <[email protected]> |
cryptodev: add device probing finish function
Added a rte_cryptodev_pmd_probing_finish API which need to be called by the PMD after the device is initialized completely. This will set the fast path
cryptodev: add device probing finish function
Added a rte_cryptodev_pmd_probing_finish API which need to be called by the PMD after the device is initialized completely. This will set the fast path function pointers in the flat array for secondary process. For primary process, these are set in rte_cryptodev_start.
Signed-off-by: Akhil Goyal <[email protected]> Acked-by: Konstantin Ananyev <[email protected]> Acked-by: Fan Zhang <[email protected]>
show more ...
|
| 7f3876ad | 20-Oct-2021 |
Akhil Goyal <[email protected]> |
cryptodev: allocate max space for internal queue array
At queue_pair config stage, allocate memory for maximum number of queue pair pointers that a device can support.
This will allow fast path API
cryptodev: allocate max space for internal queue array
At queue_pair config stage, allocate memory for maximum number of queue pair pointers that a device can support.
This will allow fast path APIs(enqueue_burst/dequeue_burst) to refer pointer to internal QP data without checking for currently configured QPs. This is required to hide the rte_cryptodev and rte_cryptodev_data structure from user.
Signed-off-by: Akhil Goyal <[email protected]> Acked-by: Fan Zhang <[email protected]> Acked-by: Konstantin Ananyev <[email protected]>
show more ...
|
| 8edcb68f | 13-Oct-2021 |
Gagandeep Singh <[email protected]> |
cryptodev: fix multi-segment raw vector processing
If no next segment available the “for” loop will fail and it still returns i+1 i.e. 2, which is wrong as it has filled only 1 buffer.
Fixes: 7adf9
cryptodev: fix multi-segment raw vector processing
If no next segment available the “for” loop will fail and it still returns i+1 i.e. 2, which is wrong as it has filled only 1 buffer.
Fixes: 7adf992fb9bf ("cryptodev: introduce CPU crypto API") Cc: [email protected]
Signed-off-by: Gagandeep Singh <[email protected]> Acked-by: Konstantin Ananyev <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|