Cryptography

Here are a set of steps to build python cryptography package

Pre-requisite

Microsoft Visual Studio 2019 or newer with ARM64 toolchain

Rust compiler for Windows on ARM64

Build OpenSSL

The first step is to build OpenSSL library which is a dependency for cryptography.

  1. Checkout OpenSSL repository

https://github.com/openssl/openssl

2. Configure and compile the library

perl .\Configure VC-WIN64-ARM no-asm --prefix=<location to install> --openssldir=<location for ssl config> nmake install

3. Add OpenSSL to LIB and PATH environment variable

$env:LIB+=";C:\Users\niysai01\Workspace\openssl_install\release\lib" $env:INCLUDE+=";C:\Users\niysai01\Workspace\openssl_install\release\include”

Build Cryptography package

  1. Checkout Cryptography source code

https://github.com/pyca/cryptography

2. Build package

python setup.py install

3. Test