Skip to content

Commit d8d7a83

Browse files
authored
Merge pull request #539 from libtom/relicense
Relicense
2 parents 6b85be4 + 3630bee commit d8d7a83

File tree

548 files changed

+1120
-6591
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

548 files changed

+1120
-6591
lines changed

LICENSE

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1-
LibTomCrypt is licensed under DUAL licensing terms.
2-
3-
Choose and use the license of your needs.
4-
5-
[LICENSE #1]
6-
7-
LibTomCrypt is public domain. As should all quality software be.
8-
9-
Tom St Denis
10-
11-
[/LICENSE #1]
12-
13-
[LICENSE #2]
14-
15-
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
16-
Version 2, December 2004
17-
18-
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
19-
20-
Everyone is permitted to copy and distribute verbatim or modified
21-
copies of this license document, and changing it is allowed as long
22-
as the name is changed.
23-
24-
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
25-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
26-
27-
0. You just DO WHAT THE FUCK YOU WANT TO.
28-
29-
[/LICENSE #2]
1+
The LibTom license
2+
3+
This is free and unencumbered software released into the public domain.
4+
5+
Anyone is free to copy, modify, publish, use, compile, sell, or
6+
distribute this software, either in source code form or as a compiled
7+
binary, for any purpose, commercial or non-commercial, and by any
8+
means.
9+
10+
In jurisdictions that recognize copyright laws, the author or authors
11+
of this software dedicate any and all copyright interest in the
12+
software to the public domain. We make this dedication for the benefit
13+
of the public at large and to the detriment of our heirs and
14+
successors. We intend this dedication to be an overt act of
15+
relinquishment in perpetuity of all present and future rights to this
16+
software under copyright law.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
22+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.
25+
26+
For more information, please refer to <http://unlicense.org/>

demos/aesgcm.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2-
*
3-
* LibTomCrypt is a library that provides various cryptographic
4-
* algorithms in a highly modular and flexible manner.
5-
*
6-
* The library is free for all purposes without any express
7-
* guarantee it works.
8-
*/
1+
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2+
/* SPDX-License-Identifier: Unlicense */
93

104
/**
115
@file aesgcm.c
@@ -152,7 +146,3 @@ int main(int argc, char **argv)
152146

153147
return ret;
154148
}
155-
156-
/* ref: $Format:%D$ */
157-
/* git commit: $Format:%H$ */
158-
/* commit time: $Format:%ai$ */

demos/constants.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2-
*
3-
* LibTomCrypt is a library that provides various cryptographic
4-
* algorithms in a highly modular and flexible manner.
5-
*
6-
* The library is free for all purposes without any express
7-
* guarantee it works.
8-
*/
1+
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2+
/* SPDX-License-Identifier: Unlicense */
93
#include "tomcrypt.h"
104

115
#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
@@ -81,7 +75,3 @@ int main(int argc, char **argv)
8175
return 0;
8276
}
8377

84-
85-
/* ref: $Format:%D$ */
86-
/* git commit: $Format:%H$ */
87-
/* commit time: $Format:%ai$ */

demos/gcm-file/gcm_file.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2-
*
3-
* LibTomCrypt is a library that provides various cryptographic
4-
* algorithms in a highly modular and flexible manner.
5-
*
6-
* The library is free for all purposes without any express
7-
* guarantee it works.
8-
*/
1+
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2+
/* SPDX-License-Identifier: Unlicense */
93

104
#include "tomcrypt.h"
115

@@ -88,7 +82,3 @@ int gcm_file( int cipher,
8882
#endif
8983
#endif
9084

91-
92-
/* ref: $Format:%D$ */
93-
/* git commit: $Format:%H$ */
94-
/* commit time: $Format:%ai$ */

demos/gcm-file/gcm_filehandle.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2-
*
3-
* LibTomCrypt is a library that provides various cryptographic
4-
* algorithms in a highly modular and flexible manner.
5-
*
6-
* The library is free for all purposes without any express
7-
* guarantee it works.
8-
*/
1+
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2+
/* SPDX-License-Identifier: Unlicense */
93

104
#include "tomcrypt.h"
115

@@ -196,7 +190,3 @@ int gcm_filehandle( int cipher,
196190
#endif
197191
#endif
198192

199-
200-
/* ref: $Format:%D$ */
201-
/* git commit: $Format:%H$ */
202-
/* commit time: $Format:%ai$ */

demos/hashsum.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2-
*
3-
* LibTomCrypt is a library that provides various cryptographic
4-
* algorithms in a highly modular and flexible manner.
5-
*
6-
* The library is free for all purposes without any express
7-
* guarantee it works.
8-
*/
1+
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2+
/* SPDX-License-Identifier: Unlicense */
93

104
/*
115
* Written by Daniel Richards <kyhwana@world-net.co.nz> 6/7/2002
@@ -294,7 +288,3 @@ int main(int argc, char **argv)
294288
}
295289
return EXIT_SUCCESS;
296290
}
297-
298-
/* ref: $Format:%D$ */
299-
/* git commit: $Format:%H$ */
300-
/* commit time: $Format:%ai$ */

demos/ltcrypt.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2-
*
3-
* LibTomCrypt is a library that provides various cryptographic
4-
* algorithms in a highly modular and flexible manner.
5-
*
6-
* The library is free for all purposes without any express
7-
* guarantee it works.
8-
*/
1+
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2+
/* SPDX-License-Identifier: Unlicense */
93

104
/* encrypt V1.1 Fri Oct 18 04:28:03 NZDT 2002 */
115
/* File de/encryption, using libtomcrypt */
@@ -199,7 +193,3 @@ int main(int argc, char *argv[])
199193
}
200194
return 0;
201195
}
202-
203-
/* ref: $Format:%D$ */
204-
/* git commit: $Format:%H$ */
205-
/* commit time: $Format:%ai$ */

demos/openssl-enc.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2-
*
3-
* LibTomCrypt is a library that provides various cryptographic
4-
* algorithms in a highly modular and flexible manner.
5-
*
6-
* The library is free for all purposes without any express
7-
* guarantee it works.
8-
*/
1+
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2+
/* SPDX-License-Identifier: Unlicense */
93

104
/*
115
* Demo to do the rough equivalent of:
@@ -362,7 +356,3 @@ int main(int argc, char *argv[]) {
362356
fclose(infd); fclose(outfd);
363357
return 0;
364358
}
365-
366-
/* ref: $Format:%D$ */
367-
/* git commit: $Format:%H$ */
368-
/* commit time: $Format:%ai$ */

demos/sizes.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2-
*
3-
* LibTomCrypt is a library that provides various cryptographic
4-
* algorithms in a highly modular and flexible manner.
5-
*
6-
* The library is free for all purposes without any express
7-
* guarantee it works.
8-
*/
1+
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2+
/* SPDX-License-Identifier: Unlicense */
93

104
#include "tomcrypt.h"
115

@@ -75,7 +69,3 @@ int main(int argc, char **argv)
7569
}
7670
return 0;
7771
}
78-
79-
/* ref: $Format:%D$ */
80-
/* git commit: $Format:%H$ */
81-
/* commit time: $Format:%ai$ */

demos/small.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
2-
*
3-
* LibTomCrypt is a library that provides various cryptographic
4-
* algorithms in a highly modular and flexible manner.
5-
*
6-
* The library is free for all purposes without any express
7-
* guarantee it works.
8-
*/
1+
/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
2+
/* SPDX-License-Identifier: Unlicense */
93
/* small demo app that just includes a cipher/hash/prng */
104
#include <tomcrypt.h>
115

@@ -16,7 +10,3 @@ int main(void)
1610
register_hash(&sha256_desc);
1711
return 0;
1812
}
19-
20-
/* ref: $Format:%D$ */
21-
/* git commit: $Format:%H$ */
22-
/* commit time: $Format:%ai$ */

0 commit comments

Comments
 (0)