summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-03-26 21:33:18 +0100
committerRichard Levitte <levitte@openssl.org>2015-03-31 20:16:01 +0200
commitdee502be89e78e2979e3bd1d7724cf79daa6ef61 (patch)
tree53e97582c488f1a484bd42e570de6a99768fd1df /crypto
parent30cd4ff294252c4b6a4b69cbef6a5b4117705d22 (diff)
Stop symlinking, move files to intended directory
Rather than making include/openssl/foo.h a symlink to crypto/foo/foo.h, this change moves the file to include/openssl/foo.h once and for all. Likewise, move crypto/foo/footest.c to test/footest.c, instead of symlinking it there. Originally-by: Geoff Thorpe <geoff@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/aes/aes.h139
-rw-r--r--crypto/asn1/asn1.h1199
-rw-r--r--crypto/asn1/asn1_mac.h579
-rw-r--r--crypto/asn1/asn1t.h894
-rw-r--r--crypto/bf/bftest.c537
-rw-r--r--crypto/bf/blowfish.h111
-rw-r--r--crypto/bio/bio.h879
-rw-r--r--crypto/bn/bn.h759
-rw-r--r--crypto/bn/bntest.c2003
-rw-r--r--crypto/bn/exptest.c257
-rw-r--r--crypto/buffer/buffer.h119
-rw-r--r--crypto/camellia/camellia.h128
-rw-r--r--crypto/cast/cast.h104
-rw-r--r--crypto/cast/casttest.c212
-rw-r--r--crypto/cmac/cmac.h82
-rw-r--r--crypto/cms/cms.h556
-rw-r--r--crypto/comp/comp.h79
-rw-r--r--crypto/conf/conf.h258
-rw-r--r--crypto/conf/conf_api.h89
-rw-r--r--crypto/constant_time_test.c304
-rw-r--r--crypto/crypto.h636
-rw-r--r--crypto/des/des.h233
-rw-r--r--crypto/des/destest.c844
-rw-r--r--crypto/dh/dh.h387
-rw-r--r--crypto/dh/dhtest.c549
-rw-r--r--crypto/dsa/dsa.h335
-rw-r--r--crypto/dsa/dsatest.c256
-rw-r--r--crypto/dso/dso.h441
-rw-r--r--crypto/ebcdic.h26
-rw-r--r--crypto/ec/ec.h1280
-rw-r--r--crypto/ec/ectest.c1682
-rw-r--r--crypto/ecdh/ecdh.h132
-rw-r--r--crypto/ecdh/ecdhtest.c537
-rw-r--r--crypto/ecdsa/ecdsa.h333
-rw-r--r--crypto/ecdsa/ecdsatest.c565
-rw-r--r--crypto/engine/engine.h958
-rw-r--r--crypto/engine/enginetest.c269
-rw-r--r--crypto/err/err.h382
-rw-r--r--crypto/err/openssl.ec63
-rw-r--r--crypto/evp/evp.h1566
-rw-r--r--crypto/evp/evp_extra_test.c477
-rw-r--r--crypto/evp/evp_test.c1255
-rw-r--r--crypto/evp/evptests.txt2316
-rw-r--r--crypto/evp/p5_crpt2_test.c211
-rw-r--r--crypto/hmac/hmac.h112
-rw-r--r--crypto/hmac/hmactest.c318
-rw-r--r--crypto/idea/idea.h101
-rw-r--r--crypto/idea/ideatest.c231
-rw-r--r--crypto/jpake/jpake.h128
-rw-r--r--crypto/jpake/jpaketest.c185
-rw-r--r--crypto/krb5/krb5_asn.h240
-rw-r--r--crypto/lhash/lhash.h233
-rw-r--r--crypto/md2/md2.h91
-rw-r--r--crypto/md2/md2test.c142
-rw-r--r--crypto/md4/md4.h100
-rw-r--r--crypto/md4/md4test.c132
-rw-r--r--crypto/md5/md5.h100
-rw-r--r--crypto/md5/md5test.c137
-rw-r--r--crypto/mdc2/mdc2.h91
-rw-r--r--crypto/mdc2/mdc2test.c145
-rw-r--r--crypto/modes/modes.h192
-rw-r--r--crypto/objects/Makefile10
-rw-r--r--crypto/objects/obj_mac.h4271
-rw-r--r--crypto/objects/objects.h1146
-rw-r--r--crypto/ocsp/ocsp.h454
-rw-r--r--crypto/opensslv.h97
-rw-r--r--crypto/ossl_typ.h207
-rw-r--r--crypto/pem/pem.h594
-rw-r--r--crypto/pem/pem2.h70
-rw-r--r--crypto/pkcs12/pkcs12.h340
-rw-r--r--crypto/pkcs7/pkcs7.h480
-rw-r--r--crypto/pqueue/pqueue.h99
-rw-r--r--crypto/rand/rand.h153
-rw-r--r--crypto/rand/randtest.c198
-rw-r--r--crypto/rc2/rc2.h99
-rw-r--r--crypto/rc2/rc2test.c152
-rw-r--r--crypto/rc4/rc4.h87
-rw-r--r--crypto/rc4/rc4test.c234
-rw-r--r--crypto/rc5/rc5.h114
-rw-r--r--crypto/rc5/rc5test.c325
-rw-r--r--crypto/ripemd/ripemd.h95
-rw-r--r--crypto/ripemd/rmdtest.c142
-rw-r--r--crypto/rsa/rsa.h668
-rw-r--r--crypto/rsa/rsa_test.c331
-rw-r--r--crypto/seed/seed.h145
-rw-r--r--crypto/sha/sha.h168
-rw-r--r--crypto/sha/sha1test.c152
-rw-r--r--crypto/sha/sha256t.c153
-rw-r--r--crypto/sha/sha512t.c187
-rw-r--r--crypto/srp/srp.h170
-rw-r--r--crypto/srp/srptest.c154
-rw-r--r--crypto/stack/safestack.h2567
-rw-r--r--crypto/stack/stack.h98
-rw-r--r--crypto/store/store.h658
-rw-r--r--crypto/symhacks.h476
-rw-r--r--crypto/ts/ts.h853
-rw-r--r--crypto/txt_db/txt_db.h105
-rw-r--r--crypto/ui/ui.h415
-rw-r--r--crypto/whrlpool/whrlpool.h38
-rw-r--r--crypto/whrlpool/wp_test.c241
-rw-r--r--crypto/x509/x509.h1242
-rw-r--r--crypto/x509/x509_vfy.h634
-rw-r--r--crypto/x509v3/v3nametest.c336
-rw-r--r--crypto/x509v3/x509v3.h1045
104 files changed, 37 insertions, 47865 deletions
diff --git a/crypto/aes/aes.h b/crypto/aes/aes.h
deleted file mode 100644
index 20e7b8ee0c..0000000000
--- a/crypto/aes/aes.h
+++ /dev/null
@@ -1,139 +0,0 @@
-/* crypto/aes/aes.h -*- mode:C; c-file-style: "eay" -*- */
-/* ====================================================================
- * Copyright (c) 1998-2002 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@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.
- * ====================================================================
- *
- */
-
-#ifndef HEADER_AES_H
-# define HEADER_AES_H
-
-# include <openssl/opensslconf.h>
-
-# ifdef OPENSSL_NO_AES
-# error AES is disabled.
-# endif
-
-# include <stddef.h>
-
-# define AES_ENCRYPT 1
-# define AES_DECRYPT 0
-
-/*
- * Because array size can't be a const in C, the following two are macros.
- * Both sizes are in bytes.
- */
-# define AES_MAXNR 14
-# define AES_BLOCK_SIZE 16
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* This should be a hidden type, but EVP requires that the size be known */
-struct aes_key_st {
-# ifdef AES_LONG
- unsigned long rd_key[4 * (AES_MAXNR + 1)];
-# else
- unsigned int rd_key[4 * (AES_MAXNR + 1)];
-# endif
- int rounds;
-};
-typedef struct aes_key_st AES_KEY;
-
-const char *AES_options(void);
-
-int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
- AES_KEY *key);
-int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
- AES_KEY *key);
-
-void AES_encrypt(const unsigned char *in, unsigned char *out,
- const AES_KEY *key);
-void AES_decrypt(const unsigned char *in, unsigned char *out,
- const AES_KEY *key);
-
-void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
- const AES_KEY *key, const int enc);
-void AES_cbc_encrypt(const unsigned char *in, unsigned char *out,
- size_t length, const AES_KEY *key,
- unsigned char *ivec, const int enc);
-void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,
- size_t length, const AES_KEY *key,
- unsigned char *ivec, int *num, const int enc);
-void AES_cfb1_encrypt(const unsigned char *in, unsigned char *out,
- size_t length, const AES_KEY *key,
- unsigned char *ivec, int *num, const int enc);
-void AES_cfb8_encrypt(const unsigned char *in, unsigned char *out,
- size_t length, const AES_KEY *key,
- unsigned char *ivec, int *num, const int enc);
-void AES_ofb128_encrypt(const unsigned char *in, unsigned char *out,
- size_t length, const AES_KEY *key,
- unsigned char *ivec, int *num);
-/* NB: the IV is _two_ blocks long */
-void AES_ige_encrypt(const unsigned char *in, unsigned char *out,
- size_t length, const AES_KEY *key,
- unsigned char *ivec, const int enc);
-/* NB: the IV is _four_ blocks long */
-void AES_bi_ige_encrypt(const unsigned char *in, unsigned char *out,
- size_t length, const AES_KEY *key,
- const AES_KEY *key2, const unsigned char *ivec,
- const int enc);
-
-int AES_wrap_key(AES_KEY *key, const unsigned char *iv,
- unsigned char *out,
- const unsigned char *in, unsigned int inlen);
-int AES_unwrap_key(AES_KEY *key, const unsigned char *iv,
- unsigned char *out,
- const unsigned char *in, unsigned int inlen);
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* !HEADER_AES_H */
diff --git a/crypto/asn1/asn1.h b/crypto/asn1/asn1.h
deleted file mode 100644
index 30de831f35..0000000000
--- a/crypto/asn1/asn1.h
+++ /dev/null
@@ -1,1199 +0,0 @@
-/* crypto/asn1/asn1.h */
-/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
- * All rights reserved.
- *
- * This package is an SSL implementation written
- * by Eric Young (eay@cryptsoft.com).
- * The implementation was written so as to conform with Netscapes SSL.
- *
- * This library is free for commercial and non-commercial use as long as
- * the following conditions are aheared to. The following conditions
- * apply to all code found in this distribution, be it the RC4, RSA,
- * lhash, DES, etc., code; not just the SSL code. The SSL documentation
- * included with this distribution is covered by the same copyright terms
- * except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
- * Copyright remains Eric Young's, and as such any Copyright notices in
- * the code are not to be removed.
- * If this package is used in a product, Eric Young should be given attribution
- * as the author of the parts of the library used.
- * This can be in the form of a textual message at program startup or
- * in documentation (online or textual) provided with the package.
- *
- * 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 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 ack