Skip to content

Commit f3e9493

Browse files
committed
add license declare in source files
1 parent cbd1dd0 commit f3e9493

29 files changed

+676
-102
lines changed

include/zcrypto/aes.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/base64.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/hash.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/hashlib.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/md5.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/oaep.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/rsa.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/sha1.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/sha256.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/sm3.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/sm4.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

include/zcrypto/utils.h

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#pragma once
222

323
#ifdef __cplusplus

src/aes.c

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#include "zcrypto/aes.h"
222
#include "zcrypto/utils.h"
323

src/base64.c

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#include "zcrypto/base64.h"
222
#include <stdint.h>
323

src/hash.c

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#include "zcrypto/hash.h"
222
#include "zcrypto/utils.h"
323
#include <assert.h>

src/hashlib.c

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
/*
2+
Copyright (C) 2020-2023 [email protected]
3+
4+
This file is part of zcrypto.
5+
6+
zcrypto is free software; you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation; either version 3, or (at your option) any later
9+
version.
10+
11+
zcrypto is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with zcrypto; see the file LICENSE. If not see
18+
<http://www.gnu.org/licenses/>.
19+
*/
20+
121
#include "zcrypto/hashlib.h"
222
#include "zcrypto/hash.h"
323
#include "zcrypto/md5.h"

0 commit comments

Comments
 (0)