diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-17 20:31:23 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-11-17 20:31:23 +0000 |
commit | 5fea17d24c5b78b8a2f38a6906a1e2d0c4c51b60 (patch) | |
tree | b8fa0be0c2f884cce27fc0164090e2502eb4e416 /lib | |
parent | a06c795f5a00d90ce8025ebb20c0c3e324360784 (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')
-rw-r--r-- | lib/libcrypto/crypto/Makefile | 4 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/alpha/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/amd64/Makefile.inc | 5 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/arm/Makefile.inc | 2 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/hppa/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/i386/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/mips64/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/powerpc/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/sparc/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/sparc64/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libcrypto/crypto/arch/vax/Makefile.inc | 4 | ||||
-rw-r--r-- | lib/libcrypto/crypto/shlib_version | 2 | ||||
-rw-r--r-- | lib/libssl/src/crypto/camellia/asm/cmll-x86.pl | 2 | ||||
-rw-r--r-- | lib/libssl/src/crypto/opensslfeatures.h | 1 |
14 files changed, 34 insertions, 14 deletions
diff --git a/lib/libcrypto/crypto/Makefile b/lib/libcrypto/crypto/Makefile index 0c4db18488b..da53155a7a0 100644 --- a/lib/libcrypto/crypto/Makefile +++ b/lib/libcrypto/crypto/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.47 2014/11/09 19:17:11 miod Exp $ +# $OpenBSD: Makefile,v 1.48 2014/11/17 20:31:20 miod Exp $ LIB= crypto @@ -72,7 +72,7 @@ SRCS+= bn_depr.c bn_const.c bn_x931p.c SRCS+= buffer.c buf_err.c buf_str.c # camellia/ -#SRCS+= cmll_ecb.c cmll_ofb.c cmll_cfb.c cmll_ctr.c cmll_utl.c +SRCS+= cmll_cfb.c cmll_ctr.c cmll_ecb.c cmll_ofb.c # cast/ SRCS+= c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c diff --git a/lib/libcrypto/crypto/arch/alpha/Makefile.inc b/lib/libcrypto/crypto/arch/alpha/Makefile.inc index 9c9d77ea75a..82fa9fc1f47 100644 --- a/lib/libcrypto/crypto/arch/alpha/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/arch/amd64/Makefile.inc b/lib/libcrypto/crypto/arch/amd64/Makefile.inc index fe7e17df0eb..3f921964515 100644 --- a/lib/libcrypto/crypto/arch/amd64/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/arch/arm/Makefile.inc b/lib/libcrypto/crypto/arch/arm/Makefile.inc index 08179b72836..22145a79cc1 100644 --- a/lib/libcrypto/crypto/arch/arm/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/arch/hppa/Makefile.inc b/lib/libcrypto/crypto/arch/hppa/Makefile.inc index 8f91214a508..0f605868659 100644 --- a/lib/libcrypto/crypto/arch/hppa/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/arch/i386/Makefile.inc b/lib/libcrypto/crypto/arch/i386/Makefile.inc index e450bfe8aae..f4e1f36b1cc 100644 --- a/lib/libcrypto/crypto/arch/i386/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/arch/mips64/Makefile.inc b/lib/libcrypto/crypto/arch/mips64/Makefile.inc index 0ae20ad5ccd..3b8f01e41cc 100644 --- a/lib/libcrypto/crypto/arch/mips64/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/arch/powerpc/Makefile.inc b/lib/libcrypto/crypto/arch/powerpc/Makefile.inc index b6ef263046f..46790859b5a 100644 --- a/lib/libcrypto/crypto/arch/powerpc/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/arch/sparc/Makefile.inc b/lib/libcrypto/crypto/arch/sparc/Makefile.inc index 54dc3187376..ba9954c85eb 100644 --- a/lib/libcrypto/crypto/arch/sparc/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/arch/sparc64/Makefile.inc b/lib/libcrypto/crypto/arch/sparc64/Makefile.inc index 2565bd42e25..e3f217dbb8f 100644 --- a/lib/libcrypto/crypto/arch/sparc64/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/arch/vax/Makefile.inc b/lib/libcrypto/crypto/arch/vax/Makefile.inc index 968783c5d24..f7764cf44a2 100644 --- a/lib/libcrypto/crypto/arch/vax/Makefile.inc +++ b/lib/libcrypto/crypto/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/crypto/shlib_version b/lib/libcrypto/crypto/shlib_version index 869b6116dff..ac20b1fad52 100644 --- a/lib/libcrypto/crypto/shlib_version +++ b/lib/libcrypto/crypto/shlib_version @@ -1,2 +1,2 @@ major=30 -minor=2 +minor=3 diff --git a/lib/libssl/src/crypto/camellia/asm/cmll-x86.pl b/lib/libssl/src/crypto/camellia/asm/cmll-x86.pl index 0812815bfb8..027302ac869 100644 --- a/lib/libssl/src/crypto/camellia/asm/cmll-x86.pl +++ b/lib/libssl/src/crypto/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/libssl/src/crypto/opensslfeatures.h b/lib/libssl/src/crypto/opensslfeatures.h index cf7ffeac79d..6e81fa3013e 100644 --- a/lib/libssl/src/crypto/opensslfeatures.h +++ b/lib/libssl/src/crypto/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 |