Taking Cryptography Out of the Data Path via Near-Memory Processing in DRAM CCS: Computer systems organization Parallel architectures CCS: Computing methodologies Parallel computing methodologies
Nicola Barcarolo, Brahmaiah Gandham, Mohammad Sadrosadati, Roberto Passerone, Onur Mutlu, Flavio Vella · 2026
Read Taking Cryptography Out of the Data Path via Near-Memory Processing in DRAM CCS: Computer systems organization Parallel architectures CCS: Computing methodologies Parallel computing methodologies by Nicola Barcarolo, Brahmaiah Gandham, Mohammad Sadrosadati, Roberto Passerone, Onur Mutlu, Flavio Vella (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-20047.txt.
Introduction
Nicola Barcarolo and five co-workers test real processing-in-memory hardware for speeding up cryptography in DRAM. Standard processors slow AES and SHA routines mainly through the memory bottleneck, raising latency and energy use on large data volumes. On the UPMEM system, a single rank still trails modern CPUs, but spreading the work across ranks lifts performance markedly. Using all available ranks, real processing-in-memory gives its strongest acceleration of cryptographic algorithms.
Catalog record
| CREATOR | Nicola Barcarolo, Brahmaiah Gandham, Mohammad Sadrosadati, Roberto Passerone, Onur Mutlu, Flavio Vella |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 35249 |
| LICENSE | http://creativecommons.org/licenses/by-sa/4.0/ |
| RIGHTS | CC BY SA |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.20047
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Taking Cryptography Out of the Data Path via Near-Memory Processing in DRAM CCS: Computer systems organization Parallel architectures CCS: Computing methodologies Parallel computing methodologies Nicola Barcarolo, Brahmaiah Gandham, Mohammad Sadrosadati, Roberto Passerone, Onur Mutlu, Flavio Vella Abstract . Cryptographic algorithms such as AES-128 and SHA-256 are fundamental to ensuring data security and integrity. Although these algorithms are computationally efficient, their performance is often constrained by the processor-centric architectures (e.g., CPUs, GPUs), primarily due to the memory bottleneck. This constraint leads to increased latency and higher energy consumption, particularly when handling large volumes of data. To overcome these challenges, Processing-in-Memory (PIM) has emerged as a promising architectural paradigm, allowing computation to occur directly within or near memory units. By minimizing data movement between the processor and memory units, PIM can significantly accelerate cryptographic algorithms while improving energy efficiency. Several pieces of prior work have demonstrated the effectiveness of PIM at fundamentally accelerating cryptographic algorithms. However, none of the prior works have extensively demonstrated the potential of a real-world PIM system. In this paper, we want to investigate the potential and limitations of real-world PIM in accelerating cryptographic algorithms. As part of our methodology, the UPMEM PIM architecture is used to assess the scalability of cryptographic algorithms. When these algorithms operate on a single rank, their performance remains below that of modern CPUs. However, distributing the computation across multiple ranks significantly enhances performance. When all available ranks are utilized, real-world PIM can accelerate cryptographic algorithms more effectively. 1. Introduction The Advanced Encryption Standard ( AES ) 16 and the Secure Hash Algorithm ( SHA ) 11 are two of the most widely used algorithms where data security is needed. However, their software implementation can be computationally expensive and can provide only a limited level of throughput due to the memory-bound characteristics of the algorithms. In systems based on the processor-centric architecture, the performance of some tasks is limited not by the CPU computational power, but by the bottleneck between the CPU and main memory. This bottleneck is caused by high-latency memory access and data transfers over a narrow-bandwidth communication channel. Furthermore, this bottleneck is responsible for a significant portion of total energy consumption. Recent studies show that data movement between the processor and RAM can account for up to 62% of total system energy consumption 58 . To address the limitations of memory bandwidth in processor-centric architectures, a growing number of Processing-In-Memory ( PIM ) architectures have been proposed in recent years 57 ; 58 ; 66 , attracting increase interest from both the academic community 1 ; 2 ; 3 ; 4 ; 5 ; 6 ; 7 ; 8 ; 9 ; 10 ; 12 ; 13 ; 15 ; 17 ; 18 ; 19 ; 20 ; 21 ; 22 ; 25 ; 55 ; 31 ; 30 ; 33 ; 34 ; 35 ; 36 ; 39 ; 38 ; 41 ; 42 ; 45 ; 46 ; 50 ; 51 ; 54 ; 56 ; 57 ; 53 ; 61 ; 62 ; 63 ; 65 ; 66 ; 67 ; 68 ; 69 ; 74 ; 75 ; 77 ; 79 and industry. This renewed momentum is reflected in the emergence of several commercial systems and hardware prototypes that integrate PIM capabilities 14 ; 37 ; 43 ; 48 ; 49 ; 60 ; 72 ; 73 . The core idea behind PIM is to integrate compute-capable units directly within the memory chips, enabling data to be processed in place and thus avoiding the performance and energy penalties associated with transferring data over a narrow-bandwidth channel. Due to technological constraints, the practical realization of such architectures has only become feasible recently. UPMEM was the first to design and produce a working Processing-In-Memory system, the details of which are discussed in Section 2 . The software implementation of both AES-128 and SHA-256 has memory-bound characteristics. Figure 1 shows that both algorithms are placed in the memory-bound region of the Roofline model 76 when applied to the UPMEM non-PIM architecture (i.e., a processor-centric architecture, see Section 2 ). Figure 1 . Roofline model applied on the UPMEM processor-centric architecture: only standard CPU ( INTEL Xeon Silver 4215 ) and non-PIM memory ( DDR4-2666 RDIMM Dual Rank DRAM ) is considered Despite real-world PIM systems have been widely tested with workloads defined as memory-bound from very different domains (algebra 21 , bio-informatics 47 ; 45 , image processing 52 , neural networks 23 , etc.) 27 , among cryptographic algorithms, only one study has addressed AES-128 59 , and the present work is the first to implement SHA-256. This paper makes several key contributions to the PIM computing field: • It provides a practical example of how to design and test a PIM-enabled program on a real-world PIM system, showcasing its real-world capability. • It characterizes the performance of the two most widely-used encryption algorithms, AES-128 and SHA-256 , on a machine adopting a Processing-Near-Memory approach, highlighting how these memory-bound algorithms behave under a real-world PIM system. • It explores the potential and limitations of PIM machines to accelerate the AES-128 and SHA-256 algorithms, investigating whether and how PIM systems can be exploited to enhance their speed-up compared to processor-centric architectures. This paper is organized as follows. At the beginning, Section 2 provides a brief overview of the main Processing-In-Memory approaches, along with a description of the UPMEM architecture and its key features. Section 3 reviews prior research on cryptographic workloads in PIM systems. Section 4 introduces a software-based PIM implementation of AES-128 and SHA-256 , while Section 6 presents the performance results and compares them with those of traditional software implementations and, in the case of AES-128 , also with a hardware implementation. 2. Background This section presents the first publicly available real-world PIM system, with particular emphasis on its main features, programming model, and a brief characterization of its achievable performance. Although the first studies on PIM date back over fifty years, the implementation of a memory-centric architecture remained a major challenge until the last decade, primarily due to technological limitations in RAM fabrication 58 . In recent times, DRAM scaling has reached its practical limits, and it has become very difficult to improve density, reduce latency, and lower energy consumption 20 . In response, designers have started exploring alternative solutions by developing new memory devices based on emerging technologies, thereby paving the way for novel memory-centric architectures. In recent years, two major approaches have been developed for PIM architectures. The first approach is Processing-Using-Memory ( PUM ), which leverages the intrinsic properties of analog signals to perform computations directly within memory chips. For example, many PUM architectures utilize modified sense amplifiers that enable the simultaneous activation of three memory rows. This approach requires only minimal modifications compared to standard RAM structures. However, in most cases, only simple operations, such as addition or bit-wise logical operations, can be executed within the memory. An alternative approach is Processing-Near-Memory ( PNM ), as implemented by the company UPMEM, which involves integrating compute-capable units, such as accelerators or general-purpose cores, directly inside or in close proximity to memory chips. This design enables memory to play an active role in data