Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

CMakeLists.txt 1.5 KiB

Add PPC64LE assembly for AES-GCM. This change adds AES and GHASH assembly from upstream, with the aim of speeding up AES-GCM. The PPC64LE assembly matches the interface of the ARMv8 assembly so I've changed the prefix of both sets of asm functions to be the same ("aes_hw_"). Otherwise, the new assmebly files and Perlasm match exactly those from upstream's c536b6be1a (from their master branch). Before: Did 1879000 AES-128-GCM (16 bytes) seal operations in 1000428us (1878196.1 ops/sec): 30.1 MB/s Did 61000 AES-128-GCM (1350 bytes) seal operations in 1006660us (60596.4 ops/sec): 81.8 MB/s Did 11000 AES-128-GCM (8192 bytes) seal operations in 1072649us (10255.0 ops/sec): 84.0 MB/s Did 1665000 AES-256-GCM (16 bytes) seal operations in 1000591us (1664016.6 ops/sec): 26.6 MB/s Did 52000 AES-256-GCM (1350 bytes) seal operations in 1006971us (51640.0 ops/sec): 69.7 MB/s Did 8840 AES-256-GCM (8192 bytes) seal operations in 1013294us (8724.0 ops/sec): 71.5 MB/s After: Did 4994000 AES-128-GCM (16 bytes) seal operations in 1000017us (4993915.1 ops/sec): 79.9 MB/s Did 1389000 AES-128-GCM (1350 bytes) seal operations in 1000073us (1388898.6 ops/sec): 1875.0 MB/s Did 319000 AES-128-GCM (8192 bytes) seal operations in 1000101us (318967.8 ops/sec): 2613.0 MB/s Did 4668000 AES-256-GCM (16 bytes) seal operations in 1000149us (4667304.6 ops/sec): 74.7 MB/s Did 1202000 AES-256-GCM (1350 bytes) seal operations in 1000646us (1201224.0 ops/sec): 1621.7 MB/s Did 269000 AES-256-GCM (8192 bytes) seal operations in 1002804us (268247.8 ops/sec): 2197.5 MB/s Change-Id: Id848562bd4e1aa79a4683012501dfa5e6c08cfcc Reviewed-on: https://boringssl-review.googlesource.com/11262 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
před 8 roky
Add PPC64LE assembly for AES-GCM. This change adds AES and GHASH assembly from upstream, with the aim of speeding up AES-GCM. The PPC64LE assembly matches the interface of the ARMv8 assembly so I've changed the prefix of both sets of asm functions to be the same ("aes_hw_"). Otherwise, the new assmebly files and Perlasm match exactly those from upstream's c536b6be1a (from their master branch). Before: Did 1879000 AES-128-GCM (16 bytes) seal operations in 1000428us (1878196.1 ops/sec): 30.1 MB/s Did 61000 AES-128-GCM (1350 bytes) seal operations in 1006660us (60596.4 ops/sec): 81.8 MB/s Did 11000 AES-128-GCM (8192 bytes) seal operations in 1072649us (10255.0 ops/sec): 84.0 MB/s Did 1665000 AES-256-GCM (16 bytes) seal operations in 1000591us (1664016.6 ops/sec): 26.6 MB/s Did 52000 AES-256-GCM (1350 bytes) seal operations in 1006971us (51640.0 ops/sec): 69.7 MB/s Did 8840 AES-256-GCM (8192 bytes) seal operations in 1013294us (8724.0 ops/sec): 71.5 MB/s After: Did 4994000 AES-128-GCM (16 bytes) seal operations in 1000017us (4993915.1 ops/sec): 79.9 MB/s Did 1389000 AES-128-GCM (1350 bytes) seal operations in 1000073us (1388898.6 ops/sec): 1875.0 MB/s Did 319000 AES-128-GCM (8192 bytes) seal operations in 1000101us (318967.8 ops/sec): 2613.0 MB/s Did 4668000 AES-256-GCM (16 bytes) seal operations in 1000149us (4667304.6 ops/sec): 74.7 MB/s Did 1202000 AES-256-GCM (1350 bytes) seal operations in 1000646us (1201224.0 ops/sec): 1621.7 MB/s Did 269000 AES-256-GCM (8192 bytes) seal operations in 1002804us (268247.8 ops/sec): 2197.5 MB/s Change-Id: Id848562bd4e1aa79a4683012501dfa5e6c08cfcc Reviewed-on: https://boringssl-review.googlesource.com/11262 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
před 8 roky
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. include_directories(../../include)
  2. if (${ARCH} STREQUAL "x86_64")
  3. set(
  4. AES_ARCH_SOURCES
  5. aes-x86_64.${ASM_EXT}
  6. aesni-x86_64.${ASM_EXT}
  7. bsaes-x86_64.${ASM_EXT}
  8. vpaes-x86_64.${ASM_EXT}
  9. )
  10. endif()
  11. if (${ARCH} STREQUAL "x86")
  12. set(
  13. AES_ARCH_SOURCES
  14. aes-586.${ASM_EXT}
  15. vpaes-x86.${ASM_EXT}
  16. aesni-x86.${ASM_EXT}
  17. )
  18. endif()
  19. if (${ARCH} STREQUAL "arm")
  20. set(
  21. AES_ARCH_SOURCES
  22. aes-armv4.${ASM_EXT}
  23. bsaes-armv7.${ASM_EXT}
  24. aesv8-armx.${ASM_EXT}
  25. )
  26. endif()
  27. if (${ARCH} STREQUAL "aarch64")
  28. set(
  29. AES_ARCH_SOURCES
  30. aesv8-armx.${ASM_EXT}
  31. )
  32. endif()
  33. if (${ARCH} STREQUAL "ppc64le")
  34. set(
  35. AES_ARCH_SOURCES
  36. aesp8-ppc.${ASM_EXT}
  37. )
  38. endif()
  39. add_library(
  40. aes
  41. OBJECT
  42. aes.c
  43. mode_wrappers.c
  44. ${AES_ARCH_SOURCES}
  45. )
  46. perlasm(aes-x86_64.${ASM_EXT} asm/aes-x86_64.pl)
  47. perlasm(aesni-x86_64.${ASM_EXT} asm/aesni-x86_64.pl)
  48. perlasm(bsaes-x86_64.${ASM_EXT} asm/bsaes-x86_64.pl)
  49. perlasm(vpaes-x86_64.${ASM_EXT} asm/vpaes-x86_64.pl)
  50. perlasm(aes-586.${ASM_EXT} asm/aes-586.pl)
  51. perlasm(vpaes-x86.${ASM_EXT} asm/vpaes-x86.pl)
  52. perlasm(aesni-x86.${ASM_EXT} asm/aesni-x86.pl)
  53. perlasm(aes-armv4.${ASM_EXT} asm/aes-armv4.pl)
  54. perlasm(bsaes-armv7.${ASM_EXT} asm/bsaes-armv7.pl)
  55. perlasm(aesv8-armx.${ASM_EXT} asm/aesv8-armx.pl)
  56. perlasm(aesp8-ppc.${ASM_EXT} asm/aesp8-ppc.pl)
  57. add_executable(
  58. aes_test
  59. aes_test.cc
  60. $<TARGET_OBJECTS:test_support>
  61. )
  62. target_link_libraries(aes_test crypto)
  63. add_dependencies(all_tests aes_test)