ALGORITHMIC SUPPORT FOR DATA INTEGRITY CONTROL BASED ON THE MERKLE TREE
DOI:
https://doi.org/10.32782/mathematical-modelling/2026-9-1-8Keywords:
data integrity, Merkle tree, cryptographic hash function, algorithmic complexity, SHA-256, Kupyna, DSTU 7564:2014, data authentication, distributed systemsAbstract
The article examines algorithmic and cryptographic aspects of data integrity assurance using a hierarchical hash structure known as a Merkle tree. The relevance of such structures in modern information systems is substantiated, particularly in the context of large-scale data processing, cloud services, and distributed ledgers. Traditional integrity control approaches, including checksums, flat and block hashing, as well as message authentication codes, are analyzed, and their limitations in terms of scalability and efficiency of partial verification are identified. A formalized description of the Merkle tree as a complete binary tree is presented, where nodes store cryptographic hash values and the root hash serves as a compact representation of the entire dataset. An analytical evaluation of time and space complexity for the main operations–tree construction, single-block verification, and update–is performed. It is shown that construction has linear complexity O(n), while verification and update of a single element exhibit logarithmic complexity O(log n), ensuring efficiency as the data volume increases. A dynamic binary tree implementation in C++ was developed with support for interchangeable cryptographic hash functions. An experimental performance study was conducted using SHA-256 and the national hash function Kupyna-256 in accordance with DSTU 7564:2014. The results confirmed the theoretical complexity estimates and demonstrated stable scalability behavior for datasets up to several gigabytes. It was established that the use of Kupyna increases execution time by approximately 25–30 % compared to SHA-256 without affecting the overall scalability pattern. The scientific novelty of the work consists in a systematic analytical study of the algorithmic characteristics of the Merkle tree, experimental confirmation of the logarithmic dependence of verification time on data size under practical conditions, and assessment of the practical applicability of a national hash function within an integrity control structure. The obtained results may be applied in the design of secure distributed file systems, cloud services, and blockchain-oriented applications.
References
Stallings W. Cryptography and Network Security: Principles and Practice. 7th ed. Boston: Pearson, 2017. 768 p.
Tanenbaum A. S., Wetherall D. J. Computer Networks. 5th ed. Boston: Pearson, 2011. 960 p.
Menezes A. J., van Oorschot P. C., Vanstone S. A. Handbook of Applied Cryptography. Boca Raton: CRC Press, 1997. 810 p. DOI:. https://doi.org/10.1201/9780429466335
ДСТУ ISO/IEC 10118-3:2017. Інформаційні технології. Методи захисту. Хеш-функції. Частина 3. Вид. офіц. Київ: ДП «УкрНДНЦ», 2017.
Cormen T. H., Leiserson C. E., Rivest R. L., Stein C. Introduction to Algorithms. 3rd ed. Cambridge : MIT Press, 2009. 1312 p.
Merkle R.C. A Certified Digital Signature. In: Brassard, G. (eds) Advances in Cryptology – CRYPTO’89 Proceedings. CRYPTO’1989. Lecture Notes in Computer Science, vol. 435. 1990. Springer, New York, NY. https://doi.org/10.1007/0-387-34805-0_21
Nakamoto S. Bitcoin: A Peer-to-Peer Electronic Cash System. 2008. URL: https://bitcoin.org/bitcoin.pdf (дата звернення: 24.02.2026).
Crosby S. A., Wallach D. S. Efficient Data Structures for Tamper-Evident Logging. Proceedings of the 18th USENIX Security Symposium. Montreal, 10-14 August 2009. Montreal, Canada, 2009. P. 317–334.
Miller A., Hicks M., Katz J., Shi E. Authenticated Data Structures, Generically. Authenticated data structures, generically. ACM SIGPLAN Notices. 49. 411–423. https://doi.org/10.1145/2578855.2535851
Swapna P., Fazila S., Naik K., Amrutha vani G., Reddaiah B. Hybrid Cryptosystem Ensuring CIA Triad. International Journal of Engineering and Advanced Technology. 2022. Vol. 12. № 1. P. 50–53. DOI: https://doi.org/10.35940/ijeat.A3841.1012122
Krawczyk H., Bellare M., Canetti R. HMAC: Keyed-Hashing for Message Authentication. RFC 2104, 1997. DOI: https://doi.org/10.17487/RFC2104
ДСТУ 7564:2014. Інформаційні технології. Криптографічний захист інформації. Функція хешування «Купина». Київ: Мінекономрозвитку України, 2015.
Merkle R. C. Protocols for public key cryptosystems. Proceedings of the IEEE Symposium on Security and Privacy. 1980. P. 122-134. DOI: https://doi.org/10.1109/SP.1980.10006
Kachko O., Televnyi D. The Kupyna hash function cryptanalysis with Merkle Trees Signature schemes. Radiotekhnika. 2018. No. 4 (195), P. 27–31. DOI: https://doi.org/10.30837/rt.2018.4.195.03
Zarudny I., Lyubchak V. Selection of algorithms and data structures for secure storage and processing of metadata in IoT systems based on the Ethereum blockchain. Collection “Information Technology and Security”. 2025. Vol. 13(2), P. 204–215. DOI: https://doi.org/10.20535/2411-1031.2025.13.2.344708





