Add copyright. Adjust CMake file to compile

This commit is contained in:
xibowen 2023-08-08 15:53:02 +08:00
parent 0b1dfa09b0
commit 41b1ebf395
571 changed files with 1506 additions and 42324 deletions

View File

@ -15,7 +15,8 @@ pkg_check_modules(PKGS REQUIRED
include_directories(${PKGS_INCLUDE_DIRS})
include_directories("${PROJECT_BINARY_DIR}")
include_directories("/usr/include/kysdk/kysdk-base")
link_directories("/usr/lib/${CMAKE_HOST_SYSTEM_PROCESSOR}-linux-gnu/kysdk/kysdk-base")
link_directories("/usr/lib/kysdk/kysdk-base")
link_directories("/usr/lib/${CMAKE_HOST_SYSTEM_PROCESSOR}-linux-gnu/")
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 11)

View File

@ -3,4 +3,4 @@ Description: kysdk system layer disk component
Requires: kysdk-log kysdk-utils libudev blkid
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkydiskinfo -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -3,4 +3,4 @@ Description: kysdk system layer filesystem component
Requires: kysdk-log kysdk-config libsystemd Qt5Core
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkyfilewatcher -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -3,4 +3,4 @@ Description: kysdk system layer hardware component
Requires: kysdk-log kysdk-config libsystemd libudev
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkyhw -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -3,4 +3,4 @@ Description: kysdk system layer location
Requires:glib-2.0
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkylocation -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -2,4 +2,4 @@ Name: libkysdk-net
Description: kysdk system layer netinfo
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkynetinfo -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -2,4 +2,4 @@ Name: libkysdk-ocr
Description: kysdk system ocr package component
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkyocr -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -2,4 +2,4 @@ Name: libkysdk-package
Description: kysdk system layer package component
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkypackage -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -3,4 +3,4 @@ Description: kysdk system layer powermanagement component
Requires: kysdk-log
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkypowermanagement -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -2,4 +2,4 @@ Name: libkysdk-proc
Description: kysdk system layer process component
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkyrtinfo -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -2,4 +2,4 @@ Name: libkysdk-realtime
Description: kysdk system layer realtime
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkyrealtimeinfo -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -3,4 +3,4 @@ Description: kysdk system layer sysinfo component
Requires: kysdk-log kysdk-utils libsystemd dbus-1 dbus-glib-1 gio-2.0 gio-unix-2.0 glib-2.0 gmodule-2.0 gmodule-export-2.0 gmodule-no-export-2.0 gobject-2.0 gthread-2.0
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkysysinfo -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -3,4 +3,4 @@ Description: kysdk system layer
Requires: kysdk-disk kysdk-filesystem kysdk-hardware kysdk-package kysdk-proc kysdk-sysinfo kysdk-location kysdk-net kysdk-realtime
Version: 2.0.0
Libs: -L/usr/lib/*/ -lkydiskinfo -lkyfilewatcher -lkyhw -lkypackage -lkysysinfo -lkyrtinfo -lkylocation -lkynetinfo -lkyrealtime -Wl,-rpath=/usr/lib/*/
Cflags: -I/usr/include/
Cflags: -I/usr/include/kysdk/kysdk-system/

View File

@ -14,4 +14,4 @@ install(TARGETS kydiskinfo
DESTINATION ${CMAKE_INSTALL_RPATH})
install(FILES libkydiskinfo.h
DESTINATION include/)
DESTINATION include/kysdk/kysdk-system)

View File

@ -14,7 +14,7 @@ install(TARGETS kyfilewatcher
DESTINATION ${CMAKE_INSTALL_RPATH})
install(FILES libkyfilewatcher.hpp
DESTINATION include/)
DESTINATION include/kysdk/kysdk-system)
install(FILES libkyfilewatcher_global.hpp
DESTINATION include/)
DESTINATION include/kysdk/kysdk-system)

View File

