summaryrefslogtreecommitdiff
path: root/lib/libcrypto
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-11-17 20:31:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-11-17 20:31:23 +0000
commitaf32d5ab328fe7957bd104c9780327d98ec7da51 (patch)
treed440ae46b7fb9628a00bcf896d4917d6600452da /lib/libcrypto
parent5281a5d0fd29f9673e8e3afd0fb722e045aa738d (diff)
Add the Cammelia cipher to libcrypto.
There used to be a strong reluctance to provide this cipher in LibreSSL in the past, because the licence terms under which Cammelia was released by NTT were free-but-not-in-the-corners, by restricting the right to modify the source code, as well retaining the right to enforce their patents against anyone in the future. However, as stated in http://www.ntt.co.jp/news/news06e/0604/060413a.html , NTT changed its mind and made this code truly free. We only wish there had been more visibility of this, for we could have had enabled Cammelia earlier (-: Licence change noticed by deraadt@. General agreement from the usual LibreSSL suspects. Crank libcrypto.so minor version due to the added symbols.
Diffstat (limited to 'lib/libcrypto')
-rw-r--r--lib/libcrypto/arch/alpha/Makefile.inc4
-rw-r--r--lib/libcrypto/arch/amd64/Makefile.inc5
-rw-r--r--lib/libcrypto/arch/arm/Makefile.inc2
-rw-r--r--lib/libcrypto/arch/hppa/Makefile.inc4
-rw-r--r--lib/libcrypto/arch/i386/Makefile.inc4
-rw-r--r--lib/libcrypto/arch/mips64/Makefile.inc4
-rw-r--r--lib/libcrypto/arch/powerpc/Makefile.inc4
-rw-r--r--lib/libcrypto/arch/sparc/Makefile.inc4
-rw-r--r--lib/libcrypto/arch/sparc64/Makefile.inc4
-rw-r--r--lib/libcrypto/arch/vax/Makefile.inc4
-rw-r--r--lib/libcrypto/camellia/asm/cmll-x86.pl2
-rw-r--r--lib/libcrypto/opensslfeatures.h1
-rw-r--r--lib/libcrypto/shlib_version2
13 files changed, 32 insertions, 12 deletions
diff --git a/lib/libcrypto/arch/alpha/Makefile.inc b/lib/libcrypto/arch/alpha/Makefile.inc
index 9c9d77ea75a..82fa9fc1f47 100644
--- a/lib/libcrypto/arch/alpha/Makefile.inc
+++ b/lib/libcrypto/arch/alpha/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.2 2014/05/03 17:23:55 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2014/11/17 20:31:21 miod Exp $
# alpha-specific libcrypto build rules
@@ -10,6 +10,8 @@ SRCS+= bf_enc.c
SRCS+= bn_asm.c
SSLASM+= bn alpha-mont
CFLAGS+= -DOPENSSL_BN_ASM_MONT
+# camellia
+SRCS+= camellia.c cmll_cbc.c cmll_misc.c
# des
SRCS+= des_enc.c fcrypt_b.c
# modes
diff --git a/lib/libcrypto/arch/amd64/Makefile.inc b/lib/libcrypto/arch/amd64/Makefile.inc
index fe7e17df0eb..3f921964515 100644
--- a/lib/libcrypto/arch/amd64/Makefile.inc
+++ b/lib/libcrypto/arch/amd64/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.3 2014/08/11 13:29:43 bcook Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2014/11/17 20:31:21 miod Exp $
# amd64-specific libcrypto build rules
@@ -23,6 +23,9 @@ CFLAGS+= -DOPENSSL_BN_ASM_MONT5
SSLASM+= bn x86_64-mont5
CFLAGS+= -DOPENSSL_BN_ASM_GF2m
SSLASM+= bn x86_64-gf2m
+# camellia
+SRCS+= cmll_misc.c
+SSLASM+= camellia cmll-x86_64
# des
SRCS+= des_enc.c fcrypt_b.c
# md5
diff --git a/lib/libcrypto/arch/arm/Makefile.inc b/lib/libcrypto/arch/arm/Makefile.inc
index 08179b72836..22145a79cc1 100644
--- a/lib/libcrypto/arch/arm/Makefile.inc
+++ b/lib/libcrypto/arch/arm/Makefile.inc
@@ -14,6 +14,8 @@ CFLAGS+= -DOPENSSL_BN_ASM_MONT
SSLASM+= bn armv4-mont
CFLAGS+= -DOPENSSL_BN_ASM_GF2m
SSLASM+= bn armv4-gf2m
+# camellia
+SRCS+= camellia.c cmll_cbc.c cmll_misc.c
# des
SRCS+= des_enc.c fcrypt_b.c
# modes
diff --git a/lib/libcrypto/arch/hppa/Makefile.inc b/lib/libcrypto/arch/hppa/Makefile.inc
index 8f91214a508..0f605868659 100644
--- a/lib/libcrypto/arch/hppa/Makefile.inc
+++ b/lib/libcrypto/arch/hppa/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.6 2014/09/27 20:42:38 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.7 2014/11/17 20:31:21 miod Exp $
# hppa-specific libcrypto build rules
@@ -12,6 +12,8 @@ SRCS+= bf_enc.c
SRCS+= bn_asm.c
SSLASM+= bn parisc-mont parisc-mont
CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV2W
+# camellia
+SRCS+= camellia.c cmll_cbc.c cmll_misc.c
# des
SRCS+= des_enc.c fcrypt_b.c
# modes
diff --git a/lib/libcrypto/arch/i386/Makefile.inc b/lib/libcrypto/arch/i386/Makefile.inc
index e450bfe8aae..f4e1f36b1cc 100644
--- a/lib/libcrypto/arch/i386/Makefile.inc
+++ b/lib/libcrypto/arch/i386/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.3 2014/05/07 00:04:14 deraadt Exp $
+# $OpenBSD: Makefile.inc,v 1.4 2014/11/17 20:31:22 miod Exp $
# i386-specific libcrypto build rules
@@ -20,6 +20,8 @@ CFLAGS+= -DOPENSSL_BN_ASM_MONT
SSLASM+= bn x86-mont
CFLAGS+= -DOPENSSL_BN_ASM_GF2m
SSLASM+= bn x86-gf2m
+# camellia
+SSLASM+= camellia cmll-x86
# des
SRCS+= fcrypt_b.c
SSLASM+= des des-586
diff --git a/lib/libcrypto/arch/mips64/Makefile.inc b/lib/libcrypto/arch/mips64/Makefile.inc
index 0ae20ad5ccd..3b8f01e41cc 100644
--- a/lib/libcrypto/arch/mips64/Makefile.inc
+++ b/lib/libcrypto/arch/mips64/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.2 2014/05/02 21:55:31 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2014/11/17 20:31:22 miod Exp $
# mips64-specific libcrypto build rules
@@ -12,6 +12,8 @@ SRCS+= bf_enc.c
SSLASM+= bn mips bn-mips
SSLASM+= bn mips-mont mips-mont
CFLAGS+= -DOPENSSL_BN_ASM_MONT -DBN_DIV3W
+# camellia
+SRCS+= camellia.c cmll_cbc.c cmll_misc.c
# des
SRCS+= des_enc.c fcrypt_b.c
# rc4
diff --git a/lib/libcrypto/arch/powerpc/Makefile.inc b/lib/libcrypto/arch/powerpc/Makefile.inc
index b6ef263046f..46790859b5a 100644
--- a/lib/libcrypto/arch/powerpc/Makefile.inc
+++ b/lib/libcrypto/arch/powerpc/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.1 2014/05/03 11:41:05 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2014/11/17 20:31:22 miod Exp $
# powerpc-specific libcrypto build rules
@@ -14,6 +14,8 @@ SSLASM+= bn ppc bn-ppc
SSLASM+= bn ppc-mont ppc-mont # bn_mul_mont_int
#SSLASM+= bn ppc64-mont ppc64-mont # bn_mul_mont_fpu64
CFLAGS+= -DOPENSSL_BN_ASM_MONT
+# camellia
+SRCS+= camellia.c cmll_cbc.c cmll_misc.c
# des
SRCS+= des_enc.c fcrypt_b.c
# rc4
diff --git a/lib/libcrypto/arch/sparc/Makefile.inc b/lib/libcrypto/arch/sparc/Makefile.inc
index 54dc3187376..ba9954c85eb 100644
--- a/lib/libcrypto/arch/sparc/Makefile.inc
+++ b/lib/libcrypto/arch/sparc/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.1 2014/05/05 04:44:54 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2014/11/17 20:31:22 miod Exp $
# sparc-specific libcrypto build rules
@@ -13,6 +13,8 @@ SRCS+= sparcv8.S
.else
SRCS+= bn_asm.c
.endif
+# camellia
+SRCS+= camellia.c cmll_cbc.c cmll_misc.c
# des
SRCS+= fcrypt_b.c
SRCS+= des_enc-sparc.S
diff --git a/lib/libcrypto/arch/sparc64/Makefile.inc b/lib/libcrypto/arch/sparc64/Makefile.inc
index 2565bd42e25..e3f217dbb8f 100644
--- a/lib/libcrypto/arch/sparc64/Makefile.inc
+++ b/lib/libcrypto/arch/sparc64/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.1 2014/05/03 20:06:13 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2014/11/17 20:31:22 miod Exp $
# sparc64-specific libcrypto build rules
@@ -10,6 +10,8 @@ SSLASM+= aes aes-sparcv9 aes-sparcv9
SRCS+= bf_enc.c
# bn
SRCS+= bn_asm.c
+# camellia
+SRCS+= camellia.c cmll_cbc.c cmll_misc.c
# des
SRCS+= fcrypt_b.c
SRCS+= des_enc-sparc.S
diff --git a/lib/libcrypto/arch/vax/Makefile.inc b/lib/libcrypto/arch/vax/Makefile.inc
index 968783c5d24..f7764cf44a2 100644
--- a/lib/libcrypto/arch/vax/Makefile.inc
+++ b/lib/libcrypto/arch/vax/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.1 2014/05/04 17:13:05 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2014/11/17 20:31:22 miod Exp $
# vax-specific libcrypto build rules
@@ -9,6 +9,8 @@ SRCS+= aes_core.c aes_cbc.c
SRCS+= bf_enc.c
# bn
SRCS+= bn_asm_vax.S
+# camellia
+SRCS+= camellia.c cmll_cbc.c cmll_misc.c
# des
SRCS+= des_enc.c fcrypt_b.c
# rc4
diff --git a/lib/libcrypto/camellia/asm/cmll-x86.pl b/lib/libcrypto/camellia/asm/cmll-x86.pl
index 0812815bfb8..027302ac869 100644
--- a/lib/libcrypto/camellia/asm/cmll-x86.pl
+++ b/lib/libcrypto/camellia/asm/cmll-x86.pl
@@ -1133,6 +1133,6 @@ my ($s0,$s1,$s2,$s3) = @T;
&function_end("Camellia_cbc_encrypt");
}
-&asciz("Camellia for x86 by <appro@openssl.org>");
+&asciz("Camellia for x86 by <appro\@openssl.org>");
&asm_finish();
diff --git a/lib/libcrypto/opensslfeatures.h b/lib/libcrypto/opensslfeatures.h
index cf7ffeac79d..6e81fa3013e 100644
--- a/lib/libcrypto/opensslfeatures.h
+++ b/lib/libcrypto/opensslfeatures.h
@@ -1,4 +1,3 @@
-# define OPENSSL_NO_CAMELLIA
# define OPENSSL_NO_EC_NISTP_64_GCC_128
# define OPENSSL_NO_CMS
# define OPENSSL_NO_COMP
diff --git a/lib/libcrypto/shlib_version b/lib/libcrypto/shlib_version
index 869b6116dff..ac20b1fad52 100644
--- a/lib/libcrypto/shlib_version
+++ b/lib/libcrypto/shlib_version
@@ -1,2 +1,2 @@
major=30
-minor=2
+minor=3