Skip to content

Commit f621928

Browse files
author
Justus Winter
committed
Strip trailing whitespace
-- Signed-off-by: Justus Winter <justus@g10code.com>
1 parent 9d34660 commit f621928

25 files changed

+195
-195
lines changed

COPYING

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ modification follow.
7777

7878
"Copyright" also means copyright-like laws that apply to other kinds of
7979
works, such as semiconductor masks.
80-
80+
8181
"The Program" refers to any copyrightable work licensed under this
8282
License. Each licensee is addressed as "you". "Licensees" and
8383
"recipients" may be individuals or organizations.
@@ -510,7 +510,7 @@ actual knowledge that, but for the patent license, your conveying the
510510
covered work in a country, or your recipient's use of the covered work
511511
in a country, would infringe one or more identifiable patents in that
512512
country that you have reason to believe are valid.
513-
513+
514514
If, pursuant to or in connection with a single transaction or
515515
arrangement, you convey, or propagate by procuring conveyance of, a
516516
covered work, and grant a patent license to some of the parties

Makefile.am

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
# Copyright (C) 2007 g10 Code GmbH
33
#
44
# This file is part of TGPG.
5-
#
5+
#
66
# TGPG is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
88
# the Free Software Foundation; either version 2 of the License, or
99
# (at your option) any later version.
10-
#
10+
#
1111
# TGPG is distributed in the hope that it will be useful,
1212
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
# GNU General Public License for more details.
15-
#
15+
#
1616
# You should have received a copy of the GNU General Public License
1717
# along with this program; if not, write to the Free Software
1818
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
1919
# MA 02110-1301, USA.
2020

2121
## Process this file with automake to produce Makefile.in
2222

23-
ACLOCAL_AMFLAGS = -I m4
23+
ACLOCAL_AMFLAGS = -I m4
2424
AUTOMAKE_OPTIONS = dist-bzip2
2525

2626
EXTRA_DIST = autogen.sh README.SVN

README

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Tiny GNU Privacy Guard
22
==========================
33
Version 0.0.0
4-
4+
55

66
This is an OpenPGP implementation targeted to small devices and comes
77
with a couple of restrictions. It does not feature a key management
@@ -11,7 +11,7 @@ GPGME.
1111

1212

1313

14-
Requirements:
14+
Requirements:
1515

1616
sizeof (char) == 8
1717
sizeof (int) >= 16

README.SVN

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tools, or the tools are not installed, you may use environment
1616
variables to override the default tool names:
1717

1818
AUTOMAKE_SUFFIX is used as a suffix for all tools from the automake
19-
package. For example
19+
package. For example
2020
AUTOMAKE_SUFFIX="-1.7" ./autogen.sh
2121
uses "automake-1.7" and "aclocal-1.7.
2222
AUTOMAKE_PREFIX is used as a prefix for all tools from the automake

autogen.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /bin/sh
2-
# Run this to generate all the initial makefiles, etc.
2+
# Run this to generate all the initial makefiles, etc.
33
#
44
# Copyright (C) 2003 g10 Code GmbH
55
#
@@ -59,7 +59,7 @@ if test "$1" = "--build-w32"; then
5959

6060
[ -z "$w32root" ] && w32root="$HOME/w32root"
6161
echo "Using $w32root as standard install directory" >&2
62-
62+
6363
# Locate the cross compiler
6464
crossbindir=
6565
for host in i586-mingw32msvc i386-mingw32msvc mingw32; do
@@ -72,11 +72,11 @@ if test "$1" = "--build-w32"; then
7272
if [ -z "$crossbindir" ]; then
7373
echo "Cross compiler kit not installed" >&2
7474
echo "Under Debian GNU/Linux, you may install it using" >&2
75-
echo " apt-get install mingw32 mingw32-runtime mingw32-binutils" >&2
75+
echo " apt-get install mingw32 mingw32-runtime mingw32-binutils" >&2
7676
echo "Stop." >&2
7777
exit 1
7878
fi
79-
79+
8080
if [ -f "$tsdir/config.log" ]; then
8181
if ! head $tsdir/config.log | grep "$host" >/dev/null; then
8282
echo "Please run a 'make distclean' first" >&2
@@ -94,19 +94,19 @@ fi
9494

9595

9696
# Grep the required versions from configure.ac
97-
autoconf_vers=`sed -n '/^AC_PREREQ(/ {
97+
autoconf_vers=`sed -n '/^AC_PREREQ(/ {
9898
s/^.*(\(.*\))/\1/p
9999
q
100100
}' ${configure_ac}`
101101
autoconf_vers_num=`echo "$autoconf_vers" | cvtver`
102102