@ -27,6 +27,6 @@ HEADERS += \
# Default rules for deployment.
unix {
target.path = /usr/lib
target.path = /usr/lib/$$QMAKE_HOST.arch-linux-gnu
}
!isEmpty(target.path): INSTALLS += target

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#ifndef LIBKYBLUETOOTH_H
#define LIBKYBLUETOOTH_H

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#include "libkydisplay.h"
#include <stdlib.h>
#include <stdio.h>

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#ifndef LIBKYDISPLAY_H
#define LIBKYDISPLAY_H
@ -87,4 +109,4 @@ extern char* kdk_display_get_resources();
}
#endif
#endif
#endif

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#include <stdio.h>
#include <string.h>
#include <X11/extensions/Xrandr.h>

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#ifndef LIBKYEDID_H
#define LIBKYEDID_H
@ -109,4 +131,4 @@ extern inline void kdk_edid_freeall(char **ptr);
}
#endif
#endif
#endif

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <sensors/sensors.h>

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#ifndef LIBKYFAN_H
#define LIBKYFAN_H
@ -24,4 +46,4 @@ extern inline void kdk_fan_freeall(char **ptr);
}
#endif
#endif
#endif

View File

@ -1,4 +1,26 @@
#include "libkyhw.h"
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#include "libkyhw.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#ifndef KDK_SYSTEM_HW_ASSISTANT_H
#define KDK_SYSTEM_HW_ASSISTANT_H
#define ATTRSIZE 128

View File

@ -1,3 +1,25 @@
/*
* libkysdk-system's Library
*
* Copyright (C) 2022, Tianjin KYLIN Information Technology Co., Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this library. If not, see <https://www.gnu.org/licenses/>.
*
* Authors: Yunhe Liu <liuyunhe@kylinos.cn>
*
*/
#include "../libkybluetooth.h"
#include <stdio.h>
#include <stdlib.h>

View File

@ -205,7 +205,7 @@ set_target_properties(kyocr PROPERTIES VERSION 2.0.0 SOVERSION 1)
install(TARGETS kyocr LIBRARY DESTINATION ${CMAKE_INSTALL_RPATH})
install(FILES ${PROJECT_SOURCE_DIR}/libkyocr.hpp DESTINATION include/)
install(FILES ${PROJECT_SOURCE_DIR}/libkyocr.hpp DESTINATION include/kysdk/kysdk-system)
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/libs/amd64/paddle_inference/paddle/lib/libpaddle_inference.so")
install(FILES ${PROJECT_SOURCE_DIR}/libs/libpaddle_inference DESTINATION lib/${CMAKE_HOST_SYSTEM_PROCESSOR}-linux-gnu/libpaddle_inference.so)

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// 3way.h - originally written and placed in the public domain by Wei Dai
/// \file 3way.h
/// \brief Classes for the 3-Way block cipher

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// adler32.h - originally written and placed in the public domain by Wei Dai
/// \file adler32.h
/// \brief Class file for ADLER-32 checksum calculations

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// adv_simd.h - written and placed in the public domain by Jeffrey Walton
/// \file adv_simd.h
/// \brief Template for AdvancedProcessBlocks and SIMD processing

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// aes.h - originally written and placed in the public domain by Wei Dai
/// \file
/// \brief Class file for the AES cipher (Rijndael)
/// \details AES is a typdef for Rijndael classes. All key sizes are supported.

View File

