Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
d2681d82
Commit
d2681d82
authored
Jun 30, 2013
by
Paul Bakker
Browse files
Renamed sha2.{c,h} to sha256.{c,h} and sha4.{c,h} to sha512.{c,h}
parent
9e36f047
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
43 additions
and
43 deletions
+43
-43
include/polarssl/entropy.h
include/polarssl/entropy.h
+1
-1
include/polarssl/sha256.h
include/polarssl/sha256.h
+5
-5
include/polarssl/sha512.h
include/polarssl/sha512.h
+5
-5
include/polarssl/ssl.h
include/polarssl/ssl.h
+2
-2
library/CMakeLists.txt
library/CMakeLists.txt
+2
-2
library/Makefile
library/Makefile
+2
-2
library/error.c
library/error.c
+2
-2
library/md_wrap.c
library/md_wrap.c
+2
-2
library/sha256.c
library/sha256.c
+1
-1
library/sha512.c
library/sha512.c
+1
-1
library/ssl_tls.c
library/ssl_tls.c
+1
-1
library/x509parse.c
library/x509parse.c
+2
-2
programs/aes/aescrypt2.c
programs/aes/aescrypt2.c
+1
-1
programs/hash/sha2sum.c
programs/hash/sha2sum.c
+2
-2
programs/test/benchmark.c
programs/test/benchmark.c
+3
-3
programs/test/selftest.c
programs/test/selftest.c
+3
-3
tests/suites/test_suite_hmac_shax.function
tests/suites/test_suite_hmac_shax.function
+2
-2
tests/suites/test_suite_md.function
tests/suites/test_suite_md.function
+2
-2
tests/suites/test_suite_pkcs1_v21.function
tests/suites/test_suite_pkcs1_v21.function
+2
-2
tests/suites/test_suite_rsa.function
tests/suites/test_suite_rsa.function
+2
-2
No files found.
include/polarssl/entropy.h
View file @
d2681d82
...
...
@@ -31,7 +31,7 @@
#include "config.h"
#include "sha
4
.h"
#include "sha
512
.h"
#if defined(POLARSSL_HAVEGE_C)
#include "havege.h"
#endif
...
...
include/polarssl/sha2.h
→
include/polarssl/sha2
56
.h
View file @
d2681d82
/**
* \file sha2.h
* \file sha2
56
.h
*
* \brief SHA-224 and SHA-256 cryptographic hash function
*
...
...
@@ -24,8 +24,8 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef POLARSSL_SHA2_H
#define POLARSSL_SHA2_H
#ifndef POLARSSL_SHA2
56
_H
#define POLARSSL_SHA2
56
_H
#include "config.h"
...
...
@@ -96,7 +96,7 @@ void sha256_process( sha256_context *ctx, const unsigned char data[64] );
#endif
#else
/* POLARSSL_SHA256_ALT */
#include "sha2_alt.h"
#include "sha2
56
_alt.h"
#endif
/* POLARSSL_SHA256_ALT */
#ifdef __cplusplus
...
...
@@ -185,4 +185,4 @@ int sha256_self_test( int verbose );
}
#endif
#endif
/* sha2.h */
#endif
/* sha2
56
.h */
include/polarssl/sha
4
.h
→
include/polarssl/sha
512
.h
View file @
d2681d82
/**
* \file sha
4
.h
* \file sha
512
.h
*
* \brief SHA-384 and SHA-512 cryptographic hash function
*
...
...
@@ -24,8 +24,8 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef POLARSSL_SHA
4
_H
#define POLARSSL_SHA
4
_H
#ifndef POLARSSL_SHA
512
_H
#define POLARSSL_SHA
512
_H
#include "config.h"
...
...
@@ -94,7 +94,7 @@ void sha512_finish( sha512_context *ctx, unsigned char output[64] );
#endif
#else
/* POLARSSL_SHA512_ALT */
#include "sha
4
_alt.h"
#include "sha
512
_alt.h"
#endif
/* POLARSSL_SHA512_ALT */
#ifdef __cplusplus
...
...
@@ -186,4 +186,4 @@ void sha512_process( sha512_context *ctx, const unsigned char data[128] );
}
#endif
#endif
/* sha
4
.h */
#endif
/* sha
512
.h */
include/polarssl/ssl.h
View file @
d2681d82
...
...
@@ -35,8 +35,8 @@
#include "md5.h"
#include "sha1.h"
#include "sha2.h"
#include "sha
4
.h"
#include "sha2
56
.h"
#include "sha
512
.h"
#include "ssl_ciphersuites.h"
...
...
library/CMakeLists.txt
View file @
d2681d82
...
...
@@ -39,8 +39,8 @@ set(src
pkcs12.c
rsa.c
sha1.c
sha2.c
sha
4
.c
sha2
56
.c
sha
512
.c
ssl_cache.c
ssl_ciphersuites.c
ssl_cli.c
...
...
library/Makefile
View file @
d2681d82
...
...
@@ -48,8 +48,8 @@ OBJS= aes.o arc4.o asn1parse.o \
oid.o
\
padlock.o pbkdf2.o pem.o
\
pkcs5.o pkcs11.o pkcs12.o
\
rsa.o sha1.o sha2.o
\
sha
4
.o
ssl_cache.o ssl_cli.o
\
rsa.o sha1.o sha2
56
.o
\
sha
512
.o ssl_cache.o ssl_cli.o
\
ssl_srv.o ssl_ciphersuites.o
\
ssl_tls.o timing.o version.o
\
x509parse.o x509write.o xtea.o
...
...
library/error.c
View file @
d2681d82
...
...
@@ -130,11 +130,11 @@
#endif
#if defined(POLARSSL_SHA256_C)
#include "polarssl/sha2.h"
#include "polarssl/sha2
56
.h"
#endif
#if defined(POLARSSL_SHA512_C)
#include "polarssl/sha
4
.h"
#include "polarssl/sha
512
.h"
#endif
#if defined(POLARSSL_SSL_TLS_C)
...
...
library/md_wrap.c
View file @
d2681d82
...
...
@@ -50,11 +50,11 @@
#endif
#if defined(POLARSSL_SHA256_C)
#include "polarssl/sha2.h"
#include "polarssl/sha2
56
.h"
#endif
#if defined(POLARSSL_SHA512_C)
#include "polarssl/sha
4
.h"
#include "polarssl/sha
512
.h"
#endif
#include <stdlib.h>
...
...
library/sha2.c
→
library/sha2
56
.c
View file @
d2681d82
...
...
@@ -32,7 +32,7 @@
#if defined(POLARSSL_SHA256_C)
#include "polarssl/sha2.h"
#include "polarssl/sha2
56
.h"
#if defined(POLARSSL_FS_IO) || defined(POLARSSL_SELF_TEST)
#include <stdio.h>
...
...
library/sha
4
.c
→
library/sha
512
.c
View file @
d2681d82
...
...
@@ -32,7 +32,7 @@
#if defined(POLARSSL_SHA512_C)
#include "polarssl/sha
4
.h"
#include "polarssl/sha
512
.h"
#if defined(POLARSSL_FS_IO) || defined(POLARSSL_SELF_TEST)
#include <stdio.h>
...
...
library/ssl_tls.c
View file @
d2681d82
...
...
@@ -41,7 +41,7 @@
#include "polarssl/des.h"
#include "polarssl/debug.h"
#include "polarssl/ssl.h"
#include "polarssl/sha2.h"
#include "polarssl/sha2
56
.h"
#if defined(POLARSSL_GCM_C)
#include "polarssl/gcm.h"
...
...
library/x509parse.c
View file @
d2681d82
...
...
@@ -56,10 +56,10 @@
#include "polarssl/sha1.h"
#endif
#if defined(POLARSSL_SHA256_C)
#include "polarssl/sha2.h"
#include "polarssl/sha2
56
.h"
#endif
#if defined(POLARSSL_SHA512_C)
#include "polarssl/sha
4
.h"
#include "polarssl/sha
512
.h"
#endif
#include "polarssl/dhm.h"
#if defined(POLARSSL_PKCS5_C)
...
...
programs/aes/aescrypt2.c
View file @
d2681d82
...
...
@@ -45,7 +45,7 @@
#include "polarssl/config.h"
#include "polarssl/aes.h"
#include "polarssl/sha2.h"
#include "polarssl/sha2
56
.h"
#define MODE_ENCRYPT 0
#define MODE_DECRYPT 1
...
...
programs/hash/sha2sum.c
View file @
d2681d82
/*
* sha256sum demonstration program
*
* Copyright (C) 2006-201
1
, Brainspark B.V.
* Copyright (C) 2006-201
3
, Brainspark B.V.
*
* This file is part of PolarSSL (http://www.polarssl.org)
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
...
...
@@ -32,7 +32,7 @@
#include "polarssl/config.h"
#include "polarssl/sha2.h"
#include "polarssl/sha2
56
.h"
#if !defined(POLARSSL_SHA256_C) || !defined(POLARSSL_FS_IO)
int
main
(
int
argc
,
char
*
argv
[]
)
...
...
programs/test/benchmark.c
View file @
d2681d82
/*
* Benchmark demonstration program
*
* Copyright (C) 2006-201
1
, Brainspark B.V.
* Copyright (C) 2006-201
3
, Brainspark B.V.
*
* This file is part of PolarSSL (http://www.polarssl.org)
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
...
...
@@ -36,8 +36,8 @@
#include "polarssl/md4.h"
#include "polarssl/md5.h"
#include "polarssl/sha1.h"
#include "polarssl/sha2.h"
#include "polarssl/sha
4
.h"
#include "polarssl/sha2
56
.h"
#include "polarssl/sha
512
.h"
#include "polarssl/arc4.h"
#include "polarssl/des.h"
#include "polarssl/aes.h"
...
...
programs/test/selftest.c
View file @
d2681d82
/*
* Self-test demonstration program
*
* Copyright (C) 2006-201
1
, Brainspark B.V.
* Copyright (C) 2006-201
3
, Brainspark B.V.
*
* This file is part of PolarSSL (http://www.polarssl.org)
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
...
...
@@ -38,8 +38,8 @@
#include "polarssl/md4.h"
#include "polarssl/md5.h"
#include "polarssl/sha1.h"
#include "polarssl/sha2.h"
#include "polarssl/sha
4
.h"
#include "polarssl/sha2
56
.h"
#include "polarssl/sha
512
.h"
#include "polarssl/arc4.h"
#include "polarssl/des.h"
#include "polarssl/aes.h"
...
...
tests/suites/test_suite_hmac_shax.function
View file @
d2681d82
BEGIN_HEADER
#include <polarssl/sha1.h>
#include <polarssl/sha2.h>
#include <polarssl/sha
4
.h>
#include <polarssl/sha2
56
.h>
#include <polarssl/sha
512
.h>
END_HEADER
BEGIN_CASE
...
...
tests/suites/test_suite_md.function
View file @
d2681d82
...
...
@@ -4,8 +4,8 @@ BEGIN_HEADER
#include <polarssl/md4.h>
#include <polarssl/md5.h>
#include <polarssl/sha1.h>
#include <polarssl/sha2.h>
#include <polarssl/sha
4
.h>
#include <polarssl/sha2
56
.h>
#include <polarssl/sha
512
.h>
END_HEADER
BEGIN_DEPENDENCIES
...
...
tests/suites/test_suite_pkcs1_v21.function
View file @
d2681d82
...
...
@@ -5,8 +5,8 @@ BEGIN_HEADER
#include <polarssl/md4.h>
#include <polarssl/md5.h>
#include <polarssl/sha1.h>
#include <polarssl/sha2.h>
#include <polarssl/sha
4
.h>
#include <polarssl/sha2
56
.h>
#include <polarssl/sha
512
.h>
END_HEADER
BEGIN_DEPENDENCIES
...
...
tests/suites/test_suite_rsa.function
View file @
d2681d82
...
...
@@ -4,8 +4,8 @@ BEGIN_HEADER
#include <polarssl/md4.h>
#include <polarssl/md5.h>
#include <polarssl/sha1.h>
#include <polarssl/sha2.h>
#include <polarssl/sha
4
.h>
#include <polarssl/sha2
56
.h>
#include <polarssl/sha
512
.h>
#include <polarssl/entropy.h>
#include <polarssl/ctr_drbg.h>
END_HEADER
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment