Blog

June 18, 2025 · Technical · 7 min read

Cryptography on ARM cloud servers

AWS, Google, Microsoft and Oracle are all investing in ARM servers. How OpenCrypt runs on Graviton3 and Apple M2 compared with Xeon and EPYC, and what else to consider before moving cryptographic workloads.

AWS, Google, Microsoft and Oracle are all investing heavily in ARM-based servers, and Apple has moved its entire computing lineup to ARM. For anyone running cryptographic code in the cloud, that makes ARM performance a practical question.

Power and cost

Energy efficiency

ARM processors deliver exceptional performance per watt. Data centers consume 1-2% of global electricity, so this matters a great deal.

Metricx86 ServerARM ServerAdvantage
Typical TDP250W180W28% lower
Performance/Watt1.0x1.4x40% better
Annual Power Cost$2,190$1,577$613 saved

Based on 24/7 operation at $0.10/kWh

For organizations running thousands of servers, these savings add up to millions of dollars a year.

Licensing and cost

ARM's licensing model lets companies build custom silicon for their specific workloads. Amazon's Graviton, Apple's M-series and Ampere's Altra all show what that flexibility makes possible.

AWS Graviton3 instances typically cost 20-40% less than comparable x86 instances, while delivering equivalent or better performance for many workloads.

Cryptographic instructions on ARM

Modern ARM processors have dedicated hardware for cryptographic operations: AES instructions that run an encryption round in a single cycle, SHA instructions for hashing, and polynomial multiplication for fast authenticated encryption. With these, ARM processors match or exceed x86 performance on cryptographic workloads.

OpenCrypt benchmarks

We benchmarked OpenCrypt across platforms:

OperationIntel XeonAMD EPYCGraviton3Apple M2
AES-256-GCM4.5 GB/s4.8 GB/s4.2 GB/s4.6 GB/s
SHA-2562.1 GB/s2.3 GB/s1.9 GB/s2.4 GB/s
ML-KEM Keygen42 μs38 μs45 μs35 μs
ML-DSA Sign89 μs82 μs95 μs78 μs

ARM processors achieve competitive performance while consuming significantly less power.

ARM chips from the cloud providers

AWS Graviton

Amazon's Graviton processors have evolved quickly:

  • Graviton1 (2018): first generation, modest performance
  • Graviton2 (2020): 40% better price-performance than x86
  • Graviton3 (2021): 25% faster than Graviton2, DDR5 memory
  • Graviton4 (2024): 30% better compute performance

AWS reports that Graviton instances now power a significant portion of its internal infrastructure, including security-sensitive workloads.

Google Axion

Google announced Axion, its custom ARM processor, in 2024. It is built on ARM's Neoverse V2 design and targets both general compute and specialized workloads, including cryptographic operations.

Microsoft Cobalt

Microsoft's Cobalt 100 brings ARM to Azure, giving customers another option for running cryptographic workloads with improved efficiency.

Migrating to ARM

What works well

  • Containerized workloads: Docker and Kubernetes run without issues.
  • Modern languages: Go, Rust, Python and Node.js have excellent ARM support.
  • Databases: PostgreSQL, MySQL and MongoDB all perform well.
  • Cryptographic operations: native hardware acceleration is available.

Potential problems

  • Legacy x86 dependencies: some older software may need updates.
  • JIT compilers: make sure your runtime has ARM optimizations.
  • Binary dependencies: native extensions have to be recompiled for ARM.

OpenCrypt on ARM

OpenCrypt detects ARM capabilities automatically and uses the optimal code path:

use opencrypt::aead::{AesGcm256, Aead};

// Same API on all platforms
let cipher = AesGcm256::new(&key);
let ciphertext = cipher.encrypt(&nonce, &plaintext, &aad)?;

// Automatically uses:
// - AES-NI on x86
// - AES/PMULL instructions on ARM
// - Portable fallback elsewhere

Moving between platforms requires no code changes.

AWS instance costs

For a typical web application handling TLS termination:

Scenariox86 InstanceARM InstanceMonthly Savings
Smallc6i.large ($62/mo)c7g.large ($44/mo)$18 (29%)
Mediumc6i.xlarge ($124/mo)c7g.xlarge ($88/mo)$36 (29%)
Largec6i.4xlarge ($496/mo)c7g.4xlarge ($352/mo)$144 (29%)

AWS on-demand pricing, US East region

With hundreds of instances, migrating to ARM saves tens of thousands of dollars a month.

Security features

ARM processors have security features comparable to x86:

  • Memory tagging: ARM MTE helps detect memory safety issues.
  • Pointer authentication: PAC prevents certain exploit techniques.
  • Speculation barriers: mitigations for Spectre-class vulnerabilities.
  • TrustZone: hardware isolation for sensitive operations.

For cryptographic implementations, the key considerations are:

  1. Constant-time execution: ARM provides timing-safe instructions.
  2. Side-channel resistance: hardware crypto avoids cache-based leaks.
  3. Key isolation: TrustZone can protect cryptographic keys.

OpenCrypt's ARM implementation keeps the same security guarantees as our x86 code. It needs no configuration changes on ARM, and our CI/CD pipeline tests on both x86 and ARM to ensure consistent behavior and performance across platforms.

Industry analysts project that ARM will capture 30% of the server market by 2027, up from under 10% today.

Questions about this post, or working on something similar? Book a meeting.