@ -1,7 +1,3 @@
/* Header file for use with Cryptogam's ARMv4 AES. */
/* Also see http://www.openssl.org/~appro/cryptogams/ and */
/* https://wiki.openssl.org/index.php?title=Cryptogams_AES */
/*
* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
*
@ -17,6 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* Header file for use with Cryptogam's ARMv4 AES. */
/* Also see http://www.openssl.org/~appro/cryptogams/ and */
/* https://wiki.openssl.org/index.php?title=Cryptogams_AES */
#ifndef CRYPTOGAMS_AES_ARMV4_H
#define CRYPTOGAMS_AES_ARMV4_H

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// algebra.h - originally written and placed in the public domain by Wei Dai
/// \file algebra.h
/// \brief Classes for performing mathematics over different fields

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// algparam.h - originally written and placed in the public domain by Wei Dai
/// \file algparam.h
/// \brief Classes for working with NameValuePairs

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// arc4.h - originally written and placed in the public domain by Wei Dai
/// \file arc4.h
/// \brief Classes for ARC4 cipher
/// \since Crypto++ 3.1

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// argnames.h - originally written and placed in the public domain by Wei Dai
/// \file argnames.h
/// \brief Standard names for retrieving values by name when working with \p NameValuePairs

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// aria.h - written and placed in the public domain by Jeffrey Walton
/// \file aria.h
/// \brief Classes for the ARIA block cipher
/// \details The Crypto++ ARIA implementation is based on the 32-bit implementation by Aaram Yun

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// arm_simd.h - written and placed in public domain by Jeffrey Walton
/// \file arm_simd.h
/// \brief Support functions for ARM and vector operations

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// asn.h - originally written and placed in the public domain by Wei Dai
/// \file asn.h
/// \brief Classes and functions for working with ANS.1 objects

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// authenc.h - originally written and placed in the public domain by Wei Dai
/// \file
/// \brief Classes for authenticated encryption modes of operation
/// \details Authenticated encryption (AE) schemes combine confidentiality and authenticity

View File

@ -14,6 +14,9 @@
* limitations under the License.
*/
// base32.h - written and placed in the public domain by Frank Palazzolo, based on hex.cpp by Wei Dai
// extended hex alphabet added by JW in November, 2017.
/// \file base32.h
/// \brief Classes for Base32Encoder, Base32Decoder, Base32HexEncoder and Base32HexDecoder

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// base64.h - originally written and placed in the public domain by Wei Dai
/// \file base64.h
/// \brief Classes for the Base64Encoder, Base64Decoder, Base64URLEncoder and Base64URLDecoder

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// basecode.h - originally written and placed in the public domain by Wei Dai
/// \file
/// \brief Base classes for working with encoders and decoders.

View File

@ -14,6 +14,11 @@
* limitations under the License.
*/
// blake2.h - written and placed in the public domain by Jeffrey Walton
// and Zooko Wilcox-O'Hearn. Based on Aumasson, Neves,
// Wilcox-O'Hearn and Winnerlein's reference BLAKE2
// implementation at http://github.com/BLAKE2/BLAKE2.
/// \file blake2.h
/// \brief Classes for BLAKE2b and BLAKE2s message digests and keyed message digests
/// \details This implementation follows Aumasson, Neves, Wilcox-O'Hearn and Winnerlein's

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// blowfish.h - originally written and placed in the public domain by Wei Dai
/// \file blowfish.h
/// \brief Classes for the Blowfish block cipher

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// blumshub.h - originally written and placed in the public domain by Wei Dai
/// \file blumshub.h
/// \brief Classes for Blum Blum Shub generator

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// camellia.h - originally written and placed in the public domain by Wei Dai
/// \file camellia.h
/// \brief Classes for the Camellia block cipher

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// cast.h - originally written and placed in the public domain by Wei Dai
/// \file cast.h
/// \brief Classes for the CAST-128 and CAST-256 block ciphers
/// \since Crypto++ 2.2

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// cbcmac.h - originally written and placed in the public domain by Wei Dai
/// \file
/// \brief Classes for CBC MAC
/// \since Crypto++ 3.1

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// ccm.h - originally written and placed in the public domain by Wei Dai
/// \file ccm.h
/// \brief CCM block cipher mode of operation
/// \since Crypto++ 5.6.0

View File

@ -14,6 +14,11 @@
* limitations under the License.
*/
// chacha.h - written and placed in the public domain by Jeffrey Walton.
// Based on Wei Dai's Salsa20, Botan's SSE2 implementation,
// and Bernstein's reference ChaCha family implementation at
// http://cr.yp.to/chacha.html.
// The library added Bernstein's ChaCha classses at Crypto++ 5.6.4. The IETF
// uses a slightly different implementation than Bernstein, and the IETF
// ChaCha and XChaCha classes were added at Crypto++ 8.1. We wanted to maintain

