#
12ede9ac |
| 04-Oct-2024 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: support EdDSA
Add EdDSA support in fips_validation app.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
|
#
904efb4c |
| 28-Feb-2023 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add extra space in JSON buffer
Current test buffer to copy input data of maximum possible length did not account NULL character, due to which a last input character is alwa
examples/fips_validation: add extra space in JSON buffer
Current test buffer to copy input data of maximum possible length did not account NULL character, due to which a last input character is always ignored and it causes tests like RSA SIGVER for modulo of 4096 bits to fail. This patch fixes it.
Fixes: 0b65d54f3a4 ("examples/fips_validation: fix JSON buffer size") Cc: stable@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
55a7050e |
| 28-Feb-2023 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add CCM JSON validation
Add support in fips_validation to parse CCM JSON vectors.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dool
examples/fips_validation: add CCM JSON validation
Add support in fips_validation to parse CCM JSON vectors.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
225f04fb |
| 28-Feb-2023 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add SHAKE validation
Add support in fips_validation to parse SHAKE algorithms.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley
examples/fips_validation: add SHAKE validation
Add support in fips_validation to parse SHAKE algorithms.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
1ea7940e |
| 28-Feb-2023 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add SHA3 validation
Add support in fips_validation to parse SHA3 algorithms.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <b
examples/fips_validation: add SHA3 validation
Add support in fips_validation to parse SHA3 algorithms.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
b455d261 |
| 27-Sep-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: validate ECDSA
This patch adds support in fips_validation app to validate ECDSA.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Doole
examples/fips_validation: validate ECDSA
This patch adds support in fips_validation app to validate ECDSA.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
8ee030b4 |
| 12-Oct-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: randomize message for conformance test
FIPS conformance tests require randomizing message based on SP 800-106.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marv
examples/fips_validation: randomize message for conformance test
FIPS conformance tests require randomizing message based on SP 800-106.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
show more ...
|
#
36128a67 |
| 12-Oct-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add asymmetric validation
Add support for asymmetric crypto validation starting with RSA. For the generation of crypto values which is multiprecision in math, openssl libra
examples/fips_validation: add asymmetric validation
Add support for asymmetric crypto validation starting with RSA. For the generation of crypto values which is multiprecision in math, openssl library is used only for this purpose.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
c8956fd2 |
| 07-Oct-2022 |
Brian Dooley <brian.dooley@intel.com> |
examples/fips_validation: add parsing for AES-CTR
Added functionality to parse algorithm for AES CTR test
Signed-off-by: Brian Dooley <brian.dooley@intel.com> Acked-by: Kai Ji <kai.ji@intel.com> Ac
examples/fips_validation: add parsing for AES-CTR
Added functionality to parse algorithm for AES CTR test
Signed-off-by: Brian Dooley <brian.dooley@intel.com> Acked-by: Kai Ji <kai.ji@intel.com> Acked-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
show more ...
|
#
e27268bd |
| 16-Sep-2022 |
Brian Dooley <brian.dooley@intel.com> |
examples/fips_validation: add parsing for AES-GMAC
Added functionality to parse algorithm for AES GMAC test.
Signed-off-by: Brian Dooley <brian.dooley@intel.com> Acked-by: Kai Ji <kai.ji@intel.com>
examples/fips_validation: add parsing for AES-GMAC
Added functionality to parse algorithm for AES GMAC test.
Signed-off-by: Brian Dooley <brian.dooley@intel.com> Acked-by: Kai Ji <kai.ji@intel.com> Acked-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
show more ...
|
#
0b65d54f |
| 27-Sep-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: fix JSON buffer size
In asym op, while parsing test interim info, existing buffer of size 256 bytes is not sufficient, hence setting it to maximum that a test would need.
examples/fips_validation: fix JSON buffer size
In asym op, while parsing test interim info, existing buffer of size 256 bytes is not sufficient, hence setting it to maximum that a test would need.
Fixes: 58cc98801eb ("examples/fips_validation: add JSON parsing") Cc: stable@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
8bc8ba43 |
| 27-Sep-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: fix SHA hash size calculation
Added function to calculate hash size for a given SHA hash algorithm.
Fixes: d5c247145c2 ("examples/fips_validation: add parsing for SHA") Cc
examples/fips_validation: fix SHA hash size calculation
Added function to calculate hash size for a given SHA hash algorithm.
Fixes: d5c247145c2 ("examples/fips_validation: add parsing for SHA") Cc: stable@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
0bd998fb |
| 27-Sep-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add interim parse writeback
Asym tests need a callback to write interim info in expected output.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked
examples/fips_validation: add interim parse writeback
Asym tests need a callback to write interim info in expected output.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
64569ffa |
| 12-Aug-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add TDES parsing
Added function to parse algorithm for TDES CBC and ECB tests in JSON.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian
examples/fips_validation: add TDES parsing
Added function to parse algorithm for TDES CBC and ECB tests in JSON.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Brian Dooley <brian.dooley@intel.com>
show more ...
|
#
d5c24714 |
| 29-Jun-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add parsing for SHA
Added function to parse algorithm for SHA test.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.fan.zhang
examples/fips_validation: add parsing for SHA
Added function to parse algorithm for SHA test.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
show more ...
|
#
f8e431ed |
| 29-Jun-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add parsing for AES-XTS
Added function to parse algorithm for AES XTS test.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.f
examples/fips_validation: add parsing for AES-XTS
Added function to parse algorithm for AES XTS test.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
show more ...
|
#
75777166 |
| 29-Jun-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add AES-CBC in the enum
Add algorithm enum specifically for AES_CBC instead of relying on AES as such.
Fixes: 8b8546aaedf ("examples/fips_validation: add parsing for AES-C
examples/fips_validation: add AES-CBC in the enum
Add algorithm enum specifically for AES_CBC instead of relying on AES as such.
Fixes: 8b8546aaedf ("examples/fips_validation: add parsing for AES-CBC")
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
show more ...
|
#
8d70a194 |
| 07-Jun-2022 |
David Marchand <david.marchand@redhat.com> |
examples/fips_validation: fix link to libjansson
When compiling this example out of DPDK, linking the executable fails with:
## Building fips_validation /usr/bin/ld: /tmp/ccQjeHBg.o: in functio
examples/fips_validation: fix link to libjansson
When compiling this example out of DPDK, linking the executable fails with:
## Building fips_validation /usr/bin/ld: /tmp/ccQjeHBg.o: in function `fips_test_init': fips_validation.c:(.text+0x7ab): undefined reference to `json_loadf' /usr/bin/ld: /tmp/ccQjeHBg.o: in function `fips_test_parse_one_json_vector_set': fips_validation.c:(.text+0xc2e): undefined reference to `json_object_get' /usr/bin/ld: fips_validation.c:(.text+0xc36): undefined reference to `json_string_value' /usr/bin/ld: /tmp/ccQjeHBg.o: in function `fips_test_parse_one_json_group': fips_validation.c:(.text+0xd00): undefined reference to `json_object_get' /usr/bin/ld: fips_validation.c:(.text+0xd14): undefined reference to `json_integer_value' ...
Code in an example can't rely on RTE_HAS_JANSSON, because it only indicates that the jansson library was available at the time of dpdk compilation.
Prefer a local build flag (like what is done in vm_power_manager). And add linking to libjansson, if available.
Fixes: f556293fd58e ("examples/fips_validation: add JSON info to header")
Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
show more ...
|
#
8b8546aa |
| 30-May-2022 |
Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> |
examples/fips_validation: add parsing for AES-CBC
Added function to parse algorithm for AES_CBC test.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.f
examples/fips_validation: add parsing for AES-CBC
Added function to parse algorithm for AES_CBC test.
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com> Tested-by: Jakub Poczatek <jakub.poczatek@intel.com>
show more ...
|
#
d3b50557 |
| 30-May-2022 |
Brandon Lo <blo@iol.unh.edu> |
examples/fips_validation: implement JSON CMAC test
Implemented JSON support for the CMAC test.
Signed-off-by: Brandon Lo <blo@iol.unh.edu> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@ma
examples/fips_validation: implement JSON CMAC test
Implemented JSON support for the CMAC test.
Signed-off-by: Brandon Lo <blo@iol.unh.edu> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com> Tested-by: Jakub Poczatek <jakub.poczatek@intel.com>
show more ...
|
#
443c93d8 |
| 30-May-2022 |
Brandon Lo <blo@iol.unh.edu> |
examples/fips_validation: add JSON for HMAC
Added JSON support for the HMAC algorithm.
Signed-off-by: Brandon Lo <blo@iol.unh.edu> Acked-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Ac
examples/fips_validation: add JSON for HMAC
Added JSON support for the HMAC algorithm.
Signed-off-by: Brandon Lo <blo@iol.unh.edu> Acked-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com> Tested-by: Jakub Poczatek <jakub.poczatek@intel.com>
show more ...
|
#
b09aac2d |
| 30-May-2022 |
Brandon Lo <blo@iol.unh.edu> |
examples/fips_validation: add JSON to GCM test
Added JSON-specific testing and writeback functions which allows the user to test AES-GCM vector sets.
Signed-off-by: Brandon Lo <blo@iol.unh.edu> Ack
examples/fips_validation: add JSON to GCM test
Added JSON-specific testing and writeback functions which allows the user to test AES-GCM vector sets.
Signed-off-by: Brandon Lo <blo@iol.unh.edu> Acked-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com> Tested-by: Jakub Poczatek <jakub.poczatek@intel.com>
show more ...
|
#
f556293f |
| 30-May-2022 |
Brandon Lo <blo@iol.unh.edu> |
examples/fips_validation: add JSON info to header
Added JSON-specific functions and other information needed to test the new FIPS test vectors.
Signed-off-by: Brandon Lo <blo@iol.unh.edu> Signed-of
examples/fips_validation: add JSON info to header
Added JSON-specific functions and other information needed to test the new FIPS test vectors.
Signed-off-by: Brandon Lo <blo@iol.unh.edu> Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com> Acked-by: Fan Zhang <roy.fan.zhang@intel.com> Tested-by: Jakub Poczatek <jakub.poczatek@intel.com>
show more ...
|
#
fc6e6515 |
| 04-Feb-2021 |
Ibtisam Tariq <ibtisam.tariq@emumba.com> |
examples/fips_validation: enhance getopt_long usage
Instead of using getopt_long return value, strcmp was used to compare the input parameters with the struct option array. This patch get rid of all
examples/fips_validation: enhance getopt_long usage
Instead of using getopt_long return value, strcmp was used to compare the input parameters with the struct option array. This patch get rid of all those strcmp by directly binding each longopt with an int enum. This is to improve readability and consistency in all examples.
Bugzilla ID: 238
Reported-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Ibtisam Tariq <ibtisam.tariq@emumba.com> Reviewed-by: David Marchand <david.marchand@redhat.com>
show more ...
|
#
d09abf2d |
| 09-Oct-2020 |
Fan Zhang <roy.fan.zhang@intel.com> |
examples/fips_validation: update GCM test
This patch updates fips validation GCM test capabilities:
- In NIST GCMVS spec GMAC test vectors are the GCM ones with plaintext length as 0 and uses AAD a
examples/fips_validation: update GCM test
This patch updates fips validation GCM test capabilities:
- In NIST GCMVS spec GMAC test vectors are the GCM ones with plaintext length as 0 and uses AAD as input data. Originally fips_validation tests treats them both as GCM test vectors. This patch introduce automatic test type recognition between the two: when plaintext length is 0 the prepare_gmac_xform and prepare_auth_op functions are called, otherwise prepare_gcm_xform and prepare_aead_op functions are called.
- NIST GCMVS also specified externally or internally IV generation. When IV is to be generated by IUT internally IUT shall store the generated IV in the response file. This patch also adds the support to that.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Signed-off-by: Weqaar Janjua <weqaar.a.janjua@intel.com> Acked-by: John Griffin <john.griffin@intel.com>
show more ...
|