Skip to content

Commit

Permalink
Add Apache 2.0 and MIT License to XMSS (#1662)
Browse files Browse the repository at this point in the history
* Add Apache 2.0 and MIT License to XMSS
  • Loading branch information
ducnguyen-sb authored and SWilson4 committed Apr 12, 2024
1 parent 9673476 commit 7ac7635
Show file tree
Hide file tree
Showing 56 changed files with 75 additions and 34 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ Karolin Varner
Sebastian Verschoor (University of Waterloo)
Thom Wiggers (Radboud University)
Dindyal Jeevesh Rishi (University of Mauritius / cyberstorm.mu)
Duc Tri Nguyen

See additional contributors at https://github.com/open-quantum-safe/liboqs/graphs/contributors
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-License-Identifier: MIT
# SPDX-License-Identifier: Apache-2.0 AND MIT

set(_XMSS_OBJS "")

Expand Down
12 changes: 12 additions & 0 deletions src/sig_stfl/xmss/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## License

This XMSS reference implementation is Copyright (c) 2024 SandboxAQ and licensed under both the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt) and [MIT License](LICENSE-MIT).

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

This XMSS reference implementation is based on the [XMSS reference implementation written by Andreas Hülsing and Joost Rijneveld](https://github.com/XMSS/xmss-reference#license) provided under the CC0 1.0 Universal Public Domain Dedication.


## Disclaimer

The software and documentation are provided "as is" and SandboxAQ hereby disclaims all warranties, whether express, implied, statutory, or otherwise. SandboxAQ specifically disclaims, without limitation, all implied warranties of merchantability, fitness for a particular purpose, title, and non-infringement, and all warranties arising from course of dealing, usage, or trade practice. SandboxAQ makes no warranty of any kind that the software and documentation, or any products or results of the use thereof, will meet any person's requirements, operate without interruption, achieve any intended result, be compatible or work with any software, system or other services, or be secure, accurate, complete, free of harmful code, or error-free.
9 changes: 9 additions & 0 deletions src/sig_stfl/xmss/LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright © 2024 SandboxAQ

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/core_hash.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <oqs/sha2.h>
#include <oqs/sha3.h>
#include "core_hash.h"
Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/core_hash.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef CORE_HASH
#define CORE_HASH

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/hash.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <stdint.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/hash.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef XMSS_HASH_H
#define XMSS_HASH_H

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/hash_address.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <stdint.h>
#include "hash_address.h"

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/hash_address.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef XMSS_HASH_ADDRESS_H
#define XMSS_HASH_ADDRESS_H

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/namespace.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef XMSS_NAMESPACE_H
#define XMSS_NAMESPACE_H

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/params.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <stdint.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/params.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef XMSS_PARAMS_H
#define XMSS_PARAMS_H

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/utils.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include "utils.h"

/**
Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/utils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef XMSS_UTILS_H
#define XMSS_UTILS_H

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/wots.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <stdint.h>
#include <string.h>

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/wots.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef XMSS_WOTS_H
#define XMSS_WOTS_H

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/xmss.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <stdint.h>

#include "params.h"
Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/xmss.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef XMSS_H
#define XMSS_H

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/xmss_commons.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/xmss_commons.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef XMSS_COMMONS_H
#define XMSS_COMMONS_H

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/xmss_core.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/xmss_core.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#ifndef XMSS_CORE_H
#define XMSS_CORE_H

Expand Down
1 change: 1 addition & 0 deletions src/sig_stfl/xmss/external/xmss_core_fast.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#ifndef OQS_SIG_STFL_XMSS_H
#define OQS_SIG_STFL_XMSS_H
Expand Down
3 changes: 1 addition & 2 deletions src/sig_stfl/xmss/sig_stfl_xmss_functions.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MIT

// SPDX-License-Identifier: Apache-2.0 AND MIT
#include <string.h>
#include <stdlib.h>

Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_secret_key_functions.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <oqs/oqs.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_sha256_h10.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_sha256_h16.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_sha256_h20.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_sha512_h10.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_sha512_h16.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_sha512_h20.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_shake128_h10.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_shake128_h16.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_shake128_h20.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_shake256_h10.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_shake256_h16.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmss_shake256_h20.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_functions.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_sha256_h20_2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_sha256_h20_4.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_sha256_h40_2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_sha256_h40_4.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_sha256_h40_8.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_sha256_h60_12.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_sha256_h60_3.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_sha256_h60_6.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_shake128_h20_2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_shake128_h20_4.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_shake128_h40_2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_shake128_h40_4.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_shake128_h40_8.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_shake128_h60_12.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_shake128_h60_3.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sig_stfl/xmss/sig_stfl_xmssmt_shake128_h60_6.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: Apache-2.0 AND MIT

#include <string.h>
#include <stdlib.h>
Expand Down

0 comments on commit 7ac7635

Please sign in to comment.