Skip to main content

2021 | OriginalPaper | Buchkapitel

Multi-core and SIMD Architecture Based Implementation on SHA-256 of Blockchain

verfasst von : Xing Fan, Baoning Niu

Erschienen in: Blockchain Technology and Application

Verlag: Springer Singapore

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

SHA-256 is a completely unpredictable pseudorandom function which generates unique output for a given input ensuring data authenticity and non-repudiation. It is the cornerstone for imparting security and privacy into Blockchain and its efficiency of calculation decides the performance of Blockchain. In this paper, we propose two novel methods to accelerate the calculation of SHA-256 in different situations. To eliminate the useless operations, we present pre-expanded padding blocks and hard coded into the software. On this basis, for a single message containing multiple 512-bit message blocks, we propose Interleaved Multi-Vectorizing Message Scheduling (IMV-MS) to optimize the message schedule stage of SHA-256, which utilize the interleaved multi-vectorizing (IMV) to combine single instruction multiple data (SIMD) vectorization with SHA-256. It splits a vectorized program into multiple states, then it interleaves the execution of vectorized states from those running instances which can make full use of the data parallelism in SIMD. On the other hand, in the situation where we hash several messages simultaneously, we propose the modified SHA-256 which employs SIMD instructions and thread-level parallelism technology together to realize parallel optimization on SHA-256. As experimental results show, IMV-MS and the proposed SHA-256 achieves up to 6.36X, 60.38X better performance compared with the pure SIMD vectorization and the pure scalar implementation, respectively.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
3.
Zurück zum Zitat Androulaki, E., Barger, A., Bortnikov, V., Cachin, C., Christidis, K., et al.: Hyperledger fabric: a distributed operating system for permissioned blockchains. In: Proceedings of the Thirteenth EuroSys Conference, pp. 1–15. ACM, New York (2018) Androulaki, E., Barger, A., Bortnikov, V., Cachin, C., Christidis, K., et al.: Hyperledger fabric: a distributed operating system for permissioned blockchains. In: Proceedings of the Thirteenth EuroSys Conference, pp. 1–15. ACM, New York (2018)
7.
Zurück zum Zitat Gueron, S., Krasnov, V.: Parallelizing message schedules to accelerate the computations of hash functions. J. Cryptogr. Eng. 2(4), 241–253 (2012)CrossRef Gueron, S., Krasnov, V.: Parallelizing message schedules to accelerate the computations of hash functions. J. Cryptogr. Eng. 2(4), 241–253 (2012)CrossRef
10.
Zurück zum Zitat McEvoy, R.P., Francis, M.C., Colin, C.M., William, P.M.: Optimisation of the SHA-2 family of hash functions on FPGAs. In: Proceedings of the IEEE Computer Society Annual Symposium on Emerging VLSI Technologies and Architectures, pp. 317–322. IEEE, NW Washington (2006) McEvoy, R.P., Francis, M.C., Colin, C.M., William, P.M.: Optimisation of the SHA-2 family of hash functions on FPGAs. In: Proceedings of the IEEE Computer Society Annual Symposium on Emerging VLSI Technologies and Architectures, pp. 317–322. IEEE, NW Washington (2006)
12.
Zurück zum Zitat Taylor, M.B.: The evolution of bitcoin hardware. Computer 50(9), 58–66 (2017)CrossRef Taylor, M.B.: The evolution of bitcoin hardware. Computer 50(9), 58–66 (2017)CrossRef
13.
Zurück zum Zitat Jega, A.D.: Bitcoin mining acceleration and performance quantification. In: 2014 IEEE 27th Canadian Conference on Electrical and Computer Engineering, pp. 1–6. IEEE, NW Washington (2014) Jega, A.D.: Bitcoin mining acceleration and performance quantification. In: 2014 IEEE 27th Canadian Conference on Electrical and Computer Engineering, pp. 1–6. IEEE, NW Washington (2014)
15.
Zurück zum Zitat Fang, Z.H., Zheng, B.L., Weng, C.L.: Interleaved multi-vectorizing. Proc. VLDB Endow. 13(3), 226–238 (2019)CrossRef Fang, Z.H., Zheng, B.L., Weng, C.L.: Interleaved multi-vectorizing. Proc. VLDB Endow. 13(3), 226–238 (2019)CrossRef
Metadaten
Titel
Multi-core and SIMD Architecture Based Implementation on SHA-256 of Blockchain
verfasst von
Xing Fan
Baoning Niu
Copyright-Jahr
2021
Verlag
Springer Singapore
DOI
https://doi.org/10.1007/978-981-33-6478-3_4

Premium Partner