View File

@ -14,6 +14,9 @@
* limitations under the License.
*/
// chachapoly.h - written and placed in the public domain by Jeffrey Walton
// RFC 8439, Section 2.8, AEAD Construction, http://tools.ietf.org/html/rfc8439
/// \file chachapoly.h
/// \brief ChaCha20/Poly1305-TLS AEAD scheme
/// \details ChaCha20Poly1305 is an authenticated encryption scheme that combines

View File

@ -14,6 +14,11 @@
* limitations under the License.
*/
// cham.h - written and placed in the public domain by Kim Sung Hee and Jeffrey Walton
// Based on "CHAM: A Family of Lightweight Block Ciphers for
// Resource-Constrained Devices" by Bonwook Koo, Dongyoung Roh,
// Hyeonjin Kim, Younghoon Jung, Dong-Geon Lee, and Daesung Kwon
/// \file cham.h
/// \brief Classes for the CHAM block cipher
/// \since Crypto++ 8.0

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// channels.h - originally written and placed in the public domain by Wei Dai
/// \file channels.h
/// \brief Classes for multiple named channels

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// cmac.h - originally written and placed in the public domain by Wei Dai
/// \file cmac.h
/// \brief Classes for CMAC message authentication code
/// \since Crypto++ 5.6.0

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// config.h - originally written and placed in the public domain by Wei Dai
/// \file config.h
/// \brief Library configuration file

View File

@ -14,6 +14,7 @@
* limitations under the License.
*/
// cpu.h - originally written and placed in the public domain by Wei Dai
// updated for ARM and PowerPC by Jeffrey Walton.
// updated to split CPU_Query() and CPU_Probe() by Jeffrey Walton.

View File

@ -12,7 +12,9 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
// crc.h - originally written and placed in the public domain by Wei Dai
/// \file crc.h
/// \brief Classes for CRC-32 and CRC-32C checksum algorithm

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// cryptlib.h - originally written and placed in the public domain by Wei Dai
/// \file cryptlib.h
/// \brief Abstract base classes that provide a uniform interface to this library.

View File

@ -14,6 +14,9 @@
* limitations under the License.
*/
// darn.h - written and placed in public domain by Jeffrey Walton
// DARN requires POWER9/ISA 3.0.
// At the moment only GCC 7.0 (and above) seems to support __builtin_darn()
// and __builtin_darn_32(). Clang 7.0 does not provide them, but it does
// support assembly instructions. XLC is unknown, but there are no hits when

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// default.h - originally written and placed in the public domain by Wei Dai
/// \file default.h
/// \brief Classes for DefaultEncryptor, DefaultDecryptor, DefaultEncryptorWithMAC and DefaultDecryptorWithMAC

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// des.h - originally written and placed in the public domain by Wei Dai
/// \file des.h
/// \brief Classes for DES, 2-key Triple-DES, 3-key Triple-DES and DESX

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// dh.h - originally written and placed in the public domain by Wei Dai
/// \file dh.h
/// \brief Classes for Diffie-Hellman key exchange

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// dh2.h - originally written and placed in the public domain by Wei Dai
/// \file dh2.h
/// \brief Classes for Unified Diffie-Hellman key exchange
/// \since Crypto++ 3.0

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// dll.h - originally written and placed in the public domain by Wei Dai
/// \file dll.h
/// \brief Functions and definitions required for building the FIPS-140 DLL on Windows

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// dmac.h - originally written and placed in the public domain by Wei Dai
/// \file dmac.h
/// \brief Classes for DMAC message authentication code

View File

@ -14,6 +14,12 @@
* limitations under the License.
*/
// donna.h - written and placed in public domain by Jeffrey Walton
// Crypto++ specific implementation wrapped around Andrew
// Moon's public domain curve25519-donna and ed25519-donna,
// https://github.com/floodyberry/curve25519-donna and
// https://github.com/floodyberry/ed25519-donna.
// The curve25519 and ed25519 source files multiplex different repos and
// architectures using namespaces. The repos are Andrew Moon's
// curve25519-donna and ed25519-donna. The architectures are 32-bit, 64-bit

