2
0

meson.build 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # crypto test suite
  2. test_apps = [
  3. 'cipher_driver',
  4. 'datatypes_driver',
  5. 'kernel_driver',
  6. 'env',
  7. ]
  8. if not use_openssl and not use_nss
  9. test_apps += ['sha1_driver']
  10. endif
  11. foreach test_name : test_apps
  12. test_exe = executable(test_name,
  13. '@0@.c'.format(test_name), '../../test/getopt_s.c', '../../test/util.c',
  14. include_directories: [config_incs, crypto_incs, srtp2_incs, test_incs],
  15. dependencies: [srtp2_deps, syslibs],
  16. link_with: libsrtp2_for_tests)
  17. test(test_name, test_exe, args: ['-v'])
  18. endforeach
  19. if not use_openssl and not use_nss
  20. test_exe = executable('aes_calc',
  21. 'aes_calc.c', '../../test/getopt_s.c', '../../test/util.c',
  22. include_directories: [config_incs, crypto_incs, srtp2_incs, test_incs],
  23. dependencies: [srtp2_deps, syslibs],
  24. link_with: libsrtp2_for_tests)
  25. # data values used to test the aes_calc application for AES-128
  26. k128 = '000102030405060708090a0b0c0d0e0f'
  27. p128 = '00112233445566778899aabbccddeeff'
  28. c128 = '69c4e0d86a7b0430d8cdb78070b4c55a'
  29. test('aes_calc_128', test_exe, args: [k128, p128, c128])
  30. # data values used to test the aes_calc application for AES-256
  31. k256 = '000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f'
  32. p256 = '00112233445566778899aabbccddeeff'
  33. c256 = '8ea2b7ca516745bfeafc49904b496089'
  34. test('aes_calc_256', test_exe, args: [k256, p256, c256])
  35. endif