Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 833 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 833 Bytes

Cryptography

Examples of code related to cryptography.

Builds for two versions of openssl: 1.1.1t and 3.3.1.

How to build and run

cd cryptography

# Build (for two versions of openssl)
$ bazel build //cipher:cipher-1.1.1t //cipher:cipher-3.3.1

# Run
# Default cipher test
$ ./bazel-bin/cipher/cipher-1.1.1t
$ ./bazel-bin/cipher/cipher-3.3.1

# Concrete cipher test
$ ./bazel-bin/cipher/cipher-1.1.1t chacha20-poly1305
$ ./bazel-bin/cipher/cipher-3.3.1 chacha20-poly1305

$ ./bazel-bin/cipher/cipher-1.1.1t aes-128-gcm
$ ./bazel-bin/cipher/cipher-3.3.1 aes-128-gcm

# Test not authenticated encryption modes
$ ./bazel-bin/cipher/cipher-1.1.1t AES-128-CTR AES-128-CBC --no-authenticated-encryption

Cipher names in openssl code