View File

@ -14,6 +14,12 @@
* limitations under the License.
*/
// donna_32.h - written and placed in public domain by Jeffrey Walton
// Crypto++ specific implementation wrapped around Andrew
// Moon's public domain curve25519-donna and ed25519-donna,
// https://github.com/floodyberry/curve25519-donna and
// https://github.com/floodyberry/ed25519-donna.
// This source file multiplexes two different repos using namespaces. This
// was a little easier from a project management standpoint. We only need
// two files per architecture at the expense of namespaces and bloat.

View File

@ -14,6 +14,12 @@
* limitations under the License.
*/
// donna_64.h - written and placed in public domain by Jeffrey Walton
// Crypto++ specific implementation wrapped around Andrew
// Moon's public domain curve25519-donna and ed25519-donna,
// https://github.com/floodyberry/curve25519-donna and
// https://github.com/floodyberry/ed25519-donna.
// This source file multiplexes two different repos using namespaces. This
// was a little easier from a project management standpoint. We only need
// two files per architecture at the expense of namespaces and bloat.

View File

@ -14,6 +14,12 @@
* limitations under the License.
*/
// donna_sse.h - written and placed in public domain by Jeffrey Walton
// Crypto++ specific implementation wrapped around Andrew
// Moon's public domain curve25519-donna and ed25519-donna,
// https://github.com/floodyberry/curve25519-donna and
// https://github.com/floodyberry/ed25519-donna.
// This source file multiplexes two different repos using namespaces. This
// was a little easier from a project management standpoint. We only need
// two files per architecture at the expense of namespaces and bloat.

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// drbg.h - written and placed in public domain by Jeffrey Walton.
/// \file drbg.h
/// \brief Classes for NIST DRBGs from SP 800-90A
/// \sa <A HREF="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf">Recommendation

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// dsa.h - originally written and placed in the public domain by Wei Dai
/// \file dsa.h
/// \brief Classes for the DSA signature algorithm

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// eax.h - originally written and placed in the public domain by Wei Dai
/// \file eax.h
/// \brief EAX block cipher mode of operation

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// ec2n.h - originally written and placed in the public domain by Wei Dai
/// \file ec2n.h
/// \brief Classes for Elliptic Curves over binary fields

View File

@ -14,6 +14,7 @@
* limitations under the License.
*/
// eccrypto.h - originally written and placed in the public domain by Wei Dai
// deterministic signatures added by by Douglas Roark
/// \file eccrypto.h

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// ecp.h - originally written and placed in the public domain by Wei Dai
/// \file ecp.h
/// \brief Classes for Elliptic Curves over prime fields

View File

@ -14,6 +14,9 @@
* limitations under the License.
*/
// ecpoint.h - written and placed in the public domain by Jeffrey Walton
// Data structures moved from ecp.h and ec2n.h. Added EncodedPoint interface
/// \file ecpoint.h
/// \brief Classes for Elliptic Curve points
/// \since Crypto++ 6.0

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// elgamal.h - originally written and placed in the public domain by Wei Dai
/// \file elgamal.h
/// \brief Classes and functions for ElGamal key agreement and encryption schemes

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// emsa2.h - originally written and placed in the public domain by Wei Dai
/// \file emsa2.h
/// \brief Classes and functions for various padding schemes used in public key algorithms

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// eprecomp.h - originally written and placed in the public domain by Wei Dai
/// \file eprecomp.h
/// \brief Classes for precomputation in a group

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// esign.h - originally written and placed in the public domain by Wei Dai
/// \file esign.h
/// \brief Classes providing ESIGN signature schemes as defined in IEEE P1363a
/// \since Crypto++ 5.0

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// factory.h - originally written and placed in the public domain by Wei Dai
/// \file factory.h
/// \brief Classes and functions for registering and locating library objects

View File

