Reorganize local header files

Apart from public and internal header files, there is a third type called
local header files, which are located next to source files in the source
directory. Currently, they have different suffixes like

  '*_lcl.h', '*_local.h', or '*_int.h'

This commit changes the different suffixes to '*_local.h' uniformly.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9333)
This commit is contained in:
Dr. Matthias St. Pierre 2019-09-28 00:45:40 +02:00
parent 25f2138b0a
commit 706457b7bd
501 changed files with 498 additions and 498 deletions

View file

@ -450,7 +450,7 @@ my %targets = (
# 32-bit message digests. (For the moment of this writing) HP C # 32-bit message digests. (For the moment of this writing) HP C
# doesn't seem to "digest" too many local variables (they make "him" # doesn't seem to "digest" too many local variables (they make "him"
# chew forever:-). For more details look-up MD32_XARRAY comment in # chew forever:-). For more details look-up MD32_XARRAY comment in
# crypto/sha/sha_lcl.h. # crypto/sha/sha_local.h.
# - originally there were 32-bit hpux-parisc2-* targets. They were # - originally there were 32-bit hpux-parisc2-* targets. They were
# scrapped, because a) they were not interchangeable with other 32-bit # scrapped, because a) they were not interchangeable with other 32-bit
# targets; b) performance-critical 32-bit assembly modules implement # targets; b) performance-critical 32-bit assembly modules implement

View file

@ -41,7 +41,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include <openssl/aes.h> #include <openssl/aes.h>
#include "aes_locl.h" #include "aes_local.h"
#ifndef AES_ASM #ifndef AES_ASM
/*- /*-

View file

@ -10,7 +10,7 @@
#include <assert.h> #include <assert.h>
#include <openssl/aes.h> #include <openssl/aes.h>
#include "aes_locl.h" #include "aes_local.h"
void AES_ecb_encrypt(const unsigned char *in, unsigned char *out, void AES_ecb_encrypt(const unsigned char *in, unsigned char *out,
const AES_KEY *key, const int enc) const AES_KEY *key, const int enc)

View file

@ -14,7 +14,7 @@ NON_EMPTY_TRANSLATION_UNIT
#else #else
#include <openssl/aes.h> #include <openssl/aes.h>
#include "aes_locl.h" #include "aes_local.h"
#define N_WORDS (AES_BLOCK_SIZE / sizeof(unsigned long)) #define N_WORDS (AES_BLOCK_SIZE / sizeof(unsigned long))
typedef struct { typedef struct {

View file

@ -9,7 +9,7 @@
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
#include <openssl/aes.h> #include <openssl/aes.h>
#include "aes_locl.h" #include "aes_local.h"
const char *AES_options(void) const char *AES_options(void)
{ {

View file

@ -46,7 +46,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <openssl/aes.h> #include <openssl/aes.h>
#include "aes_locl.h" #include "aes_local.h"
/* /*
* These two parameters control which table, 256-byte or 2KB, is * These two parameters control which table, 256-byte or 2KB, is

View file

@ -11,7 +11,7 @@
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "asn1_locl.h" #include "asn1_local.h"
int ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len) int ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len)
{ {

View file

@ -15,7 +15,7 @@
#include <time.h> #include <time.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "asn1_locl.h" #include "asn1_local.h"
/* This is the primary function used to parse ASN1_GENERALIZEDTIME */ /* This is the primary function used to parse ASN1_GENERALIZEDTIME */
int asn1_generalizedtime_to_tm(struct tm *tm, const ASN1_GENERALIZEDTIME *d) int asn1_generalizedtime_to_tm(struct tm *tm, const ASN1_GENERALIZEDTIME *d)

View file

@ -13,7 +13,7 @@
#include <limits.h> #include <limits.h>
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "asn1_locl.h" #include "asn1_local.h"
ASN1_INTEGER *ASN1_INTEGER_dup(const ASN1_INTEGER *x) ASN1_INTEGER *ASN1_INTEGER_dup(const ASN1_INTEGER *x)
{ {

View file

@ -16,7 +16,7 @@
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "crypto/asn1.h" #include "crypto/asn1.h"
#include "asn1_locl.h" #include "asn1_local.h"
int i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp) int i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp)
{ {

View file

@ -19,7 +19,7 @@
#include "crypto/ctype.h" #include "crypto/ctype.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include "asn1_locl.h" #include "asn1_local.h"
IMPLEMENT_ASN1_MSTRING(ASN1_TIME, B_ASN1_TIME) IMPLEMENT_ASN1_MSTRING(ASN1_TIME, B_ASN1_TIME)

View file

@ -11,7 +11,7 @@
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "asn1_locl.h" #include "asn1_local.h"
int ASN1_TYPE_get(const ASN1_TYPE *a) int ASN1_TYPE_get(const ASN1_TYPE *a)
{ {

View file

@ -11,7 +11,7 @@
#include <time.h> #include <time.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "asn1_locl.h" #include "asn1_local.h"
/* This is the primary function used to parse ASN1_UTCTIME */ /* This is the primary function used to parse ASN1_UTCTIME */
int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d) int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d)

View file

@ -11,7 +11,7 @@
#include <limits.h> #include <limits.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include "asn1_locl.h" #include "asn1_local.h"
static int asn1_get_length(const unsigned char **pp, int *inf, long *rl, static int asn1_get_length(const unsigned char **pp, int *inf, long *rl,
long max); long max);

View file

@ -16,7 +16,7 @@
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include "crypto/evp.h" #include "crypto/evp.h"
#include "internal/bio.h" #include "internal/bio.h"
#include "asn1_locl.h" #include "asn1_local.h"
/* /*
* Generalised MIME like utilities for streaming ASN1. Although many have a * Generalised MIME like utilities for streaming ASN1. Although many have a

View file

@ -15,7 +15,7 @@
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/err.h> #include <openssl/err.h>
#include "internal/numbers.h" #include "internal/numbers.h"
#include "asn1_locl.h" #include "asn1_local.h"
/* /*

View file

@ -14,7 +14,7 @@
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "crypto/asn1.h" #include "crypto/asn1.h"
#include "asn1_locl.h" #include "asn1_local.h"
static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out, static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out,
const ASN1_ITEM *it, int tag, int aclass); const ASN1_ITEM *it, int tag, int aclass);

View file

@ -11,7 +11,7 @@
#include <openssl/asn1.h> #include <openssl/asn1.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include "asn1_locl.h" #include "asn1_local.h"
/* Free up an ASN1 structure */ /* Free up an ASN1 structure */

View file

@ -13,7 +13,7 @@
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <string.h> #include <string.h>
#include "asn1_locl.h" #include "asn1_local.h"
static int asn1_item_embed_new(ASN1_VALUE **pval, const ASN1_ITEM *it, static int asn1_item_embed_new(ASN1_VALUE **pval, const ASN1_ITEM *it,
int embed); int embed);

View file

@ -16,7 +16,7 @@
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
#include "crypto/asn1.h" #include "crypto/asn1.h"
#include "asn1_locl.h" #include "asn1_local.h"
/* /*
* Print routines. * Print routines.

View file

@ -15,7 +15,7 @@
#include <openssl/buffer.h> #include <openssl/buffer.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
#include "asn1_locl.h" #include "asn1_local.h"
/* /*
* General ASN1 structure recursive scanner: iterate through all fields * General ASN1 structure recursive scanner: iterate through all fields

View file

@ -15,7 +15,7 @@
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/objects.h> #include <openssl/objects.h>
#include <openssl/err.h> #include <openssl/err.h>
#include "asn1_locl.h" #include "asn1_local.h"
/* Utility functions for manipulating fields and offsets */ /* Utility functions for manipulating fields and offsets */

View file

@ -12,7 +12,7 @@
#include "internal/numbers.h" #include "internal/numbers.h"
#include <openssl/asn1t.h> #include <openssl/asn1t.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "asn1_locl.h" #include "asn1_local.h"
/* /*
* Custom primitive types for handling int32_t, int64_t, uint32_t, uint64_t. * Custom primitive types for handling int32_t, int64_t, uint32_t, uint64_t.

View file

@ -8,7 +8,7 @@
*/ */
/* This must be the first #include file */ /* This must be the first #include file */
#include "../async_locl.h" #include "../async_local.h"
#ifdef ASYNC_NULL #ifdef ASYNC_NULL
int ASYNC_is_capable(void) int ASYNC_is_capable(void)

View file

@ -8,7 +8,7 @@
*/ */
/* This must be the first #include file */ /* This must be the first #include file */
#include "../async_locl.h" #include "../async_local.h"
#ifdef ASYNC_POSIX #ifdef ASYNC_POSIX

View file

@ -8,7 +8,7 @@
*/ */
/* This must be the first #include file */ /* This must be the first #include file */
#include "../async_locl.h" #include "../async_local.h"
#ifdef ASYNC_WIN #ifdef ASYNC_WIN

View file

@ -16,7 +16,7 @@
#undef _FORTIFY_SOURCE #undef _FORTIFY_SOURCE
/* This must be the first #include file */ /* This must be the first #include file */
#include "async_locl.h" #include "async_local.h"
#include <openssl/err.h> #include <openssl/err.h>
#include "crypto/cryptlib.h" #include "crypto/cryptlib.h"

View file

@ -8,7 +8,7 @@
*/ */
/* This must be the first #include file */ /* This must be the first #include file */
#include "async_locl.h" #include "async_local.h"
#include <openssl/err.h> #include <openssl/err.h>

View file

@ -8,7 +8,7 @@
*/ */
#include <openssl/blowfish.h> #include <openssl/blowfish.h>
#include "bf_locl.h" #include "bf_local.h"
/* /*
* The input and output encrypted as though 64bit cfb mode is being used. * The input and output encrypted as though 64bit cfb mode is being used.

View file

@ -8,7 +8,7 @@
*/ */
#include <openssl/blowfish.h> #include <openssl/blowfish.h>
#include "bf_locl.h" #include "bf_local.h"
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
/* /*

View file

@ -8,7 +8,7 @@
*/ */
#include <openssl/blowfish.h> #include <openssl/blowfish.h>
#include "bf_locl.h" #include "bf_local.h"
/* /*
* Blowfish as implemented from 'Blowfish: Springer-Verlag paper' (From * Blowfish as implemented from 'Blowfish: Springer-Verlag paper' (From

View file

@ -8,7 +8,7 @@
*/ */
#include <openssl/blowfish.h> #include <openssl/blowfish.h>
#include "bf_locl.h" #include "bf_local.h"
/* /*
* The input and output encrypted as though 64bit ofb mode is being used. * The input and output encrypted as though 64bit ofb mode is being used.

View file

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <openssl/blowfish.h> #include <openssl/blowfish.h>
#include "bf_locl.h" #include "bf_local.h"
#include "bf_pi.h" #include "bf_pi.h"
void BF_set_key(BF_KEY *key, int len, const unsigned char *data) void BF_set_key(BF_KEY *key, int len, const unsigned char *data)

View file

@ -10,7 +10,7 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include "bio_lcl.h" #include "bio_local.h"
#include <openssl/crypto.h> #include <openssl/crypto.h>
#ifndef OPENSSL_NO_SOCK #ifndef OPENSSL_NO_SOCK
@ -22,7 +22,7 @@ CRYPTO_RWLOCK *bio_lookup_lock;
static CRYPTO_ONCE bio_lookup_init = CRYPTO_ONCE_STATIC_INIT; static CRYPTO_ONCE bio_lookup_init = CRYPTO_ONCE_STATIC_INIT;
/* /*
* Throughout this file and bio_lcl.h, the existence of the macro * Throughout this file and bio_local.h, the existence of the macro
* AI_PASSIVE is used to detect the availability of struct addrinfo, * AI_PASSIVE is used to detect the availability of struct addrinfo,
* getnameinfo() and getaddrinfo(). If that macro doesn't exist, * getnameinfo() and getaddrinfo(). If that macro doesn't exist,
* we use our own implementation instead, using gethostbyname, * we use our own implementation instead, using gethostbyname,
@ -695,7 +695,7 @@ int BIO_lookup_ex(const char *host, const char *service, int lookup_type,
hints.ai_flags |= AI_PASSIVE; hints.ai_flags |= AI_PASSIVE;
/* Note that |res| SHOULD be a 'struct addrinfo **' thanks to /* Note that |res| SHOULD be a 'struct addrinfo **' thanks to
* macro magic in bio_lcl.h * macro magic in bio_local.h
*/ */
retry: retry:
switch ((gai_ret = getaddrinfo(host, service, &hints, res))) { switch ((gai_ret = getaddrinfo(host, service, &hints, res))) {

View file

@ -12,7 +12,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include "bio_lcl.h" #include "bio_local.h"
#define DUMP_WIDTH 16 #define DUMP_WIDTH 16
#define DUMP_WIDTH_LESS_INDENT(i) (DUMP_WIDTH - ((i - (i > 6 ? 6 : i) + 3) / 4)) #define DUMP_WIDTH_LESS_INDENT(i) (DUMP_WIDTH - ((i - (i > 6 ? 6 : i) + 3) / 4))

View file

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#ifndef OPENSSL_NO_SOCK #ifndef OPENSSL_NO_SOCK
# define SOCKET_PROTOCOL IPPROTO_TCP # define SOCKET_PROTOCOL IPPROTO_TCP
# ifdef SO_MAXCONN # ifdef SO_MAXCONN

View file

@ -11,7 +11,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include <openssl/err.h> #include <openssl/err.h>

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
static int buffer_write(BIO *h, const char *buf, int num); static int buffer_write(BIO *h, const char *buf, int num);

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/evp.h> #include <openssl/evp.h>

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/rand.h> #include <openssl/rand.h>

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
/* /*

View file

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include <openssl/err.h> #include <openssl/err.h>

View file

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"

View file

@ -28,10 +28,10 @@
* that also includes bio.h. * that also includes bio.h.
*/ */
# ifdef HEADER_CRYPTLIB_H # ifdef HEADER_CRYPTLIB_H
# error internal/cryptlib.h included before bio_lcl.h # error internal/cryptlib.h included before bio_local.h
# endif # endif
# ifdef HEADER_BIO_H # ifdef HEADER_BIO_H
# error openssl/bio.h included before bio_lcl.h # error openssl/bio.h included before bio_local.h
# endif # endif
/* /*

View file

@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html * https://www.openssl.org/source/license.html
*/ */
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/thread_once.h" #include "internal/thread_once.h"
CRYPTO_RWLOCK *bio_type_lock = NULL; CRYPTO_RWLOCK *bio_type_lock = NULL;

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#ifndef OPENSSL_NO_SOCK #ifndef OPENSSL_NO_SOCK

View file

@ -21,7 +21,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "bio_lcl.h" #include "bio_local.h"
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>

View file

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#ifndef OPENSSL_NO_SOCK #ifndef OPENSSL_NO_SOCK

View file

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#ifndef OPENSSL_NO_DGRAM #ifndef OPENSSL_NO_DGRAM
# ifndef OPENSSL_NO_SCTP # ifndef OPENSSL_NO_SCTP

View file

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#if defined(OPENSSL_NO_POSIX_IO) #if defined(OPENSSL_NO_POSIX_IO)
/* /*

View file

@ -27,7 +27,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include <openssl/err.h> #include <openssl/err.h>
#if !defined(OPENSSL_NO_STDIO) #if !defined(OPENSSL_NO_STDIO)

View file

@ -19,7 +19,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#if defined(OPENSSL_SYS_WINCE) #if defined(OPENSSL_SYS_WINCE)

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
static int mem_write(BIO *h, const char *buf, int num); static int mem_write(BIO *h, const char *buf, int num);

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
static int null_write(BIO *h, const char *buf, int num); static int null_write(BIO *h, const char *buf, int num);

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "bio_lcl.h" #include "bio_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "internal/ktls.h" #include "internal/ktls.h"

View file

@ -188,7 +188,7 @@ B<a> and the 2*B<n> word arrays B<tmp> and B<r>.
The implementations use the following macros which, depending on the The implementations use the following macros which, depending on the
architecture, may use "long long" C operations or inline assembler. architecture, may use "long long" C operations or inline assembler.
They are defined in C<bn_lcl.h>. They are defined in C<bn_local.h>.
mul(B<r>, B<a>, B<w>, B<c>) computes B<w>*B<a>+B<c> and places the mul(B<r>, B<a>, B<w>, B<c>) computes B<w>*B<a>+B<c> and places the
low word of the result in B<r> and the high word in B<c>. low word of the result in B<r> and the high word in B<c>.

View file

@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html * https://www.openssl.org/source/license.html
*/ */
#include "../bn_lcl.h" #include "../bn_local.h"
#if !(defined(__GNUC__) && __GNUC__>=2) #if !(defined(__GNUC__) && __GNUC__>=2)
# include "../bn_asm.c" /* kind of dirty hack for Sun Studio */ # include "../bn_asm.c" /* kind of dirty hack for Sun Studio */
#else #else

View file

@ -8,7 +8,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
/* signed add of b to a. */ /* signed add of b to a. */
int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b) int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)

View file

@ -10,7 +10,7 @@
#include <assert.h> #include <assert.h>
#include <openssl/crypto.h> #include <openssl/crypto.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
#if defined(BN_LLONG) || defined(BN_UMULT_HIGH) #if defined(BN_LLONG) || defined(BN_UMULT_HIGH)

View file

@ -9,7 +9,7 @@
#include <openssl/opensslconf.h> #include <openssl/opensslconf.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
#define BN_BLINDING_COUNTER 32 #define BN_BLINDING_COUNTER 32

View file

@ -9,7 +9,7 @@
#include <openssl/err.h> #include <openssl/err.h>
#include "crypto/ctype.h" #include "crypto/ctype.h"
#include "bn_lcl.h" #include "bn_local.h"
static const char Hex[] = "0123456789ABCDEF"; static const char Hex[] = "0123456789ABCDEF";

View file

@ -9,7 +9,7 @@
#include <openssl/trace.h> #include <openssl/trace.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
/*- /*-
* TODO list * TODO list

View file

@ -20,7 +20,7 @@ NON_EMPTY_TRANSLATION_UNIT
# include <stdio.h> # include <stdio.h>
# include <time.h> # include <time.h>
# include "internal/cryptlib.h" # include "internal/cryptlib.h"
# include "bn_lcl.h" # include "bn_local.h"
BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe, BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe,
const BIGNUM *add, const BIGNUM *rem, const BIGNUM *add, const BIGNUM *rem,

View file

@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html * https://www.openssl.org/source/license.html
*/ */
#include "bn_lcl.h" #include "bn_local.h"
#include "internal/nelem.h" #include "internal/nelem.h"
#ifndef OPENSSL_NO_DH #ifndef OPENSSL_NO_DH

View file

@ -10,7 +10,7 @@
#include <assert.h> #include <assert.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
/* The old slow way */ /* The old slow way */
#if 0 #if 0

View file

@ -8,8 +8,8 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "internal/constant_time_locl.h" #include "internal/constant_time.h"
#include "bn_lcl.h" #include "bn_local.h"
#include <stdlib.h> #include <stdlib.h>
#ifdef _WIN32 #ifdef _WIN32

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
#define TABLE_SIZE 32 #define TABLE_SIZE 32

View file

@ -8,7 +8,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
static BIGNUM *euclid(BIGNUM *a, BIGNUM *b); static BIGNUM *euclid(BIGNUM *a, BIGNUM *b);

View file

@ -12,7 +12,7 @@
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
#ifndef OPENSSL_NO_EC2M #ifndef OPENSSL_NO_EC2M

View file

@ -8,7 +8,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
/* /*
* Determine the modified width-(w+1) Non-Adjacent Form (wNAF) of 'scalar'. * Determine the modified width-(w+1) Non-Adjacent Form (wNAF) of 'scalar'.

View file

@ -8,7 +8,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
/* least significant word */ /* least significant word */
#define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0]) #define BN_lsw(n) (((n)->top == 0) ? (BN_ULONG) 0 : (n)->d[0])

View file

@ -10,9 +10,9 @@
#include <assert.h> #include <assert.h>
#include <limits.h> #include <limits.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
#include <openssl/opensslconf.h> #include <openssl/opensslconf.h>
#include "internal/constant_time_locl.h" #include "internal/constant_time.h"
/* This stuff appears to be completely unused, so is deprecated */ /* This stuff appears to be completely unused, so is deprecated */
#if !OPENSSL_API_0_9_8 #if !OPENSSL_API_0_9_8

View file

@ -8,7 +8,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
{ {

View file

@ -15,7 +15,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
#define MONT_WORD /* use the faster word-based algorithm */ #define MONT_WORD /* use the faster word-based algorithm */

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
int BN_bn2mpi(const BIGNUM *a, unsigned char *d) int BN_bn2mpi(const BIGNUM *a, unsigned char *d)
{ {

View file

@ -9,7 +9,7 @@
#include <assert.h> #include <assert.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
#if defined(OPENSSL_NO_ASM) || !defined(OPENSSL_BN_ASM_PART_WORDS) #if defined(OPENSSL_NO_ASM) || !defined(OPENSSL_BN_ASM_PART_WORDS)
/* /*

View file

@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html * https://www.openssl.org/source/license.html
*/ */
#include "bn_lcl.h" #include "bn_local.h"
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2 #define BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2

View file

@ -10,7 +10,7 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
/* /*
* The quick sieve algorithm approach to weeding out primes is Philip * The quick sieve algorithm approach to weeding out primes is Philip

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <openssl/bio.h> #include <openssl/bio.h>
#include "bn_lcl.h" #include "bn_local.h"
static const char Hex[] = "0123456789ABCDEF"; static const char Hex[] = "0123456789ABCDEF";

View file

@ -11,7 +11,7 @@
#include <time.h> #include <time.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "crypto/rand.h" #include "crypto/rand.h"
#include "bn_lcl.h" #include "bn_local.h"
#include <openssl/rand.h> #include <openssl/rand.h>
#include <openssl/sha.h> #include <openssl/sha.h>
#include <openssl/evp.h> #include <openssl/evp.h>

View file

@ -8,7 +8,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
void BN_RECP_CTX_init(BN_RECP_CTX *recp) void BN_RECP_CTX_init(BN_RECP_CTX *recp)
{ {

View file

@ -29,7 +29,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "bn_lcl.h" #include "bn_local.h"
#include "crypto/bn.h" #include "crypto/bn.h"
/* /*

View file

@ -9,7 +9,7 @@
#include <assert.h> #include <assert.h>
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
int BN_lshift1(BIGNUM *r, const BIGNUM *a) int BN_lshift1(BIGNUM *r, const BIGNUM *a)
{ {

View file

@ -8,7 +8,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
/* r must not be a */ /* r must not be a */
/* /*

View file

@ -8,7 +8,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
/* /*

View file

@ -7,7 +7,7 @@
* https://www.openssl.org/source/license.html * https://www.openssl.org/source/license.html
*/ */
#include "bn_lcl.h" #include "bn_local.h"
#include "internal/nelem.h" #include "internal/nelem.h"
#ifndef OPENSSL_NO_SRP #ifndef OPENSSL_NO_SRP

View file

@ -8,7 +8,7 @@
*/ */
#include "internal/cryptlib.h" #include "internal/cryptlib.h"
#include "bn_lcl.h" #include "bn_local.h"
BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w) BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w)
{ {

View file

@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <openssl/bn.h> #include <openssl/bn.h>
#include "bn_lcl.h" #include "bn_local.h"
/* X9.31 routines for prime derivation */ /* X9.31 routines for prime derivation */

View file

@ -40,7 +40,7 @@
*/ */
#include <openssl/camellia.h> #include <openssl/camellia.h>
#include "cmll_locl.h" #include "cmll_local.h"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -8,7 +8,7 @@
*/ */
#include <openssl/camellia.h> #include <openssl/camellia.h>
#include "cmll_locl.h" #include "cmll_local.h"
void Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out, void Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out,
const CAMELLIA_KEY *key, const int enc) const CAMELLIA_KEY *key, const int enc)

View file

@ -9,7 +9,7 @@
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
#include <openssl/camellia.h> #include <openssl/camellia.h>
#include "cmll_locl.h" #include "cmll_local.h"
int Camellia_set_key(const unsigned char *userKey, const int bits, int Camellia_set_key(const unsigned char *userKey, const int bits,
CAMELLIA_KEY *key) CAMELLIA_KEY *key)

View file

@ -8,7 +8,7 @@
*/ */
#include <openssl/cast.h> #include <openssl/cast.h>
#include "cast_lcl.h" #include "cast_local.h"
/* /*
* The input and output encrypted as though 64bit cfb mode is being used. * The input and output encrypted as though 64bit cfb mode is being used.

View file

@ -8,7 +8,7 @@
*/ */
#include <openssl/cast.h> #include <openssl/cast.h>
#include "cast_lcl.h" #include "cast_local.h"
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out, void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,

View file

@ -8,7 +8,7 @@
*/ */
#include <openssl/cast.h> #include <openssl/cast.h>
#include "cast_lcl.h" #include "cast_local.h"
void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key) void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key)
{ {

Some files were not shown because too many files have changed in this diff Show more