Add SPDX headers and references to all source files

This commit is contained in:
Namhyeon Go 2025-05-25 15:52:46 +09:00
parent ec2681b43e
commit a0e29aa491
8 changed files with 57 additions and 73 deletions

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Catswords")]
[assembly: AssemblyProduct("WelsonJS")]
[assembly: AssemblyCopyright("Catswords OSS, GPLv3 or Ms-RL")]
[assembly: AssemblyCopyright("2025 Catswords OSS and WelsonJS Contributors")]
[assembly: AssemblyTrademark("WelsonJS")]
[assembly: AssemblyCulture("")]
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.7.54")]
[assembly: AssemblyFileVersion("0.2.7.54")]
[assembly: AssemblyVersion("0.2.7.55")]
[assembly: AssemblyFileVersion("0.2.7.55")]

View File

@ -1,6 +1,6 @@
// CitiQuery.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX - FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System;

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Catswords")]
[assembly: AssemblyProduct("WelsonJS")]
[assembly: AssemblyCopyright("Catswords OSS, GPLv3 or Ms-RL")]
[assembly: AssemblyCopyright("2025 Catswords OSS and WelsonJS Contributors")]
[assembly: AssemblyTrademark("WelsonJS")]
[assembly: AssemblyCulture("")]
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.7.54")]
[assembly: AssemblyFileVersion("0.2.7.54")]
[assembly: AssemblyVersion("0.2.7.55")]
[assembly: AssemblyFileVersion("0.2.7.55")]

View File

@ -1,34 +1,10 @@
/*
* WelsonJS.Toolkit: WelsonJS native component
*
* filename:
* LEA.cs
*
* description:
* LEA(KS X 3246:2016) cryptography algorithm implementation (Experimental)
*
* website:
* - https://github.com/gnh1201/welsonjs
* - https://catswords.social/@catswords_oss
* - https://teams.live.com/l/community/FEACHncAhq8ldnojAI
* - https://discord.gg/XKG5CjtXEj
*
* authors:
* - Namhyeon Go (@gnh1201) <abuse@catswords.net>
* - KISA(Korea Internet & Security Agency) (kisa.or.kr)
* - National Security Research Institute (NSRI)
*
* references:
* - https://seed.kisa.or.kr/kisa/Board/20/detailView.do
* - https://committee.tta.or.kr/data/standard_view.jsp?order=t.kor_standard&by=asc&pk_num=TTAK.KO-12.0223&commit_code=TC5
* - https://ics.catswords.net/LEA%20A%20128-Bit%20Block%20Cipher%20Datasheets-Korean.pdf
* - https://ics.catswords.net/LEA%20A%20128-Bit%20Block%20Cipher%20for%20Fast%20Encryption%20on%20Common%20Processors-English.pdf
* - https://ics.catswords.net/LEA-sourcecode-explanation.pdf
*
* license:
* GPLv3 or MS-RL(Microsoft Reciprocal License)
*
*/
// LEA.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
// LEA(KS X 3246:2016) cryptography algorithm implementation (Experimental)
//
using System;
using System.Security.Cryptography;
using System.Text;
@ -347,3 +323,16 @@ namespace WelsonJS.Cryptography
}
}
}
/* References:
* [1] KISA(Korea Internet & Security Agency) - LEA
* https://seed.kisa.or.kr/kisa/Board/20/detailView.do
* [2] TTA(Telecommunications Technology Association) - TTAK.KO-12.0223, TTA표준화
* https://committee.tta.or.kr/data/standard_view.jsp?order=t.kor_standard&by=asc&pk_num=TTAK.KO-12.0223&commit_code=TC5
* [3] NSRI(National Security Research Institute) - 128 LEA
* https://ics.catswords.net/LEA%20A%20128-Bit%20Block%20Cipher%20Datasheets-Korean.pdf
* [4] ETRI, Pusan National University - LEA: A 128-Bit Block Cipher for Fast Encryption on Common Processors
* https://ics.catswords.net/LEA%20A%20128-Bit%20Block%20Cipher%20for%20Fast%20Encryption%20on%20Common%20Processors-English.pdf
* [5] NSRI(National Security Research Institute) - LEA
* https://ics.catswords.net/LEA-sourcecode-explanation.pdf
*/

View File

@ -1,33 +1,10 @@
/*
* WelsonJS.Toolkit: WelsonJS native component
*
* filename:
* SEED.cs
*
* description:
* SEED(ISO/IEC 18033-3) cryptography algorithm implementation (Experimental)
*
* website:
* - https://github.com/gnh1201/welsonjs
* - https://catswords.social/@catswords_oss
* - https://teams.live.com/l/community/FEACHncAhq8ldnojAI
* - https://discord.gg/XKG5CjtXEj
*
* author:
* - Namhyeon Go (@gnh1201) <abuse@catswords.net>
* - KISA(Korea Internet & Security Agency) (kisa.or.kr)
*
* references:
* - https://seed.kisa.or.kr/kisa/Board/17/detailView.do
* - https://www.iso.org/standard/54531.html
* - https://ics.catswords.net/SEED%2B128_Specification_english_M.pdf
* - https://ics.catswords.net/SEED_Algorithm_Specification_korean_M.pdf
* - https://ics.catswords.net/SEED_sourcecode_explanation_korean.pdf
*
* license:
* GPLv3 or MS-RL(Microsoft Reciprocal License)
*
*/
// SEED.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
// SEED(ISO/IEC 18033-3) cryptography algorithm implementation (Experimental)
//
using System;
namespace WelsonJS.Cryptography
@ -753,3 +730,16 @@ namespace WelsonJS.Cryptography
}
}
}
/* References:
* [1] KISA(Korea Internet & Security Agency) - SEED
* https://seed.kisa.or.kr/kisa/algorithm/EgovSeedInfo.do
* [2] ISO - ISO/IEC 18033-3:2010 - Information technology Security techniques Encryption algorithms - Part 3: Block ciphers
* https://www.iso.org/standard/54531.html
* [3] KISA(Korea Internet & Security Agency) - SEED 128 Algorithm Specification
* https://ics.catswords.net/SEED%2B128_Specification_english_M.pdf
* [4] KISA(Korea Internet & Security Agency) - SEED 128
* https://ics.catswords.net/SEED_Algorithm_Specification_korean_M.pdf
* [5] KISA(Korea Internet & Security Agency) - SEED
* https://ics.catswords.net/SEED_sourcecode_explanation_korean.pdf
*/

View File

@ -10,7 +10,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Catswords")]
[assembly: AssemblyProduct("WelsonJS")]
[assembly: AssemblyCopyright("Catswords OSS, GPLv3 or Ms-RL")]
[assembly: AssemblyCopyright("2025 Catswords OSS and WelsonJS Contributors")]
[assembly: AssemblyTrademark("WelsonJS")]
[assembly: AssemblyCulture("")]
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를
// 기본값으로 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.7.54")]
[assembly: AssemblyFileVersion("0.2.7.54")]
[assembly: AssemblyVersion("0.2.7.55")]
[assembly: AssemblyFileVersion("0.2.7.55")]

View File

@ -1,4 +1,9 @@
using System.Collections.Generic;
// KVSerializer.cs
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2025 Catswords OSS and WelsonJS Contributors
// https://github.com/gnh1201/welsonjs
//
using System.Collections.Generic;
using System.Text;
namespace WelsonJS.Serialization