103-
automake_vers=`sed -n '/^min_automake_version=/ {
103+
automake_vers=`sed -n '/^min_automake_version=/ {
104104
s/^.*="\(.*\)"/\1/p
105105
q
106106
}' ${configure_ac}`
107107
automake_vers_num=`echo "$automake_vers" | cvtver`
108108

109-
#gettext_vers=`sed -n '/^AM_GNU_GETTEXT_VERSION(/ {
109+
#gettext_vers=`sed -n '/^AM_GNU_GETTEXT_VERSION(/ {
110110
#s/^.*(\(.*\))/\1/p
111111
#q
112112
#}' ${configure_ac}`
@@ -133,9 +133,9 @@ fi
133133
if test "$DIE" = "yes"; then
134134
cat <<EOF
135135
136-
Note that you may use alternative versions of the tools by setting
136+
Note that you may use alternative versions of the tools by setting
137137
the corresponding environment variables; see README.CVS for details.
138-
138+
139139
EOF
140140
exit 1
141141
fi

configure.ac

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# configure.ac - for TGPG
22
# Copyright (C) 2007 g10 Code GmbH
3-
#
3+
#
44
# This file is part of TGPG.
5-
#
5+
#
66
# TGPG is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
88
# the Free Software Foundation; either version 2 of the License, or
99
# (at your option) any later version.
10-
#
10+
#
1111
# TGPG is distributed in the hope that it will be useful,
1212
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
# GNU General Public License for more details.
15-
#
15+
#
1616
# You should have received a copy of the GNU General Public License
1717
# along with this program; if not, write to the Free Software
1818
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
@@ -49,7 +49,7 @@ AB_INIT
4949
AC_GNU_SOURCE
5050

5151
# Some status variables.
52-
have_libgcrypt=no
52+
have_libgcrypt=no
5353

5454

5555