@ -14,6 +14,9 @@
* limitations under the License.
*/
// fhmqv.h - written and placed in the public domain by Jeffrey Walton, Ray Clayton and Uri Blumenthal
// Shamelessly based upon Wei Dai's MQV source files
#ifndef CRYPTOPP_FHMQV_H
#define CRYPTOPP_FHMQV_H

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// files.h - originally written and placed in the public domain by Wei Dai
/// \file files.h
/// \brief Classes providing file-based library services
/// \since Crypto++ 1.0

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// filters.h - originally written and placed in the public domain by Wei Dai
/// \file filters.h
/// \brief Implementation of BufferedTransformation's attachment interface.

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// fips140.h - originally written and placed in the public domain by Wei Dai
/// \file fips140.h
/// \brief Classes and functions for the FIPS 140-2 validated library
/// \details The FIPS validated library is only available on Windows as a DLL. Once compiled,

View File

@ -1,18 +1,18 @@
/*
* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef CRYPTOPP_FLTRIMPL_H
#define CRYPTOPP_FLTRIMPL_H

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// gcm.h - originally written and placed in the public domain by Wei Dai
/// \file gcm.h
/// \brief GCM block cipher mode of operation
/// \since Crypto++ 5.6.0

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// gf256.h - originally written and placed in the public domain by Wei Dai
/// \file gf256.h
/// \brief Classes and functions for schemes over GF(256)

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// gf2_32.h - originally written and placed in the public domain by Wei Dai
/// \file gf2_32.h
/// \brief Classes and functions for schemes over GF(2^32)

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// gf2n.h - originally written and placed in the public domain by Wei Dai
/// \file gf2n.h
/// \brief Classes and functions for schemes over GF(2^n)

View File

@ -14,6 +14,7 @@
* limitations under the License.
*/
// gfpcrypt.h - originally written and placed in the public domain by Wei Dai
// RFC6979 deterministic signatures added by Douglas Roark
// ECGDSA added by Jeffrey Walton

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// gost.h - originally written and placed in the public domain by Wei Dai
/// \file gost.h
/// \brief Classes for the GIST block cipher

View File

@ -14,6 +14,8 @@
* limitations under the License.
*/
// gzip.h - originally written and placed in the public domain by Wei Dai
/// \file gzip.h
/// \brief GZIP compression and decompression (RFC 1952)

View File

@ -13,7 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// hashfwd.h - written and placed in the public domain by Jeffrey Walton
/// \file hashfwd.h
/// \brief Forward declarations for hash functions used in signature encoding methods

View File

@ -14,6 +14,12 @@
* limitations under the License.
*/
// hc128.h - written and placed in the public domain by Jeffrey Walton
// based on public domain code by Hongjun Wu.
//
// The reference materials and source files are available at
// The eSTREAM Project, http://www.ecrypt.eu.org/stream/e2-hc128.html.
/// \file hc128.h
/// \brief Classes for HC-128 stream cipher
/// \sa <A HREF="http://www.ecrypt.eu.org/stream/e2-hc128.html">The

View File

@ -14,6 +14,12 @@
* limitations under the License.
*/
// hc256.h - written and placed in the public domain by Jeffrey Walton
// based on public domain code by Hongjun Wu.
//
// The reference materials and source files are available at
// The eSTREAM Project, http://www.ecrypt.eu.org/stream/hc256.html.
/// \file hc256.h
/// \brief Classes for HC-256 stream cipher
/// \sa <A HREF="http://www.ecrypt.eu.org/stream/hc256.html">The

View File

@ -13,7 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// hex.h - originally written and placed in the public domain by Wei Dai
/// \file hex.h
/// \brief Classes for HexEncoder and HexDecoder

View File

@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// hight.h - written and placed in the public domain by Kim Sung Hee and Jeffrey Walton
// Based on "HIGHT: A New Block Cipher Suitable for Low-Resource Device"
// by Deukjo Hong, Jaechul Sung, Seokhie Hong, Jongin Lim, Sangjin Lee,
// Bon-Seok Koo, Changhoon Lee, Donghoon Chang, Jesang Lee, Kitae Jeong,

Some files were not shown because too many files have changed in this diff Show More