[csw-devel] SF.net SVN: gar:[20406] csw/mgar/pkg/openssl1/trunk/files/openssl-1.0. 1e-t4-engine.sparc-patch
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Sun Mar 10 23:34:41 CET 2013
Revision: 20406
http://gar.svn.sourceforge.net/gar/?rev=20406&view=rev
Author: chninkel
Date: 2013-03-10 22:34:40 +0000 (Sun, 10 Mar 2013)
Log Message:
-----------
openssl1/trunk: fixed t4 engine patch
Modified Paths:
--------------
csw/mgar/pkg/openssl1/trunk/files/openssl-1.0.1e-t4-engine.sparc-patch
Modified: csw/mgar/pkg/openssl1/trunk/files/openssl-1.0.1e-t4-engine.sparc-patch
===================================================================
--- csw/mgar/pkg/openssl1/trunk/files/openssl-1.0.1e-t4-engine.sparc-patch 2013-03-10 20:51:02 UTC (rev 20405)
+++ csw/mgar/pkg/openssl1/trunk/files/openssl-1.0.1e-t4-engine.sparc-patch 2013-03-10 22:34:40 UTC (rev 20406)
@@ -209,9 +209,806 @@
CRYPTO_cts128_encrypt 4553 EXIST::FUNCTION:
CRYPTO_cts128_decrypt_block 4554 EXIST::FUNCTION:
CRYPTO_cfb128_1_encrypt 4555 EXIST::FUNCTION:
+Index: crypto/engine/eng_t4_aes_asm.h
+===================================================================
+diff -uNr openssl-1.0.1e/engine/eng_t4_aes_asm.h openssl-1.0.1e/engine/eng_t4_aes_asm.h
+--- openssl-1.0.1e/crypto/engine/eng_t4_aes_asm.h 1970-01-01 01:00:00.000000000 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_aes_asm.h 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,147 @@
++/*
++ * This product includes cryptographic software developed by the OpenSSL
++ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
++ */
++
++/*
++ * ====================================================================
++ * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ *
++ * 1. Redistributions of source code must retain the above copyright
++ * notice, this list of conditions and the following disclaimer.
++ *
++ * 2. Redistributions in binary form must reproduce the above copyright
++ * notice, this list of conditions and the following disclaimer in
++ * the documentation and/or other materials provided with the
++ * distribution.
++ *
++ * 3. All advertising materials mentioning features or use of this
++ * software must display the following acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
++ *
++ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++ * endorse or promote products derived from this software without
++ * prior written permission. For written permission, please contact
++ * licensing at OpenSSL.org.
++ *
++ * 5. Products derived from this software may not be called "OpenSSL"
++ * nor may "OpenSSL" appear in their names without prior written
++ * permission of the OpenSSL Project.
++ *
++ * 6. Redistributions of any form whatsoever must retain the following
++ * acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ * OF THE POSSIBILITY OF SUCH DAMAGE.
++ * ====================================================================
++ */
++
++/*
++ * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
++ */
++
++#ifndef ENG_T4_AES_ASM_H
++#define ENG_T4_AES_ASM_H
++
++/*
++ * SPARC AES assembly language functions.
++ *
++ * Based on Solaris file aes_impl.h.
++ */
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++#include <sys/types.h>
++
++#if (defined(sun4v) || defined(__sparcv9) || defined(__sparcv8plus) || \
++ defined(__sparcv8)) && ! defined(OPENSSL_NO_ASM)
++
++extern void t4_aes_expand128(uint64_t *rk, const uint32_t *key);
++extern void t4_aes_expand192(uint64_t *rk, const uint32_t *key);
++extern void t4_aes_expand256(uint64_t *rk, const uint32_t *key);
++extern void t4_aes_encrypt128(const uint64_t *rk, const uint32_t *pt,
++ uint32_t *ct);
++extern void t4_aes_encrypt192(const uint64_t *rk, const uint32_t *pt,
++ uint32_t *ct);
++extern void t4_aes_encrypt256(const uint64_t *rk, const uint32_t *pt,
++ uint32_t *ct);
++extern void t4_aes_decrypt128(const uint64_t *rk, const uint32_t *ct,
++ uint32_t *pt);
++extern void t4_aes_decrypt192(const uint64_t *rk, const uint32_t *ct,
++ uint32_t *pt);
++extern void t4_aes_decrypt256(const uint64_t *rk, const uint32_t *ct,
++ uint32_t *pt);
++extern void t4_aes128_load_keys_for_encrypt(uint64_t *ks);
++extern void t4_aes192_load_keys_for_encrypt(uint64_t *ks);
++extern void t4_aes256_load_keys_for_encrypt(uint64_t *ks);
++extern void t4_aes128_ecb_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *dummy);
++extern void t4_aes192_ecb_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *dummy);
++extern void t4_aes256_ecb_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *dummy);
++extern void t4_aes128_cbc_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *iv);
++extern void t4_aes192_cbc_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *iv);
++extern void t4_aes256_cbc_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *iv);
++extern void t4_aes128_ctr_crypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *iv);
++extern void t4_aes192_ctr_crypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *iv);
++extern void t4_aes256_ctr_crypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *iv);
++extern void t4_aes128_cfb128_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *iv);
++extern void t4_aes192_cfb128_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *iv);
++extern void t4_aes256_cfb128_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_encrypt, uint64_t *iv);
++extern void t4_aes128_load_keys_for_decrypt(uint64_t *ks);
++extern void t4_aes192_load_keys_for_decrypt(uint64_t *ks);
++extern void t4_aes256_load_keys_for_decrypt(uint64_t *ks);
++extern void t4_aes128_ecb_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_decrypt, uint64_t *dummy);
++extern void t4_aes192_ecb_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_decrypt, uint64_t *dummy);
++extern void t4_aes256_ecb_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_decrypt, uint64_t *dummy);
++extern void t4_aes128_cbc_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_decrypt, uint64_t *iv);
++extern void t4_aes192_cbc_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_decrypt, uint64_t *iv);
++extern void t4_aes256_cbc_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_decrypt, uint64_t *iv);
++extern void t4_aes128_cfb128_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_decrypt, uint64_t *iv);
++extern void t4_aes192_cfb128_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_decrypt, uint64_t *iv);
++extern void t4_aes256_cfb128_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_decrypt, uint64_t *iv);
++
++#endif /* (sun4v||__sparv9||__sparcv8plus||__sparvc8) && !OPENSSL_NO_ASM */
++
++#ifdef __cplusplus
++}
++#endif
++#endif /* ENG_T4_AES_ASM_H */
+Index: crypto/engine/eng_t4_bignum.h
+===================================================================
+diff -uNr openssl-1.0.1e/engine/eng_t4_bignum.h openssl-1.0.1e/engine/eng_t4_bignum.h
+--- openssl-1.0.1e/crypto/engine/eng_t4_bignum.h 1970-01-01 01:00:00.000000000 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_bignum.h 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,287 @@
++/*
++ * This product includes cryptographic software developed by the OpenSSL
++ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
++ */
++
++/*
++ * ====================================================================
++ * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ *
++ * 1. Redistributions of source code must retain the above copyright
++ * notice, this list of conditions and the following disclaimer.
++ *
++ * 2. Redistributions in binary form must reproduce the above copyright
++ * notice, this list of conditions and the following disclaimer in
++ * the documentation and/or other materials provided with the
++ * distribution.
++ *
++ * 3. All advertising materials mentioning features or use of this
++ * software must display the following acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
++ *
++ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++ * endorse or promote products derived from this software without
++ * prior written permission. For written permission, please contact
++ * licensing at OpenSSL.org.
++ *
++ * 5. Products derived from this software may not be called "OpenSSL"
++ * nor may "OpenSSL" appear in their names without prior written
++ * permission of the OpenSSL Project.
++ *
++ * 6. Redistributions of any form whatsoever must retain the following
++ * acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ * OF THE POSSIBILITY OF SUCH DAMAGE.
++ * ====================================================================
++ */
++
++/*
++ * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
++ */
++
++/*
++ * This file is a copy of the ON gate's usr/src/common/bignum/bignum.h file
++ */
++
++#ifndef _BIGNUM_H
++#define _BIGNUM_H
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++#include <sys/types.h>
++
++#if defined(__sparcv9) || defined(__amd64) || defined(__sparc)
++ /* 64-bit chunk size */
++#ifndef UMUL64
++#define UMUL64 /* 64-bit multiplication results are supported */
++#endif
++#else
++#define BIGNUM_CHUNK_32
++#endif
++
++
++#define BITSINBYTE 8
++
++/* Bignum "digits" (aka "chunks" or "words") are either 32- or 64-bits */
++#ifdef BIGNUM_CHUNK_32
++#define BIG_CHUNK_SIZE 32
++#define BIG_CHUNK_TYPE uint32_t
++#define BIG_CHUNK_TYPE_SIGNED int32_t
++#define BIG_CHUNK_HIGHBIT 0x80000000
++#define BIG_CHUNK_ALLBITS 0xffffffff
++#define BIG_CHUNK_LOWHALFBITS 0xffff
++#define BIG_CHUNK_HALF_HIGHBIT 0x8000
++
++#else
++#define BIG_CHUNK_SIZE 64
++#define BIG_CHUNK_TYPE uint64_t
++#define BIG_CHUNK_TYPE_SIGNED int64_t
++#define BIG_CHUNK_HIGHBIT 0x8000000000000000ULL
++#define BIG_CHUNK_ALLBITS 0xffffffffffffffffULL
++#define BIG_CHUNK_LOWHALFBITS 0xffffffffULL
++#define BIG_CHUNK_HALF_HIGHBIT 0x80000000ULL
++#endif
++
++#define BITLEN2BIGNUMLEN(x) ((x) > 0 ? \
++ ((((x) - 1) / BIG_CHUNK_SIZE) + 1) : 0)
++#define CHARLEN2BIGNUMLEN(x) ((x) > 0 ? \
++ ((((x) - 1) / sizeof (BIG_CHUNK_TYPE)) + 1) : 0)
++
++#define BIGNUM_WORDSIZE (BIG_CHUNK_SIZE / BITSINBYTE) /* word size in bytes */
++#define BIG_CHUNKS_FOR_160BITS BITLEN2BIGNUMLEN(160)
++
++
++/*
++ * leading 0's are permitted
++ * 0 should be represented by size>=1, size>=len>=1, sign=1,
++ * value[i]=0 for 0<i<len
++ */
++typedef struct {
++ /* size and len in units of BIG_CHUNK_TYPE words */
++ uint32_t size; /* size of memory allocated for value */
++ uint32_t len; /* number of valid data words in value */
++ int sign; /* 1 for nonnegative, -1 for negative */
++ int malloced; /* 1 if value was malloced, 0 if not */
++ BIG_CHUNK_TYPE *value;
++} BIGNUM;
++
++#define BIGTMPSIZE 65
++
++#define BIG_TRUE 1
++#define BIG_FALSE 0
++
++typedef int BIG_ERR_CODE;
++
++/* error codes */
++#define BIG_OK 0
++#define BIG_NO_MEM -1
++#define BIG_INVALID_ARGS -2
++#define BIG_DIV_BY_0 -3
++#define BIG_NO_RANDOM -4
++#define BIG_GENERAL_ERR -5
++#define BIG_TEST_FAILED -6
++#define BIG_BUFFER_TOO_SMALL -7
++
++/*
++ * this is not an error code, but should be different from possible error codes
++ */
++#define RND_TEST_VALUE_SUPPLIED -8
++
++
++#define arraysize(x) (sizeof (x) / sizeof (x[0]))
++
++typedef BIG_ERR_CODE (*big_modexp_ncp_func_ptr)(BIGNUM *result,
++ BIGNUM *ma, BIGNUM *e, BIGNUM *n,
++ BIGNUM *tmp, BIG_CHUNK_TYPE n0, void *ncp, void *req);
++
++typedef struct {
++ big_modexp_ncp_func_ptr func;
++ void *ncp;
++ void *reqp;
++} big_modexp_ncp_info_t;
++
++#ifdef YF_MODEXP
++BIG_ERR_CODE big_modexp_ncp_yf(BIGNUM *result, BIGNUM *ma, BIGNUM *e, BIGNUM *n,
++ BIGNUM *tmp, BIG_CHUNK_TYPE n0);
++#endif
++
++#ifdef YF_MONTMUL
++BIG_ERR_CODE big_mont_mul_yf(BIGNUM *ret,
++ BIGNUM *a, BIGNUM *b, BIGNUM *n, BIG_CHUNK_TYPE n0);
++#endif
++
++#ifdef YF_MPMUL
++BIG_ERR_CODE big_mp_mul_yf(BIGNUM *ret, BIGNUM *a, BIGNUM *b);
++void mpmul_arr_yf(uint64_t *res, uint64_t *m1, uint64_t *m2, int len);
++#endif
++
++#ifdef USE_FLOATING_POINT
++void conv_d16_to_i32(uint32_t *i32, double *d16, int64_t *tmp, int ilen);
++void conv_i32_to_d32(double *d32, uint32_t *i32, int len);
++void conv_i32_to_d16(double *d16, uint32_t *i32, int len);
++void conv_i32_to_d32_and_d16(double *d32, double *d16,
++ uint32_t *i32, int len);
++void mont_mulf_noconv(uint32_t *result, double *dm1, double *dm2, double *dt,
++ double *dn, uint32_t *nint, int nlen, double dn0);
++#endif /* USE_FLOATING_POINT */
++
++extern BIGNUM big_One;
++extern BIGNUM big_Two;
++
++void printbignum(char *aname, BIGNUM *a);
++
++BIG_ERR_CODE big_init(BIGNUM *number, int size);
++BIG_ERR_CODE big_extend(BIGNUM *number, int size);
++void big_finish(BIGNUM *number);
++void bytestring2bignum(BIGNUM *bn, uchar_t *kn, size_t len);
++void bignum2bytestring(uchar_t *kn, BIGNUM *bn, size_t len);
++BIG_ERR_CODE big_mont_rr(BIGNUM *result, BIGNUM *n);
++BIG_ERR_CODE big_modexp(BIGNUM *result, BIGNUM *a, BIGNUM *e,
++ BIGNUM *n, BIGNUM *n_rr);
++BIG_ERR_CODE big_modexp_ext(BIGNUM *result, BIGNUM *a, BIGNUM *e,
++ BIGNUM *n, BIGNUM *n_rr, big_modexp_ncp_info_t *info);
++BIG_ERR_CODE big_modexp_crt(BIGNUM *result, BIGNUM *a, BIGNUM *dmodpminus1,
++ BIGNUM *dmodqminus1, BIGNUM *p, BIGNUM *q, BIGNUM *pinvmodq,
++ BIGNUM *p_rr, BIGNUM *q_rr);
++BIG_ERR_CODE big_modexp_crt_ext(BIGNUM *result, BIGNUM *a, BIGNUM *dmodpminus1,
++ BIGNUM *dmodqminus1, BIGNUM *p, BIGNUM *q, BIGNUM *pinvmodq,
++ BIGNUM *p_rr, BIGNUM *q_rr, big_modexp_ncp_info_t *info);
++int big_cmp_abs(BIGNUM *a, BIGNUM *b);
++BIG_ERR_CODE big_random(BIGNUM *r, size_t length,
++ int (*rfunc)(void *, size_t), boolean_t precise);
++BIG_ERR_CODE big_div_pos(BIGNUM *result, BIGNUM *remainder,
++ BIGNUM *aa, BIGNUM *bb);
++BIG_ERR_CODE big_ext_gcd_pos(BIGNUM *gcd, BIGNUM *cm, BIGNUM *ce,
++ BIGNUM *m, BIGNUM *e);
++BIG_ERR_CODE big_add(BIGNUM *result, BIGNUM *aa, BIGNUM *bb);
++BIG_ERR_CODE big_add_abs(BIGNUM *result, BIGNUM *aa, BIGNUM *bb);
++void big_mul_arr_64(uint64_t *result, uint64_t *a, uint64_t *b, int alen);
++BIG_ERR_CODE big_mul(BIGNUM *result, BIGNUM *aa, BIGNUM *bb);
++void big_shiftright(BIGNUM *result, BIGNUM *aa, int offs);
++BIG_ERR_CODE big_nextprime_pos(BIGNUM *result, BIGNUM *n);
++BIG_ERR_CODE big_nextprime_pos_ext(BIGNUM *result, BIGNUM *n,
++ big_modexp_ncp_info_t *info);
++BIG_ERR_CODE big_sub_pos(BIGNUM *result, BIGNUM *aa, BIGNUM *bb);
++BIG_ERR_CODE big_copy(BIGNUM *dest, BIGNUM *src);
++BIG_ERR_CODE big_sub(BIGNUM *result, BIGNUM *aa, BIGNUM *bb);
++int big_bitlength(BIGNUM *n);
++BIG_ERR_CODE big_init1(BIGNUM *number, int size,
++ BIG_CHUNK_TYPE *buf, int bufsize);
++BIG_ERR_CODE big_mont_mul(BIGNUM *ret,
++ BIGNUM *a, BIGNUM *b, BIGNUM *n, BIG_CHUNK_TYPE n0);
++int big_is_zero(BIGNUM *n);
++BIG_CHUNK_TYPE big_n0(BIG_CHUNK_TYPE n);
++
++
++/*
++ * Kernel bignum module: module integrity test
++ */
++extern int bignum_fips_check(void);
++
++#if defined(HWCAP)
++
++#if (BIG_CHUNK_SIZE != 32)
++#error HWCAP works only with 32-bit bignum chunks
++#endif
++
++#define BIG_MUL_SET_VEC(r, a, len, digit) \
++ (*big_mul_set_vec_impl)(r, a, len, digit)
++#define BIG_MUL_ADD_VEC(r, a, len, digit) \
++ (*big_mul_add_vec_impl)(r, a, len, digit)
++#define BIG_MUL_VEC(r, a, alen, b, blen) \
++ (*big_mul_vec_impl)(r, a, alen, b, blen)
++#define BIG_SQR_VEC(r, a, len) \
++ (*big_sqr_vec_impl)(r, a, len)
++
++extern BIG_CHUNK_TYPE (*big_mul_set_vec_impl)
++ (BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int len, BIG_CHUNK_TYPE digit);
++extern BIG_CHUNK_TYPE (*big_mul_add_vec_impl)
++ (BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int len, BIG_CHUNK_TYPE digit);
++extern void (*big_mul_vec_impl)
++ (BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int alen, BIG_CHUNK_TYPE *b,
++ int blen);
++extern void (*big_sqr_vec_impl)
++ (BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int len);
++
++#else /* ! HWCAP */
++
++#define BIG_MUL_SET_VEC(r, a, len, digit) big_mul_set_vec(r, a, len, digit)
++#define BIG_MUL_ADD_VEC(r, a, len, digit) big_mul_add_vec(r, a, len, digit)
++#define BIG_MUL_VEC(r, a, alen, b, blen) big_mul_vec(r, a, alen, b, blen)
++#define BIG_SQR_VEC(r, a, len) big_sqr_vec(r, a, len)
++
++extern BIG_CHUNK_TYPE big_mul_set_vec(BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a,
++ int len, BIG_CHUNK_TYPE d);
++extern BIG_CHUNK_TYPE big_mul_add_vec(BIG_CHUNK_TYPE *r,
++ BIG_CHUNK_TYPE *a, int len, BIG_CHUNK_TYPE d);
++extern void big_mul_vec(BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int alen,
++ BIG_CHUNK_TYPE *b, int blen);
++extern void big_sqr_vec(BIG_CHUNK_TYPE *r, BIG_CHUNK_TYPE *a, int len);
++
++#endif /* HWCAP */
++
++#ifdef __cplusplus
++}
++#endif
++
++#endif /* _BIGNUM_H */
+Index: crypto/engine/eng_t4_des_asm.h
+===================================================================
+diff -uNr openssl-1.0.1e/engine/eng_t4_des_asm.h openssl-1.0.1e/engine/eng_t4_des_asm.h
+--- openssl-1.0.1e/crypto/engine/eng_t4_des_asm.h 1970-01-01 01:00:00.000000000 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_des_asm.h 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,98 @@
++/*
++ * This product includes cryptographic software developed by the OpenSSL
++ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
++ */
++
++/*
++ * ====================================================================
++ * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ *
++ * 1. Redistributions of source code must retain the above copyright
++ * notice, this list of conditions and the following disclaimer.
++ *
++ * 2. Redistributions in binary form must reproduce the above copyright
++ * notice, this list of conditions and the following disclaimer in
++ * the documentation and/or other materials provided with the
++ * distribution.
++ *
++ * 3. All advertising materials mentioning features or use of this
++ * software must display the following acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
++ *
++ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++ * endorse or promote products derived from this software without
++ * prior written permission. For written permission, please contact
++ * openssl-core at openssl.org.
++ *
++ * 5. Products derived from this software may not be called "OpenSSL"
++ * nor may "OpenSSL" appear in their names without prior written
++ * permission of the OpenSSL Project.
++ *
++ * 6. Redistributions of any form whatsoever must retain the following
++ * acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ * OF THE POSSIBILITY OF SUCH DAMAGE.
++ * ====================================================================
++ */
++
++/*
++ * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
++ */
++
++#ifndef ENG_T4_DES_ASM_H
++#define ENG_T4_DES_ASM_H
++
++/* SPARC DES assembly language functions. */
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++#include <sys/types.h>
++
++#if (defined(sun4v) || defined(__sparcv9) || defined(__sparcv8plus) || \
++ defined(__sparcv8)) && ! defined(OPENSSL_NO_ASM)
++
++extern void t4_des_expand(uint64_t *rk, const uint32_t *key);
++extern void t4_des_encrypt(const uint64_t *rk, const uint64_t *pt,
++ uint64_t *ct);
++extern void t4_des_load_keys(uint64_t *ks);
++void t4_des_ecb_crypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_crypt, uint64_t *iv);
++extern void t4_des_cbc_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_crypt, uint64_t *iv);
++extern void t4_des_cbc_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_crypt, uint64_t *iv);
++extern void t4_des3_load_keys(uint64_t *ks);
++extern void t4_des3_ecb_crypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_crypt, uint64_t *iv);
++extern void t4_des3_cbc_encrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_crypt, uint64_t *iv);
++extern void t4_des3_cbc_decrypt(uint64_t *ks, uint64_t *asm_in,
++ uint64_t *asm_out, size_t amount_to_crypt, uint64_t *iv);
++
++
++#endif /* (sun4v||__sparv9||__sparcv8plus||__sparvc8) && !OPENSSL_NO_ASM */
++
++#ifdef __cplusplus
++}
++#endif
++#endif /* ENG_T4_DES_ASM_H */
+Index: crypto/engine/eng_t4_err.h
+===================================================================
+diff -uNr openssl-1.0.1e/engine/eng_t4_err.h openssl-1.0.1e/engine/eng_t4_err.h
+--- openssl-1.0.1e/crypto/engine/eng_t4_err.h 1970-01-01 01:00:00.000000000 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_err.h 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,97 @@
++/*
++ * This product includes cryptographic software developed by the OpenSSL
++ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
++ */
++
++/*
++ * ====================================================================
++ * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ *
++ * 1. Redistributions of source code must retain the above copyright
++ * notice, this list of conditions and the following disclaimer.
++ *
++ * 2. Redistributions in binary form must reproduce the above copyright
++ * notice, this list of conditions and the following disclaimer in
++ * the documentation and/or other materials provided with the
++ * distribution.
++ *
++ * 3. All advertising materials mentioning features or use of this
++ * software must display the following acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
++ *
++ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++ * endorse or promote products derived from this software without
++ * prior written permission. For written permission, please contact
++ * openssl-core at openssl.org.
++ *
++ * 5. Products derived from this software may not be called "OpenSSL"
++ * nor may "OpenSSL" appear in their names without prior written
++ * permission of the OpenSSL Project.
++ *
++ * 6. Redistributions of any form whatsoever must retain the following
++ * acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ * OF THE POSSIBILITY OF SUCH DAMAGE.
++ * ====================================================================
++ */
++
++/*
++ * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
++ */
++
++#ifndef ENG_T4_ERR_H
++#define ENG_T4_ERR_H
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++static void ERR_unload_t4_strings(void);
++#pragma inline(ERR_unload_t4_strings)
++static void ERR_t4_error(int function, int reason, char *file, int line);
++
++#define T4err(f, r) ERR_t4_error((f), (r), __FILE__, __LINE__)
++
++/* Function codes */
++#define T4_F_INIT 100
++#define T4_F_DESTROY 101
++#define T4_F_FINISH 102
++#define T4_F_CIPHER_INIT_AES 103
++#define T4_F_ADD_NID 104
++#define T4_F_GET_ALL_CIPHERS 105
++#define T4_F_CIPHER_DO_AES 106
++#define T4_F_CIPHER_CLEANUP 107
++#define T4_F_CIPHER_INIT_DES 108
++#define T4_F_CIPHER_DO_DES 109
++
++/* Reason codes */
++#define T4_R_CIPHER_KEY 100
++#define T4_R_CIPHER_NID 101
++#define T4_R_IV_LEN_INCORRECT 102
++#define T4_R_KEY_LEN_INCORRECT 103
++#define T4_R_ASN1_OBJECT_CREATE 104
++#define T4_R_NOT_BLOCKSIZE_LENGTH 105
++
++#ifdef __cplusplus
++}
++#endif
++
++#endif /* ENG_T4_ERR_H */
+Index: crypto/engine/eng_t4_sha2_asm.h
+===================================================================
+diff -uNr openssl-1.0.1e/engine/eng_t4_sha2_asm.h openssl-1.0.1e/engine/eng_t4_sha2_asm.h
+--- openssl-1.0.1e/crypto/engine/eng_t4_sha2_asm.h 1970-01-01 01:00:00.000000000 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_sha2_asm.h 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,135 @@
++/*
++ * This product includes cryptographic software developed by the OpenSSL
++ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/). This
++ * product includes cryptographic software written by Eric Young
++ * (eay at cryptsoft.com).
++ */
++
++/*
++ * ====================================================================
++ * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
++ *
++ * Redistribution and use in source and binary forms, with or without
++ * modification, are permitted provided that the following conditions
++ * are met:
++ *
++ * 1. Redistributions of source code must retain the above copyright
++ * notice, this list of conditions and the following disclaimer.
++ *
++ * 2. Redistributions in binary form must reproduce the above copyright
++ * notice, this list of conditions and the following disclaimer in
++ * the documentation and/or other materials provided with the
++ * distribution.
++ *
++ * 3. All advertising materials mentioning features or use of this
++ * software must display the following acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
++ *
++ * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
++ * endorse or promote products derived from this software without
++ * prior written permission. For written permission, please contact
++ * openssl-core at openssl.org.
++ *
++ * 5. Products derived from this software may not be called "OpenSSL"
++ * nor may "OpenSSL" appear in their names without prior written
++ * permission of the OpenSSL Project.
++ *
++ * 6. Redistributions of any form whatsoever must retain the following
++ * acknowledgment:
++ * "This product includes software developed by the OpenSSL Project
++ * for use in the OpenSSL Toolkit (http://www.openssl.org/)"
++ *
++ * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
++ * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
++ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
++ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
++ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
++ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
++ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
++ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
++ * OF THE POSSIBILITY OF SUCH DAMAGE.
++ * ====================================================================
++ */
++
++/*
++ * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
++ */
++
++#ifndef ENG_T4_SHA2_ASM_H
++#define ENG_T4_SHA2_ASM_H
++
++/*
++ * SPARC T4 SHA2 (SHA256/SHA512) assembly language functions and context.
++ * The context must match that used by the Solaris SPARC T4 assembly
++ * (except for OpenSSL-specific fields num and md_len that aren't in Solaris).
++ *
++ * Based on OpenSSL file openssl/sha.h and Solaris file sys/sha2.h.
++ */
++
++#include <stddef.h>
++#include <sys/types.h>
++#include <openssl/sha.h>
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++#ifndef OPENSSL_NO_SHA256
++/*
++ * The contents of this structure are a private interface between the
++ * Init/Update/Multiblock/Final functions.
++ * Callers must never attempt to read or write any of the fields
++ * in this structure directly.
++ */
++typedef struct t4_SHA256state_st {
++ uint32_t algotype; /* Solaris-only field; unused here */
++ uint32_t algotype_pad; /* Pad to align next field 0 mod 8 */
++ uint32_t h[8]; /* State (ABCDEFGH) */
++ uint32_t h_pad[8]; /* Pad fields to match T4_SHA512_CTX */
++ uint32_t Nl, Nh; /* Number of bits, module 2^64 */
++ uint32_t Nl_pad, Nh_pad; /* Pad fields to match T4_SHA512_CTX */
++ uint32_t data[SHA_LBLOCK]; /* Input */
++ unsigned int num, md_len; /* Fields unused by Solaris assembly */
++} T4_SHA256_CTX;
++#endif /* !OPENSSL_NO_SHA256 */
++
++
++#ifndef OPENSSL_NO_SHA512
++/*
++ * The contents of this structure are a private interface between the
++ * Init/Update/Multiblock/Final functions.
++ * Callers must never attempt to read or write any of the fields
++ * in this structure directly.
++ */
++typedef struct t4_SHA512state_st {
++ uint32_t algotype; /* Solaris-only field; unused here */
++ uint64_t h[8]; /* State (ABCDEFGH) */
++ uint64_t Nl, Nh; /* Number of bits, module 2^128 */
++ union {
++ uint64_t d[SHA_LBLOCK];
++ unsigned char p[SHA512_CBLOCK];
++ } u; /* Input */
++ unsigned int num, md_len; /* Fields unused by Solaris assembly */
++} T4_SHA512_CTX;
++#endif /* !OPENSSL_NO_SHA512 */
++
++/*
++ * SPARC T4 assembly language functions
++ */
++#ifndef OPENSSL_NO_SHA256
++extern void t4_sha256_multiblock(T4_SHA256_CTX *c, const void *input,
++ size_t num);
++#endif
++#ifndef OPENSSL_NO_SHA512
++extern void t4_sha512_multiblock(T4_SHA512_CTX *c, const void *input,
++ size_t num);
++#endif
++
++#ifdef __cplusplus
++}
++#endif
++#endif /* ENG_T4_SHA2_ASM_H */
+Index: crypto/engine/eng_t4.c
+===================================================================
diff -uNr openssl-1.0.1e/engine/eng_t4.c openssl-1.0.1e/engine/eng_t4.c
--- openssl-1.0.1e/crypto/engine/eng_t4.c 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/engine/eng_t4.c 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4.c 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,1010 @@
+/*
+ * This product includes cryptographic software developed by the OpenSSL
+ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
@@ -1222,9 +2019,12 @@
+#endif /* DYNAMIC_ENGINE */
+#endif /* COMPILE_HW_T4 */
+#endif /* !OPENSSL_NO_HW && !OPENSSL_NO_HW_AES_T4 && !OPENSSL_NO_AES */
+Index: crypto/engine/eng_t4_des.c
+===================================================================
diff -uNr openssl-1.0.1e/engine/eng_t4_des.c openssl-1.0.1e/engine/eng_t4_des.c
--- openssl-1.0.1e/crypto/engine/eng_t4_des.c 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/engine/eng_t4_des.c 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_des.c 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,486 @@
+/*
+ * This product includes cryptographic software developed by the OpenSSL
+ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
@@ -1711,9 +2511,12 @@
+
+#endif /* COMPILE_HW_T4 */
+#endif /* !OPENSSL_NO_HW && !OPENSSL_NO_HW_DES_T4 && !OPENSSL_NO_DES */
+Index: crypto/engine/eng_t4_err.c
+===================================================================
diff -uNr openssl-1.0.1e/engine/eng_t4_err.c openssl-1.0.1e/engine/eng_t4_err.c
--- openssl-1.0.1e/crypto/engine/eng_t4_err.c 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/engine/eng_t4_err.c 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_err.c 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,157 @@
+/*
+ * This product includes cryptographic software developed by the OpenSSL
+ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
@@ -1871,9 +2674,12 @@
+ t4_error_code = ERR_get_next_error_library();
+ ERR_PUT_error(t4_error_code, function, reason, file, line);
+}
+Index: crypto/engine/eng_t4_md5.c
+===================================================================
diff -uNr openssl-1.0.1e/engine/eng_t4_md5.c openssl-1.0.1e/engine/eng_t4_md5.c
--- openssl-1.0.1e/crypto/engine/eng_t4_md5.c 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/engine/eng_t4_md5.c 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_md5.c 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,200 @@
+/*
+ * This product includes cryptographic software developed by the OpenSSL
+ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/). This
@@ -2074,9 +2880,12 @@
+#endif /* COMPILE_HW_T4 */
+#endif /* !OPENSSL_NO_MD5 */
+#endif /* !OPENSSL_NO_HW && !OPENSSL_NO_HW_MD_T4 */
+Index: crypto/engine/eng_t4_montmul.c
+===================================================================
diff -uNr openssl-1.0.1e/engine/eng_t4_montmul.c openssl-1.0.1e/engine/eng_t4_montmul.c
--- openssl-1.0.1e/crypto/engine/eng_t4_montmul.c 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/engine/eng_t4_montmul.c 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_montmul.c 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,459 @@
+/*
+ * This product includes cryptographic software developed by the OpenSSL
+ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/).
@@ -2536,9 +3345,12 @@
+#endif /* COMPILE_HW_T4 */
+
+#endif /* !OPENSSL_NO_HW && !OPENSSL_NO_HW_MONTMUL_T4 */
+Index: crypto/engine/eng_t4_sha1.c
+===================================================================
diff -uNr openssl-1.0.1e/engine/eng_t4_sha1.c openssl-1.0.1e/engine/eng_t4_sha1.c
--- openssl-1.0.1e/crypto/engine/eng_t4_sha1.c 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/engine/eng_t4_sha1.c 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_sha1.c 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,197 @@
+/*
+ * This product includes cryptographic software developed by the OpenSSL
+ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/). This
@@ -2736,9 +3548,12 @@
+#endif /* COMPILE_HW_T4 */
+#endif /* !OPENSSL_NO_SHA && !OPENSSL_NO_SHA1 */
+#endif /* !OPENSSL_NO_HW && !OPENSSL_NO_HW_MD_T4 */
+Index: crypto/engine/eng_t4_sha256.c
+===================================================================
diff -uNr openssl-1.0.1e/engine/eng_t4_sha256.c openssl-1.0.1e/engine/eng_t4_sha256.c
--- openssl-1.0.1e/crypto/engine/eng_t4_sha256.c 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/engine/eng_t4_sha256.c 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_sha256.c 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,246 @@
+/*
+ * This product includes cryptographic software developed by the OpenSSL
+ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/). This
@@ -2985,9 +3800,12 @@
+#endif /* COMPILE_HW_T4 */
+#endif /* !OPENSSL_NO_SHA && !OPENSSL_NO_SHA256 */
+#endif /* !OPENSSL_NO_HW && !OPENSSL_NO_HW_MD_T4 */
+Index: crypto/engine/eng_t4_sha512.c
+===================================================================
diff -uNr openssl-1.0.1e/engine/eng_t4_sha512.c openssl-1.0.1e/engine/eng_t4_sha512.c
--- openssl-1.0.1e/crypto/engine/eng_t4_sha512.c 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/engine/eng_t4_sha512.c 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/engine/eng_t4_sha512.c 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,325 @@
+/*
+ * This product includes cryptographic software developed by the OpenSSL
+ * Project for use in the OpenSSL Toolkit (http://www.openssl.org/). This
@@ -3313,9 +4131,12 @@
+#endif /* COMPILE_HW_T4 */
+#endif /* !OPENSSL_NO_SHA && !OPENSSL_NO_SHA512 */
+#endif /* !OPENSSL_NO_HW && !OPENSSL_NO_HW_MD_T4 */
+Index: crypto/aes/asm/t4_aes.S
+===================================================================
diff -uNr openssl-1.0.1e/aes/asm/t4_aes.S openssl-1.0.1e/aes/asm/t4_aes.S
--- openssl-1.0.1e/crypto/aes/asm/t4_aes.S 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/aes/asm/t4_aes.S 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/aes/asm/t4_aes.S 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,3052 @@
+/*
+ * ====================================================================
+ * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
@@ -6368,9 +7189,12 @@
+#endif
+
+#endif /* lint || __lint */
+Index: crypto/des/asm/t4_des.S
+===================================================================
diff -uNr openssl-1.0.1e/des/asm/t4_des.S openssl-1.0.1e/des/asm/t4_des.S
--- openssl-1.0.1e/crypto/des/asm/t4_des.S 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/des/asm/t4_des.S 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/des/asm/t4_des.S 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,786 @@
+/*
+ * ====================================================================
+ * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
@@ -7157,9 +7981,12 @@
+
+
+#endif /* lint || __lint */
+Index: crypto/md5/asm/t4_md5.S
+===================================================================
diff -uNr openssl-1.0.1e/md5/asm/t4_md5.S openssl-1.0.1e/md5/asm/t4_md5.S
--- openssl-1.0.1e/crypto/md5/asm/t4_md5.S 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/md5/asm/t4_md5.S 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/md5/asm/t4_md5.S 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,151 @@
+/*
+ * ====================================================================
+ * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
@@ -7311,9 +8138,12 @@
+ SET_SIZE(t4_md5_multiblock)
+
+#endif /* lint || __lint */
+Index: crypto/sha/asm/t4_sha1.S
+===================================================================
diff -uNr openssl-1.0.1e/sha/asm/t4_sha1.S openssl-1.0.1e/sha/asm/t4_sha1.S
--- openssl-1.0.1e/crypto/sha/asm/t4_sha1.S 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/sha/asm/t4_sha1.S 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/sha/asm/t4_sha1.S 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,153 @@
+/*
+ * ====================================================================
+ * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
@@ -7467,9 +8297,12 @@
+ SET_SIZE(t4_sha1_multiblock)
+
+#endif /* lint || __lint */
+Index: crypto/sha/asm/t4_sha2.S
+===================================================================
diff -uNr openssl-1.0.1e/sha/asm/t4_sha2.S openssl-1.0.1e/sha/asm/t4_sha2.S
--- openssl-1.0.1e/crypto/sha/asm/t4_sha2.S 1970-01-01 01:00:00.000000000 +0100
-+++ openssl-1.0.1e/crypto/sha/asm/t4_sha2.S 2013-03-10 21:38:30.975905091 +0100
++++ openssl-1.0.1e/crypto/sha/asm/t4_sha2.S 2013-03-10 22:45:19.089618665 +0100
+@@ -0,0 +1,314 @@
+/*
+ * ====================================================================
+ * Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list