@@ -204,7 +204,7 @@ die=no
204204
if test "$have_libgcrypt" = "no"; then
205205
die=no
206206
AC_MSG_NOTICE([[
207-
***
207+
***
208208
*** You need libgcrypt to build this program.
209209
** This library is for example available at
210210
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
@@ -222,7 +222,7 @@ fi
222222

223223

224224

225-
AC_CONFIG_FILES([ m4/Makefile
225+
AC_CONFIG_FILES([ m4/Makefile
226226
Makefile
227227
src/Makefile
228228
doc/Makefile
@@ -233,7 +233,7 @@ AC_OUTPUT
233233

234234
echo "
235235
TGPG v${VERSION} has been configured as follows:
236-
236+
237237
Platform: $host
238238
"
239239

src/Makefile.am

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
# Copyright (C) 2007 g10 Code GmbH
33
#
44
# This file is part of TGPG.
5-
#
5+
#
66
# TGPG is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
88
# the Free Software Foundation; either version 2 of the License, or
99
# (at your option) any later version.
10-
#
10+
#
1111
# TGPG is distributed in the hope that it will be useful,
1212
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
# GNU General Public License for more details.
15-
#
15+
#
1616
# You should have received a copy of the GNU General Public License
1717
# along with this program; if not, write to the Free Software
1818
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
@@ -33,7 +33,7 @@ tgpg_source = \
3333
s2k.c s2k.h \
3434
util.c \
3535
strerror.c \
36-
decrypt.c
36+
decrypt.c
3737

3838

3939
tgpgtest_SOURCES = tgpgtest.c $(tgpg_source)

src/cryptglue.c

+21-21
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
under the terms of the GNU General Public License as published by
88
the Free Software Foundation; either version 2 of the License, or
99
(at your option) any later version.
10-
10+
1111
TPGP is distributed in the hope that it will be useful, but WITHOUT
1212
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1313
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
1414
License for more details.
15-
15+
1616
You should have received a copy of the GNU General Public License
1717
along with this program; if not, write to the Free Software
18-
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
1919
MA 02110-1301, USA. */
2020

2121
#include <config.h>
@@ -25,7 +25,7 @@
2525
#include <assert.h>
2626
#include <errno.h>
2727

28-
#include <gcrypt.h>
28+
#include <gcrypt.h>
2929

3030
#include "tgpgdefs.h"
3131
#include "cryptglue.h"
@@ -34,7 +34,7 @@
3434
#define HASH_BUFFERSIZE 1024
3535

3636

37-
37+
3838
/* Map gpg-error codes to tgpg error codes. */
3939
static int
4040
maperr (gpg_error_t err)
@@ -44,7 +44,7 @@ maperr (gpg_error_t err)
4444

4545

4646

47-
47+
4848
/*
4949
5050
P U B K E Y F u n c t i o n s
@@ -96,15 +96,15 @@ _tgpg_pk_decrypt (int algo, mpidesc_t seckey, mpidesc_t encdat,
9696

9797
*r_plain = NULL;
9898
*r_plainlen = 0;
99-
99+
100100
if (algo == PK_ALGO_RSA)
101101
{
102102
rc = gcry_sexp_build (&s_data, NULL, "(enc-val(rsa(a%b)))",
103103
(int)encdat[0].valuelen, encdat[0].value);
104104
if (rc)
105105
return TGPG_INV_DATA;
106-
107-
rc = gcry_sexp_build (&s_key, NULL,
106+
107+
rc = gcry_sexp_build (&s_key, NULL,
108108
"(private-key(rsa(n%b)(e%b)(d%b)(p%b)(q%b)(u%b)))",
109109
(int)seckey[0].valuelen, seckey[0].value,
110110
(int)seckey[1].valuelen, seckey[1].value,
@@ -148,7 +148,7 @@ _tgpg_pk_decrypt (int algo, mpidesc_t seckey, mpidesc_t encdat,
148148
}
149149

150150

151-
151+
152152
/*
153153
154154
C I P H E R F u n c t i o n s
@@ -161,15 +161,15 @@ _tgpg_cipher_blocklen (int algo)
161161
{
162162
if (algo == CIPHER_ALGO_AES || algo == CIPHER_ALGO_AES192
163163
|| algo == CIPHER_ALGO_AES256)
164-
return 16;
164+
return 16;
165165
else
166166
return 8;
167167
}
168168

169169

170170
/* Core of the en- and decrypt functions. With DO_ENCRYPT true an
171171
encryption is done, otherwise it will decrypt. */
172-
static int
172+
static int
173173
cipher_endecrypt (int do_encrypt,
174174
int algo, enum cipher_modes mode,
175175
const void *key, size_t keylen,
@@ -186,7 +186,7 @@ cipher_endecrypt (int do_encrypt,
186186
case CIPHER_MODE_CFB: mode = GCRY_CIPHER_MODE_CFB; break;
187187
default: return TGPG_BUG;
188188
}
189-
189+
190190
err = gcry_cipher_open (&hd, algo, mode, 0);
191191
if (err)
192192
goto leave;
@@ -198,7 +198,7 @@ cipher_endecrypt (int do_encrypt,
198198
goto leave;
199199

200200
err = gcry_cipher_decrypt (hd, outbuf, outbufsize, inbuf, inbuflen);
201-
201+
202202
leave:
203203
gcry_cipher_close (hd);
204204
return maperr (err);
@@ -209,7 +209,7 @@ cipher_endecrypt (int do_encrypt,
209209
the algorithm to use, MODE, the encryption modus, KEY and KEYLEN
210210
describes the key and IV and IVLEN the IV. Returns an error
211211
code. */
212-
int
212+
int
213213
_tgpg_cipher_decrypt (int algo, enum cipher_modes mode,
214214
const void *key, size_t keylen,
215215
const void *iv, size_t ivlen,
@@ -225,7 +225,7 @@ _tgpg_cipher_decrypt (int algo, enum cipher_modes mode,
225225
the algorithm to use, MODE, the encryption modus, KEY and KEYLEN
226226
describes the key and IV and IVLEN the IV. Returns an error
227227
code. */
228-
int
228+
int
229229
_tgpg_cipher_encrypt (int algo, enum cipher_modes mode,
230230
const void *key, size_t keylen,
231231
const void *iv, size_t ivlen,
@@ -238,7 +238,7 @@ _tgpg_cipher_encrypt (int algo, enum cipher_modes mode,
238238

239239

240240

241-
241+
242242
/*
243243
244244
H A S H F u n c t i o n s
@@ -268,9 +268,9 @@ _tgpg_hash_open (hash_t *rctx, int algo, unsigned int flags)
268268
gpg_error_t err;
269269
gcry_md_hd_t hd;
270270
hash_t ctx;
271-
271+
272272
*rctx = NULL;
273-
273+
274274
err = gcry_md_open (&hd, algo,
275275
(flags & HASH_FLAG_SECURE)? GCRY_MD_FLAG_SECURE : 0);
276276
if (err)
@@ -320,7 +320,7 @@ _tgpg_hash_reset (hash_t ctx)
320320
gcry_md_reset (hd);
321321
ctx->bufferpos = 0;
322322

323-
}
323+
}
324324

325325
/* Hash LENGTH bytes from BUFFER into the hash context CTX. */
326326
void
@@ -335,7 +335,7 @@ _tgpg_hash_write (hash_t ctx, const void *buffer, size_t length)
335335
}
336336
if (buffer && length)
337337
gcry_md_write (hd, buffer, length);
338-
}
338+
}
339339

340340
/* Finalize the hash digest and return it. The returned value is
341341
valid as long as the context is valid and no hash_reset has been

0 commit comments

Comments
 (0)