From 56c0b19612dd25b84474211c1a84897fe89ce7d4 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 4 Oct 2016 09:51:14 +0200 Subject: without_openssl: support compiling completely without openssl Build helper script: build-without-openssl.bash --- internal/stupidgcm/stupidgcm.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/stupidgcm/stupidgcm.go') diff --git a/internal/stupidgcm/stupidgcm.go b/internal/stupidgcm/stupidgcm.go index 0f4e25d..db9e6ef 100644 --- a/internal/stupidgcm/stupidgcm.go +++ b/internal/stupidgcm/stupidgcm.go @@ -1,3 +1,5 @@ +// +build !without_openssl + // Package stupidgcm is a thin wrapper for OpenSSL's GCM encryption and // decryption functions. It only support 32-byte keys and 16-bit IVs. package stupidgcm @@ -13,6 +15,9 @@ import ( ) const ( + // Has openssl been disabled at compile-time? + BuiltWithoutOpenssl = false + keyLen = 32 ivLen = 16 tagLen = 16 -- cgit v1.2.3