hane 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/binding.gyp +87 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +1 -0
- package/package.json +33 -0
- package/src/native/addon.cc +231 -0
- package/src/native/zsign_driver.cc +87 -0
- package/src/native/zsign_driver.h +38 -0
- package/vendor/zlib/.cmake-format.yaml +245 -0
- package/vendor/zlib/.github/workflows/c-std.yml +230 -0
- package/vendor/zlib/.github/workflows/cmake.yml +112 -0
- package/vendor/zlib/.github/workflows/configure.yml +136 -0
- package/vendor/zlib/.github/workflows/fuzz.yml +25 -0
- package/vendor/zlib/.github/workflows/msys-cygwin.yml +77 -0
- package/vendor/zlib/BUILD.bazel +134 -0
- package/vendor/zlib/CMakeLists.txt +330 -0
- package/vendor/zlib/ChangeLog +1621 -0
- package/vendor/zlib/FAQ +367 -0
- package/vendor/zlib/INDEX +68 -0
- package/vendor/zlib/LICENSE +22 -0
- package/vendor/zlib/MODULE.bazel +9 -0
- package/vendor/zlib/Makefile.in +419 -0
- package/vendor/zlib/README +115 -0
- package/vendor/zlib/README-cmake.md +83 -0
- package/vendor/zlib/adler32.c +164 -0
- package/vendor/zlib/amiga/Makefile.pup +69 -0
- package/vendor/zlib/amiga/Makefile.sas +68 -0
- package/vendor/zlib/compress.c +75 -0
- package/vendor/zlib/configure +966 -0
- package/vendor/zlib/contrib/README.contrib +57 -0
- package/vendor/zlib/contrib/ada/buffer_demo.adb +106 -0
- package/vendor/zlib/contrib/ada/mtest.adb +156 -0
- package/vendor/zlib/contrib/ada/read.adb +156 -0
- package/vendor/zlib/contrib/ada/readme.txt +65 -0
- package/vendor/zlib/contrib/ada/test.adb +463 -0
- package/vendor/zlib/contrib/ada/zlib-streams.adb +225 -0
- package/vendor/zlib/contrib/ada/zlib-streams.ads +114 -0
- package/vendor/zlib/contrib/ada/zlib-thin.adb +142 -0
- package/vendor/zlib/contrib/ada/zlib-thin.ads +450 -0
- package/vendor/zlib/contrib/ada/zlib.adb +701 -0
- package/vendor/zlib/contrib/ada/zlib.ads +328 -0
- package/vendor/zlib/contrib/ada/zlib.gpr +20 -0
- package/vendor/zlib/contrib/blast/Makefile +8 -0
- package/vendor/zlib/contrib/blast/README +4 -0
- package/vendor/zlib/contrib/blast/blast.c +466 -0
- package/vendor/zlib/contrib/blast/blast.h +83 -0
- package/vendor/zlib/contrib/blast/test.pk +0 -0
- package/vendor/zlib/contrib/blast/test.txt +1 -0
- package/vendor/zlib/contrib/delphi/ZLib.pas +557 -0
- package/vendor/zlib/contrib/delphi/ZLibConst.pas +11 -0
- package/vendor/zlib/contrib/delphi/readme.txt +76 -0
- package/vendor/zlib/contrib/delphi/zlibd32.mak +99 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs +58 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs +202 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs +83 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/CodecBase.cs +198 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/Deflater.cs +106 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/DotZLib.cs +288 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/DotZLib.csproj +141 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/GZipStream.cs +301 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/Inflater.cs +105 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib/UnitTests.cs +274 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.build +33 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.chm +0 -0
- package/vendor/zlib/contrib/dotzlib/DotZLib.sln +21 -0
- package/vendor/zlib/contrib/dotzlib/LICENSE_1_0.txt +23 -0
- package/vendor/zlib/contrib/dotzlib/readme.txt +58 -0
- package/vendor/zlib/contrib/gcc_gvmat64/gvmat64.S +574 -0
- package/vendor/zlib/contrib/infback9/README +1 -0
- package/vendor/zlib/contrib/infback9/infback9.c +603 -0
- package/vendor/zlib/contrib/infback9/infback9.h +37 -0
- package/vendor/zlib/contrib/infback9/inffix9.h +107 -0
- package/vendor/zlib/contrib/infback9/inflate9.h +47 -0
- package/vendor/zlib/contrib/infback9/inftree9.c +319 -0
- package/vendor/zlib/contrib/infback9/inftree9.h +61 -0
- package/vendor/zlib/contrib/iostream/test.cpp +24 -0
- package/vendor/zlib/contrib/iostream/zfstream.cpp +329 -0
- package/vendor/zlib/contrib/iostream/zfstream.h +128 -0
- package/vendor/zlib/contrib/iostream2/zstream.h +307 -0
- package/vendor/zlib/contrib/iostream2/zstream_test.cpp +25 -0
- package/vendor/zlib/contrib/iostream3/README +35 -0
- package/vendor/zlib/contrib/iostream3/TODO +17 -0
- package/vendor/zlib/contrib/iostream3/test.cc +50 -0
- package/vendor/zlib/contrib/iostream3/zfstream.cc +479 -0
- package/vendor/zlib/contrib/iostream3/zfstream.h +466 -0
- package/vendor/zlib/contrib/minizip/CMakeLists.txt +380 -0
- package/vendor/zlib/contrib/minizip/Makefile +37 -0
- package/vendor/zlib/contrib/minizip/Makefile.am +45 -0
- package/vendor/zlib/contrib/minizip/MiniZip64_Changes.txt +6 -0
- package/vendor/zlib/contrib/minizip/MiniZip64_info.txt +74 -0
- package/vendor/zlib/contrib/minizip/configure.ac +32 -0
- package/vendor/zlib/contrib/minizip/crypt.h +128 -0
- package/vendor/zlib/contrib/minizip/ints.h +57 -0
- package/vendor/zlib/contrib/minizip/ioapi.c +231 -0
- package/vendor/zlib/contrib/minizip/ioapi.h +183 -0
- package/vendor/zlib/contrib/minizip/iowin32.c +448 -0
- package/vendor/zlib/contrib/minizip/iowin32.h +28 -0
- package/vendor/zlib/contrib/minizip/make_vms.com +25 -0
- package/vendor/zlib/contrib/minizip/miniunz.c +647 -0
- package/vendor/zlib/contrib/minizip/miniunzip.1 +63 -0
- package/vendor/zlib/contrib/minizip/minizip.1 +46 -0
- package/vendor/zlib/contrib/minizip/minizip.c +512 -0
- package/vendor/zlib/contrib/minizip/minizip.pc.in +12 -0
- package/vendor/zlib/contrib/minizip/minizip.pc.txt +13 -0
- package/vendor/zlib/contrib/minizip/minizipConfig.cmake.in +35 -0
- package/vendor/zlib/contrib/minizip/mztools.c +288 -0
- package/vendor/zlib/contrib/minizip/mztools.h +37 -0
- package/vendor/zlib/contrib/minizip/skipset.h +361 -0
- package/vendor/zlib/contrib/minizip/test/CMakeLists.txt +121 -0
- package/vendor/zlib/contrib/minizip/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/vendor/zlib/contrib/minizip/test/add_subdirectory_test.cmake.in +28 -0
- package/vendor/zlib/contrib/minizip/test/find_package_test.cmake.in +25 -0
- package/vendor/zlib/contrib/minizip/test/test_helper.cm +32 -0
- package/vendor/zlib/contrib/minizip/unzip.c +1981 -0
- package/vendor/zlib/contrib/minizip/unzip.h +441 -0
- package/vendor/zlib/contrib/minizip/zip.c +2199 -0
- package/vendor/zlib/contrib/minizip/zip.h +370 -0
- package/vendor/zlib/contrib/nuget/nuget.csproj +43 -0
- package/vendor/zlib/contrib/nuget/nuget.sln +22 -0
- package/vendor/zlib/contrib/pascal/example.pas +599 -0
- package/vendor/zlib/contrib/pascal/readme.txt +76 -0
- package/vendor/zlib/contrib/pascal/zlibd32.mak +99 -0
- package/vendor/zlib/contrib/pascal/zlibpas.pas +276 -0
- package/vendor/zlib/contrib/puff/Makefile +42 -0
- package/vendor/zlib/contrib/puff/README +63 -0
- package/vendor/zlib/contrib/puff/puff.c +840 -0
- package/vendor/zlib/contrib/puff/puff.h +35 -0
- package/vendor/zlib/contrib/puff/pufftest.c +169 -0
- package/vendor/zlib/contrib/puff/zeros.raw +0 -0
- package/vendor/zlib/contrib/testzlib/testzlib.c +275 -0
- package/vendor/zlib/contrib/testzlib/testzlib.txt +10 -0
- package/vendor/zlib/contrib/untgz/Makefile +14 -0
- package/vendor/zlib/contrib/untgz/Makefile.msc +17 -0
- package/vendor/zlib/contrib/untgz/untgz.c +667 -0
- package/vendor/zlib/contrib/vstudio/readme.txt +81 -0
- package/vendor/zlib/contrib/vstudio/vc10/miniunz.vcxproj +310 -0
- package/vendor/zlib/contrib/vstudio/vc10/miniunz.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/minizip.vcxproj +307 -0
- package/vendor/zlib/contrib/vstudio/vc10/minizip.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlib.vcxproj +412 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlib.vcxproj.filters +55 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj +310 -0
- package/vendor/zlib/contrib/vstudio/vc10/testzlibdll.vcxproj.filters +22 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibstat.vcxproj +449 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibstat.vcxproj.filters +74 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.sln +135 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.vcxproj +633 -0
- package/vendor/zlib/contrib/vstudio/vc10/zlibvc.vcxproj.filters +115 -0
- package/vendor/zlib/contrib/vstudio/vc11/miniunz.vcxproj +314 -0
- package/vendor/zlib/contrib/vstudio/vc11/minizip.vcxproj +311 -0
- package/vendor/zlib/contrib/vstudio/vc11/testzlib.vcxproj +418 -0
- package/vendor/zlib/contrib/vstudio/vc11/testzlibdll.vcxproj +314 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibstat.vcxproj +456 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.sln +117 -0
- package/vendor/zlib/contrib/vstudio/vc11/zlibvc.vcxproj +664 -0
- package/vendor/zlib/contrib/vstudio/vc12/miniunz.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc12/minizip.vcxproj +313 -0
- package/vendor/zlib/contrib/vstudio/vc12/testzlib.vcxproj +422 -0
- package/vendor/zlib/contrib/vstudio/vc12/testzlibdll.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibstat.vcxproj +459 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.sln +119 -0
- package/vendor/zlib/contrib/vstudio/vc12/zlibvc.vcxproj +668 -0
- package/vendor/zlib/contrib/vstudio/vc14/miniunz.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc14/minizip.vcxproj +313 -0
- package/vendor/zlib/contrib/vstudio/vc14/testzlib.vcxproj +422 -0
- package/vendor/zlib/contrib/vstudio/vc14/testzlibdll.vcxproj +316 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibstat.vcxproj +459 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.sln +119 -0
- package/vendor/zlib/contrib/vstudio/vc14/zlibvc.vcxproj +668 -0
- package/vendor/zlib/contrib/vstudio/vc17/miniunz.vcxproj +409 -0
- package/vendor/zlib/contrib/vstudio/vc17/minizip.vcxproj +405 -0
- package/vendor/zlib/contrib/vstudio/vc17/testzlib.vcxproj +473 -0
- package/vendor/zlib/contrib/vstudio/vc17/testzlibdll.vcxproj +409 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibstat.vcxproj +602 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.sln +179 -0
- package/vendor/zlib/contrib/vstudio/vc17/zlibvc.vcxproj +875 -0
- package/vendor/zlib/contrib/vstudio/vc9/miniunz.vcproj +565 -0
- package/vendor/zlib/contrib/vstudio/vc9/minizip.vcproj +562 -0
- package/vendor/zlib/contrib/vstudio/vc9/testzlib.vcproj +796 -0
- package/vendor/zlib/contrib/vstudio/vc9/testzlibdll.vcproj +565 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlib.rc +32 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibstat.vcproj +781 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.def +161 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.sln +144 -0
- package/vendor/zlib/contrib/vstudio/vc9/zlibvc.vcproj +1100 -0
- package/vendor/zlib/crc32.c +1049 -0
- package/vendor/zlib/crc32.h +9446 -0
- package/vendor/zlib/deflate.c +2152 -0
- package/vendor/zlib/deflate.h +380 -0
- package/vendor/zlib/doc/algorithm.txt +209 -0
- package/vendor/zlib/doc/crc-doc.1.0.pdf +0 -0
- package/vendor/zlib/doc/rfc1950.txt +619 -0
- package/vendor/zlib/doc/rfc1951.txt +955 -0
- package/vendor/zlib/doc/rfc1952.txt +675 -0
- package/vendor/zlib/doc/txtvsbin.txt +107 -0
- package/vendor/zlib/examples/README.examples +54 -0
- package/vendor/zlib/examples/enough.c +597 -0
- package/vendor/zlib/examples/fitblk.c +233 -0
- package/vendor/zlib/examples/gun.c +702 -0
- package/vendor/zlib/examples/gzappend.c +504 -0
- package/vendor/zlib/examples/gzjoin.c +449 -0
- package/vendor/zlib/examples/gzlog.c +1061 -0
- package/vendor/zlib/examples/gzlog.h +91 -0
- package/vendor/zlib/examples/gznorm.c +474 -0
- package/vendor/zlib/examples/zlib_how.html +549 -0
- package/vendor/zlib/examples/zpipe.c +209 -0
- package/vendor/zlib/examples/zran.c +550 -0
- package/vendor/zlib/examples/zran.h +53 -0
- package/vendor/zlib/gzclose.c +23 -0
- package/vendor/zlib/gzguts.h +215 -0
- package/vendor/zlib/gzlib.c +585 -0
- package/vendor/zlib/gzread.c +603 -0
- package/vendor/zlib/gzwrite.c +631 -0
- package/vendor/zlib/infback.c +628 -0
- package/vendor/zlib/inffast.c +320 -0
- package/vendor/zlib/inffast.h +11 -0
- package/vendor/zlib/inffixed.h +94 -0
- package/vendor/zlib/inflate.c +1526 -0
- package/vendor/zlib/inflate.h +126 -0
- package/vendor/zlib/inftrees.c +299 -0
- package/vendor/zlib/inftrees.h +62 -0
- package/vendor/zlib/make_vms.com +867 -0
- package/vendor/zlib/msdos/Makefile.bor +115 -0
- package/vendor/zlib/msdos/Makefile.dj2 +104 -0
- package/vendor/zlib/msdos/Makefile.emx +69 -0
- package/vendor/zlib/msdos/Makefile.msc +112 -0
- package/vendor/zlib/msdos/Makefile.tc +100 -0
- package/vendor/zlib/nintendods/Makefile +126 -0
- package/vendor/zlib/nintendods/README +5 -0
- package/vendor/zlib/old/Makefile.emx +69 -0
- package/vendor/zlib/old/Makefile.riscos +151 -0
- package/vendor/zlib/old/README +3 -0
- package/vendor/zlib/old/descrip.mms +48 -0
- package/vendor/zlib/old/os2/Makefile.os2 +136 -0
- package/vendor/zlib/old/os2/zlib.def +51 -0
- package/vendor/zlib/old/visual-basic.txt +160 -0
- package/vendor/zlib/os400/README400 +48 -0
- package/vendor/zlib/os400/bndsrc +133 -0
- package/vendor/zlib/os400/make.sh +366 -0
- package/vendor/zlib/os400/zlib.inc +531 -0
- package/vendor/zlib/qnx/package.qpg +141 -0
- package/vendor/zlib/test/CMakeLists.txt +265 -0
- package/vendor/zlib/test/add_subdirectory_exclude_test.cmake.in +29 -0
- package/vendor/zlib/test/add_subdirectory_test.cmake.in +28 -0
- package/vendor/zlib/test/example.c +552 -0
- package/vendor/zlib/test/find_package_test.cmake.in +26 -0
- package/vendor/zlib/test/infcover.c +672 -0
- package/vendor/zlib/test/minigzip.c +590 -0
- package/vendor/zlib/treebuild.xml +116 -0
- package/vendor/zlib/trees.c +1119 -0
- package/vendor/zlib/trees.h +128 -0
- package/vendor/zlib/uncompr.c +85 -0
- package/vendor/zlib/watcom/watcom_f.mak +43 -0
- package/vendor/zlib/watcom/watcom_l.mak +43 -0
- package/vendor/zlib/win32/DLL_FAQ.txt +381 -0
- package/vendor/zlib/win32/Makefile.bor +109 -0
- package/vendor/zlib/win32/Makefile.gcc +177 -0
- package/vendor/zlib/win32/Makefile.msc +159 -0
- package/vendor/zlib/win32/README-WIN32.txt +103 -0
- package/vendor/zlib/win32/VisualC.txt +3 -0
- package/vendor/zlib/win32/zlib.def +98 -0
- package/vendor/zlib/win32/zlib1.rc +37 -0
- package/vendor/zlib/zconf.h.in +544 -0
- package/vendor/zlib/zlib.3 +149 -0
- package/vendor/zlib/zlib.3.pdf +0 -0
- package/vendor/zlib/zlib.h +1957 -0
- package/vendor/zlib/zlib.map +104 -0
- package/vendor/zlib/zlib.pc.cmakein +13 -0
- package/vendor/zlib/zlib.pc.in +13 -0
- package/vendor/zlib/zlibConfig.cmake.in +26 -0
- package/vendor/zlib/zutil.c +299 -0
- package/vendor/zlib/zutil.h +257 -0
- package/vendor/zsign/.gitattributes +4 -0
- package/vendor/zsign/LICENSE +21 -0
- package/vendor/zsign/README.md +142 -0
- package/vendor/zsign/build/linux/Makefile +43 -0
- package/vendor/zsign/build/macos/Makefile +43 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/crypt.h +128 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/ioapi.h +216 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/iowin32.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/mztools.h +37 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/unzip.h +437 -0
- package/vendor/zsign/build/windows/vs2022/include/minizip/zip.h +364 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/__DECC_INCLUDE_EPILOGUE.H +22 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/__DECC_INCLUDE_PROLOGUE.H +26 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/aes.h +111 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/applink.c +153 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1.h +1133 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1_mac.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1err.h +142 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asn1t.h +946 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/async.h +104 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/asyncerr.h +29 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bio.h +1015 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bioerr.h +72 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/blowfish.h +78 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bn.h +590 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/bnerr.h +47 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/buffer.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/buffererr.h +25 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/camellia.h +117 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cast.h +71 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmac.h +52 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmp.h +727 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmp_util.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmperr.h +131 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cms.h +508 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cmserr.h +125 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/comp.h +98 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/comperr.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conf.h +214 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conf_api.h +46 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conferr.h +52 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/configuration.h +188 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/conftypes.h +44 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core.h +236 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_dispatch.h +1022 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_names.h +545 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/core_object.h +41 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crmf.h +260 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crmferr.h +50 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/crypto.h +580 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cryptoerr.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cryptoerr_legacy.h +1466 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ct.h +573 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/cterr.h +45 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/decoder.h +133 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/decodererr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/des.h +211 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dh.h +339 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dherr.h +59 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dsa.h +280 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dsaerr.h +44 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/dtls1.h +57 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/e_os2.h +310 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/e_ostime.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ebcdic.h +39 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ec.h +1588 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecdh.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecdsa.h +10 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ecerr.h +104 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/encoder.h +124 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/encodererr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/engine.h +833 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/engineerr.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/err.h +512 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ess.h +128 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/esserr.h +32 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/evp.h +2231 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/evperr.h +140 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/fips_names.h +50 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/fipskey.h +41 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/hmac.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/hpke.h +169 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/http.h +118 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/httperr.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/idea.h +82 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/indicator.h +31 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/kdf.h +138 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/kdferr.h +16 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/lhash.h +398 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/macros.h +338 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md2.h +56 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md4.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/md5.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/mdc2.h +55 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/modes.h +219 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/obj_mac.h +5820 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/objects.h +184 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/objectserr.h +28 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ocsp.h +483 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ocsperr.h +53 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/opensslconf.h +17 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/opensslv.h +114 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ossl_typ.h +16 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/param_build.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/params.h +160 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pem.h +543 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pem2.h +19 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pemerr.h +58 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs12.h +366 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs12err.h +46 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs7.h +430 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/pkcs7err.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/prov_ssl.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/proverr.h +162 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/provider.h +66 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/quic.h +70 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rand.h +125 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/randerr.h +69 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc2.h +68 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc4.h +47 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rc5.h +79 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ripemd.h +59 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rsa.h +615 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/rsaerr.h +107 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/safestack.h +297 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/seed.h +113 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/self_test.h +98 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sha.h +139 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/srp.h +285 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/srtp.h +68 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl.h +2878 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl2.h +30 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ssl3.h +357 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sslerr.h +379 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/sslerr_legacy.h +467 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/stack.h +90 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/store.h +377 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/storeerr.h +49 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/symhacks.h +39 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/thread.h +31 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/tls1.h +1220 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/trace.h +320 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ts.h +522 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/tserr.h +67 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/txt_db.h +63 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/types.h +245 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/ui.h +407 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/uierr.h +38 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/whrlpool.h +62 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509.h +1304 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509_acert.h +263 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509_vfy.h +902 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509err.h +70 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509v3.h +1500 -0
- package/vendor/zsign/build/windows/vs2022/include/openssl/x509v3err.h +96 -0
- package/vendor/zsign/build/windows/vs2022/include/zlib/zconf.h +553 -0
- package/vendor/zsign/build/windows/vs2022/include/zlib/zlib.h +1938 -0
- package/vendor/zsign/build/windows/vs2022/lib/minizip/x64/mt/minizip.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/openssl/x64/mt/libcrypto.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/openssl/x64/mt/libssl.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/lib/zlib/x64/mt/zlib.lib +0 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/common_win32.h +44 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/getopt.cpp +69 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/getopt.h +20 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/iconv.cpp +138 -0
- package/vendor/zsign/build/windows/vs2022/zsign/src/iconv.h +38 -0
- package/vendor/zsign/build/windows/vs2022/zsign/zsign.vcxproj +177 -0
- package/vendor/zsign/build/windows/vs2022/zsign/zsign.vcxproj.filters +120 -0
- package/vendor/zsign/build/windows/vs2022/zsign.sln +28 -0
- package/vendor/zsign/src/archo.cpp +742 -0
- package/vendor/zsign/src/archo.h +61 -0
- package/vendor/zsign/src/bundle.cpp +589 -0
- package/vendor/zsign/src/bundle.h +46 -0
- package/vendor/zsign/src/common/archive.cpp +246 -0
- package/vendor/zsign/src/common/archive.h +22 -0
- package/vendor/zsign/src/common/base64.cpp +166 -0
- package/vendor/zsign/src/common/base64.h +30 -0
- package/vendor/zsign/src/common/common.h +56 -0
- package/vendor/zsign/src/common/fs.cpp +573 -0
- package/vendor/zsign/src/common/fs.h +50 -0
- package/vendor/zsign/src/common/json.cpp +3380 -0
- package/vendor/zsign/src/common/json.h +530 -0
- package/vendor/zsign/src/common/log.cpp +145 -0
- package/vendor/zsign/src/common/log.h +37 -0
- package/vendor/zsign/src/common/mach-o.h +585 -0
- package/vendor/zsign/src/common/sha.cpp +133 -0
- package/vendor/zsign/src/common/sha.h +24 -0
- package/vendor/zsign/src/common/timer.cpp +28 -0
- package/vendor/zsign/src/common/timer.h +17 -0
- package/vendor/zsign/src/common/util.cpp +185 -0
- package/vendor/zsign/src/common/util.h +25 -0
- package/vendor/zsign/src/macho.cpp +273 -0
- package/vendor/zsign/src/macho.h +38 -0
- package/vendor/zsign/src/openssl.cpp +698 -0
- package/vendor/zsign/src/openssl.h +71 -0
- package/vendor/zsign/src/signing.cpp +745 -0
- package/vendor/zsign/src/signing.h +59 -0
- package/vendor/zsign/src/zsign.cpp +317 -0
- package/vendor/zsign/test/dylib/bin/demo1.dylib +0 -0
- package/vendor/zsign/test/dylib/bin/demo2.dylib +0 -0
- package/vendor/zsign/test/dylib/demo/Makefile +12 -0
- package/vendor/zsign/test/dylib/demo/control +9 -0
- package/vendor/zsign/test/dylib/demo/demo.m +21 -0
- package/vendor/zsign/test/linux/test.sh +19 -0
- package/vendor/zsign/test/macos/test.sh +19 -0
- package/vendor/zsign/test/windows/test.ps1 +17 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
+
* Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
7
|
+
* in the file LICENSE in the source distribution or at
|
|
8
|
+
* https://www.openssl.org/source/license.html
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#ifndef OPENSSL_PROVERR_H
|
|
12
|
+
# define OPENSSL_PROVERR_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/opensslconf.h>
|
|
16
|
+
# include <openssl/symhacks.h>
|
|
17
|
+
# include <openssl/cryptoerr_legacy.h>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* PROV reason codes.
|
|
23
|
+
*/
|
|
24
|
+
# define PROV_R_ADDITIONAL_INPUT_TOO_LONG 184
|
|
25
|
+
# define PROV_R_ALGORITHM_MISMATCH 173
|
|
26
|
+
# define PROV_R_ALREADY_INSTANTIATED 185
|
|
27
|
+
# define PROV_R_BAD_DECRYPT 100
|
|
28
|
+
# define PROV_R_BAD_ENCODING 141
|
|
29
|
+
# define PROV_R_BAD_LENGTH 142
|
|
30
|
+
# define PROV_R_BAD_TLS_CLIENT_VERSION 161
|
|
31
|
+
# define PROV_R_BN_ERROR 160
|
|
32
|
+
# define PROV_R_CIPHER_OPERATION_FAILED 102
|
|
33
|
+
# define PROV_R_COFACTOR_REQUIRED 236
|
|
34
|
+
# define PROV_R_DERIVATION_FUNCTION_INIT_FAILED 205
|
|
35
|
+
# define PROV_R_DIGEST_NOT_ALLOWED 174
|
|
36
|
+
# define PROV_R_EMS_NOT_ENABLED 233
|
|
37
|
+
# define PROV_R_ENTROPY_SOURCE_FAILED_CONTINUOUS_TESTS 244
|
|
38
|
+
# define PROV_R_ENTROPY_SOURCE_STRENGTH_TOO_WEAK 186
|
|
39
|
+
# define PROV_R_ERROR_INSTANTIATING_DRBG 188
|
|
40
|
+
# define PROV_R_ERROR_RETRIEVING_ENTROPY 189
|
|
41
|
+
# define PROV_R_ERROR_RETRIEVING_NONCE 190
|
|
42
|
+
# define PROV_R_FAILED_DURING_DERIVATION 164
|
|
43
|
+
# define PROV_R_FAILED_TO_CREATE_LOCK 180
|
|
44
|
+
# define PROV_R_FAILED_TO_DECRYPT 162
|
|
45
|
+
# define PROV_R_FAILED_TO_GENERATE_KEY 121
|
|
46
|
+
# define PROV_R_FAILED_TO_GET_PARAMETER 103
|
|
47
|
+
# define PROV_R_FAILED_TO_SET_PARAMETER 104
|
|
48
|
+
# define PROV_R_FAILED_TO_SIGN 175
|
|
49
|
+
# define PROV_R_FINAL_CALL_OUT_OF_ORDER 237
|
|
50
|
+
# define PROV_R_FIPS_MODULE_CONDITIONAL_ERROR 227
|
|
51
|
+
# define PROV_R_FIPS_MODULE_ENTERING_ERROR_STATE 224
|
|
52
|
+
# define PROV_R_FIPS_MODULE_IN_ERROR_STATE 225
|
|
53
|
+
# define PROV_R_GENERATE_ERROR 191
|
|
54
|
+
# define PROV_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE 165
|
|
55
|
+
# define PROV_R_INDICATOR_INTEGRITY_FAILURE 210
|
|
56
|
+
# define PROV_R_INIT_CALL_OUT_OF_ORDER 238
|
|
57
|
+
# define PROV_R_INSUFFICIENT_DRBG_STRENGTH 181
|
|
58
|
+
# define PROV_R_INVALID_AAD 108
|
|
59
|
+
# define PROV_R_INVALID_AEAD 231
|
|
60
|
+
# define PROV_R_INVALID_CONFIG_DATA 211
|
|
61
|
+
# define PROV_R_INVALID_CONSTANT_LENGTH 157
|
|
62
|
+
# define PROV_R_INVALID_CURVE 176
|
|
63
|
+
# define PROV_R_INVALID_CUSTOM_LENGTH 111
|
|
64
|
+
# define PROV_R_INVALID_DATA 115
|
|
65
|
+
# define PROV_R_INVALID_DIGEST 122
|
|
66
|
+
# define PROV_R_INVALID_DIGEST_LENGTH 166
|
|
67
|
+
# define PROV_R_INVALID_DIGEST_SIZE 218
|
|
68
|
+
# define PROV_R_INVALID_EDDSA_INSTANCE_FOR_ATTEMPTED_OPERATION 243
|
|
69
|
+
# define PROV_R_INVALID_INPUT_LENGTH 230
|
|
70
|
+
# define PROV_R_INVALID_ITERATION_COUNT 123
|
|
71
|
+
# define PROV_R_INVALID_IV_LENGTH 109
|
|
72
|
+
# define PROV_R_INVALID_KDF 232
|
|
73
|
+
# define PROV_R_INVALID_KEY 158
|
|
74
|
+
# define PROV_R_INVALID_KEY_LENGTH 105
|
|
75
|
+
# define PROV_R_INVALID_MAC 151
|
|
76
|
+
# define PROV_R_INVALID_MEMORY_SIZE 235
|
|
77
|
+
# define PROV_R_INVALID_MGF1_MD 167
|
|
78
|
+
# define PROV_R_INVALID_MODE 125
|
|
79
|
+
# define PROV_R_INVALID_OUTPUT_LENGTH 217
|
|
80
|
+
# define PROV_R_INVALID_PADDING_MODE 168
|
|
81
|
+
# define PROV_R_INVALID_PREHASHED_DIGEST_LENGTH 241
|
|
82
|
+
# define PROV_R_INVALID_PUBINFO 198
|
|
83
|
+
# define PROV_R_INVALID_SALT_LENGTH 112
|
|
84
|
+
# define PROV_R_INVALID_SEED_LENGTH 154
|
|
85
|
+
# define PROV_R_INVALID_SIGNATURE_SIZE 179
|
|
86
|
+
# define PROV_R_INVALID_STATE 212
|
|
87
|
+
# define PROV_R_INVALID_TAG 110
|
|
88
|
+
# define PROV_R_INVALID_TAG_LENGTH 118
|
|
89
|
+
# define PROV_R_INVALID_THREAD_POOL_SIZE 234
|
|
90
|
+
# define PROV_R_INVALID_UKM_LENGTH 200
|
|
91
|
+
# define PROV_R_INVALID_X931_DIGEST 170
|
|
92
|
+
# define PROV_R_IN_ERROR_STATE 192
|
|
93
|
+
# define PROV_R_KEY_SETUP_FAILED 101
|
|
94
|
+
# define PROV_R_KEY_SIZE_TOO_SMALL 171
|
|
95
|
+
# define PROV_R_LENGTH_TOO_LARGE 202
|
|
96
|
+
# define PROV_R_MISMATCHING_DOMAIN_PARAMETERS 203
|
|
97
|
+
# define PROV_R_MISSING_CEK_ALG 144
|
|
98
|
+
# define PROV_R_MISSING_CIPHER 155
|
|
99
|
+
# define PROV_R_MISSING_CONFIG_DATA 213
|
|
100
|
+
# define PROV_R_MISSING_CONSTANT 156
|
|
101
|
+
# define PROV_R_MISSING_KEY 128
|
|
102
|
+
# define PROV_R_MISSING_MAC 150
|
|
103
|
+
# define PROV_R_MISSING_MESSAGE_DIGEST 129
|
|
104
|
+
# define PROV_R_MISSING_OID 209
|
|
105
|
+
# define PROV_R_MISSING_PASS 130
|
|
106
|
+
# define PROV_R_MISSING_SALT 131
|
|
107
|
+
# define PROV_R_MISSING_SECRET 132
|
|
108
|
+
# define PROV_R_MISSING_SEED 140
|
|
109
|
+
# define PROV_R_MISSING_SESSION_ID 133
|
|
110
|
+
# define PROV_R_MISSING_TYPE 134
|
|
111
|
+
# define PROV_R_MISSING_XCGHASH 135
|
|
112
|
+
# define PROV_R_MODULE_INTEGRITY_FAILURE 214
|
|
113
|
+
# define PROV_R_NOT_A_PRIVATE_KEY 221
|
|
114
|
+
# define PROV_R_NOT_A_PUBLIC_KEY 220
|
|
115
|
+
# define PROV_R_NOT_INSTANTIATED 193
|
|
116
|
+
# define PROV_R_NOT_PARAMETERS 226
|
|
117
|
+
# define PROV_R_NOT_SUPPORTED 136
|
|
118
|
+
# define PROV_R_NOT_XOF_OR_INVALID_LENGTH 113
|
|
119
|
+
# define PROV_R_NO_INSTANCE_ALLOWED 242
|
|
120
|
+
# define PROV_R_NO_KEY_SET 114
|
|
121
|
+
# define PROV_R_NO_PARAMETERS_SET 177
|
|
122
|
+
# define PROV_R_ONESHOT_CALL_OUT_OF_ORDER 239
|
|
123
|
+
# define PROV_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE 178
|
|
124
|
+
# define PROV_R_OUTPUT_BUFFER_TOO_SMALL 106
|
|
125
|
+
# define PROV_R_PARENT_CANNOT_GENERATE_RANDOM_NUMBERS 228
|
|
126
|
+
# define PROV_R_PARENT_CANNOT_SUPPLY_ENTROPY_SEED 187
|
|
127
|
+
# define PROV_R_PARENT_LOCKING_NOT_ENABLED 182
|
|
128
|
+
# define PROV_R_PARENT_STRENGTH_TOO_WEAK 194
|
|
129
|
+
# define PROV_R_PATH_MUST_BE_ABSOLUTE 219
|
|
130
|
+
# define PROV_R_PERSONALISATION_STRING_TOO_LONG 195
|
|
131
|
+
# define PROV_R_PSS_SALTLEN_TOO_SMALL 172
|
|
132
|
+
# define PROV_R_REQUEST_TOO_LARGE_FOR_DRBG 196
|
|
133
|
+
# define PROV_R_REQUIRE_CTR_MODE_CIPHER 206
|
|
134
|
+
# define PROV_R_RESEED_ERROR 197
|
|
135
|
+
# define PROV_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES 222
|
|
136
|
+
# define PROV_R_SEED_SOURCES_MUST_NOT_HAVE_A_PARENT 229
|
|
137
|
+
# define PROV_R_SELF_TEST_KAT_FAILURE 215
|
|
138
|
+
# define PROV_R_SELF_TEST_POST_FAILURE 216
|
|
139
|
+
# define PROV_R_TAG_NOT_NEEDED 120
|
|
140
|
+
# define PROV_R_TAG_NOT_SET 119
|
|
141
|
+
# define PROV_R_TOO_MANY_RECORDS 126
|
|
142
|
+
# define PROV_R_UNABLE_TO_FIND_CIPHERS 207
|
|
143
|
+
# define PROV_R_UNABLE_TO_GET_PARENT_STRENGTH 199
|
|
144
|
+
# define PROV_R_UNABLE_TO_GET_PASSPHRASE 159
|
|
145
|
+
# define PROV_R_UNABLE_TO_INITIALISE_CIPHERS 208
|
|
146
|
+
# define PROV_R_UNABLE_TO_LOAD_SHA256 147
|
|
147
|
+
# define PROV_R_UNABLE_TO_LOCK_PARENT 201
|
|
148
|
+
# define PROV_R_UNABLE_TO_RESEED 204
|
|
149
|
+
# define PROV_R_UNSUPPORTED_CEK_ALG 145
|
|
150
|
+
# define PROV_R_UNSUPPORTED_KEY_SIZE 153
|
|
151
|
+
# define PROV_R_UNSUPPORTED_MAC_TYPE 137
|
|
152
|
+
# define PROV_R_UNSUPPORTED_NUMBER_OF_ROUNDS 152
|
|
153
|
+
# define PROV_R_UPDATE_CALL_OUT_OF_ORDER 240
|
|
154
|
+
# define PROV_R_URI_AUTHORITY_UNSUPPORTED 223
|
|
155
|
+
# define PROV_R_VALUE_ERROR 138
|
|
156
|
+
# define PROV_R_WRONG_FINAL_BLOCK_LENGTH 107
|
|
157
|
+
# define PROV_R_WRONG_OUTPUT_BUFFER_SIZE 139
|
|
158
|
+
# define PROV_R_XOF_DIGESTS_NOT_ALLOWED 183
|
|
159
|
+
# define PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE 148
|
|
160
|
+
# define PROV_R_XTS_DUPLICATED_KEYS 149
|
|
161
|
+
|
|
162
|
+
#endif
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2019-2023 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
6
|
+
* in the file LICENSE in the source distribution or at
|
|
7
|
+
* https://www.openssl.org/source/license.html
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef OPENSSL_PROVIDER_H
|
|
11
|
+
# define OPENSSL_PROVIDER_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/core.h>
|
|
15
|
+
|
|
16
|
+
# ifdef __cplusplus
|
|
17
|
+
extern "C" {
|
|
18
|
+
# endif
|
|
19
|
+
|
|
20
|
+
/* Set and Get a library context search path */
|
|
21
|
+
int OSSL_PROVIDER_set_default_search_path(OSSL_LIB_CTX *, const char *path);
|
|
22
|
+
const char *OSSL_PROVIDER_get0_default_search_path(OSSL_LIB_CTX *libctx);
|
|
23
|
+
|
|
24
|
+
/* Load and unload a provider */
|
|
25
|
+
OSSL_PROVIDER *OSSL_PROVIDER_load(OSSL_LIB_CTX *, const char *name);
|
|
26
|
+
OSSL_PROVIDER *OSSL_PROVIDER_load_ex(OSSL_LIB_CTX *, const char *name,
|
|
27
|
+
OSSL_PARAM *params);
|
|
28
|
+
OSSL_PROVIDER *OSSL_PROVIDER_try_load(OSSL_LIB_CTX *, const char *name,
|
|
29
|
+
int retain_fallbacks);
|
|
30
|
+
OSSL_PROVIDER *OSSL_PROVIDER_try_load_ex(OSSL_LIB_CTX *, const char *name,
|
|
31
|
+
OSSL_PARAM *params,
|
|
32
|
+
int retain_fallbacks);
|
|
33
|
+
int OSSL_PROVIDER_unload(OSSL_PROVIDER *prov);
|
|
34
|
+
int OSSL_PROVIDER_available(OSSL_LIB_CTX *, const char *name);
|
|
35
|
+
int OSSL_PROVIDER_do_all(OSSL_LIB_CTX *ctx,
|
|
36
|
+
int (*cb)(OSSL_PROVIDER *provider, void *cbdata),
|
|
37
|
+
void *cbdata);
|
|
38
|
+
|
|
39
|
+
const OSSL_PARAM *OSSL_PROVIDER_gettable_params(const OSSL_PROVIDER *prov);
|
|
40
|
+
int OSSL_PROVIDER_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]);
|
|
41
|
+
int OSSL_PROVIDER_self_test(const OSSL_PROVIDER *prov);
|
|
42
|
+
int OSSL_PROVIDER_get_capabilities(const OSSL_PROVIDER *prov,
|
|
43
|
+
const char *capability,
|
|
44
|
+
OSSL_CALLBACK *cb,
|
|
45
|
+
void *arg);
|
|
46
|
+
|
|
47
|
+
const OSSL_ALGORITHM *OSSL_PROVIDER_query_operation(const OSSL_PROVIDER *prov,
|
|
48
|
+
int operation_id,
|
|
49
|
+
int *no_cache);
|
|
50
|
+
void OSSL_PROVIDER_unquery_operation(const OSSL_PROVIDER *prov,
|
|
51
|
+
int operation_id, const OSSL_ALGORITHM *algs);
|
|
52
|
+
void *OSSL_PROVIDER_get0_provider_ctx(const OSSL_PROVIDER *prov);
|
|
53
|
+
const OSSL_DISPATCH *OSSL_PROVIDER_get0_dispatch(const OSSL_PROVIDER *prov);
|
|
54
|
+
|
|
55
|
+
/* Add a built in providers */
|
|
56
|
+
int OSSL_PROVIDER_add_builtin(OSSL_LIB_CTX *, const char *name,
|
|
57
|
+
OSSL_provider_init_fn *init_fn);
|
|
58
|
+
|
|
59
|
+
/* Information */
|
|
60
|
+
const char *OSSL_PROVIDER_get0_name(const OSSL_PROVIDER *prov);
|
|
61
|
+
|
|
62
|
+
# ifdef __cplusplus
|
|
63
|
+
}
|
|
64
|
+
# endif
|
|
65
|
+
|
|
66
|
+
#endif
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022-2024 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
6
|
+
* in the file LICENSE in the source distribution or at
|
|
7
|
+
* https://www.openssl.org/source/license.html
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef OPENSSL_QUIC_H
|
|
11
|
+
# define OPENSSL_QUIC_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/macros.h>
|
|
15
|
+
# include <openssl/ssl.h>
|
|
16
|
+
|
|
17
|
+
# ifndef OPENSSL_NO_QUIC
|
|
18
|
+
|
|
19
|
+
# ifdef __cplusplus
|
|
20
|
+
extern "C" {
|
|
21
|
+
# endif
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
* Method used for non-thread-assisted QUIC client operation.
|
|
25
|
+
*/
|
|
26
|
+
__owur const SSL_METHOD *OSSL_QUIC_client_method(void);
|
|
27
|
+
|
|
28
|
+
/*
|
|
29
|
+
* Method used for thread-assisted QUIC client operation.
|
|
30
|
+
*/
|
|
31
|
+
__owur const SSL_METHOD *OSSL_QUIC_client_thread_method(void);
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
* QUIC transport error codes (RFC 9000 s. 20.1)
|
|
35
|
+
*/
|
|
36
|
+
# define OSSL_QUIC_ERR_NO_ERROR 0x00
|
|
37
|
+
# define OSSL_QUIC_ERR_INTERNAL_ERROR 0x01
|
|
38
|
+
# define OSSL_QUIC_ERR_CONNECTION_REFUSED 0x02
|
|
39
|
+
# define OSSL_QUIC_ERR_FLOW_CONTROL_ERROR 0x03
|
|
40
|
+
# define OSSL_QUIC_ERR_STREAM_LIMIT_ERROR 0x04
|
|
41
|
+
# define OSSL_QUIC_ERR_STREAM_STATE_ERROR 0x05
|
|
42
|
+
# define OSSL_QUIC_ERR_FINAL_SIZE_ERROR 0x06
|
|
43
|
+
# define OSSL_QUIC_ERR_FRAME_ENCODING_ERROR 0x07
|
|
44
|
+
# define OSSL_QUIC_ERR_TRANSPORT_PARAMETER_ERROR 0x08
|
|
45
|
+
# define OSSL_QUIC_ERR_CONNECTION_ID_LIMIT_ERROR 0x09
|
|
46
|
+
# define OSSL_QUIC_ERR_PROTOCOL_VIOLATION 0x0A
|
|
47
|
+
# define OSSL_QUIC_ERR_INVALID_TOKEN 0x0B
|
|
48
|
+
# define OSSL_QUIC_ERR_APPLICATION_ERROR 0x0C
|
|
49
|
+
# define OSSL_QUIC_ERR_CRYPTO_BUFFER_EXCEEDED 0x0D
|
|
50
|
+
# define OSSL_QUIC_ERR_KEY_UPDATE_ERROR 0x0E
|
|
51
|
+
# define OSSL_QUIC_ERR_AEAD_LIMIT_REACHED 0x0F
|
|
52
|
+
# define OSSL_QUIC_ERR_NO_VIABLE_PATH 0x10
|
|
53
|
+
|
|
54
|
+
/* Inclusive range for handshake-specific errors. */
|
|
55
|
+
# define OSSL_QUIC_ERR_CRYPTO_ERR_BEGIN 0x0100
|
|
56
|
+
# define OSSL_QUIC_ERR_CRYPTO_ERR_END 0x01FF
|
|
57
|
+
|
|
58
|
+
# define OSSL_QUIC_ERR_CRYPTO_ERR(X) \
|
|
59
|
+
(OSSL_QUIC_ERR_CRYPTO_ERR_BEGIN + (X))
|
|
60
|
+
|
|
61
|
+
/* Local errors. */
|
|
62
|
+
# define OSSL_QUIC_LOCAL_ERR_IDLE_TIMEOUT \
|
|
63
|
+
((uint64_t)0xFFFFFFFFFFFFFFFFULL)
|
|
64
|
+
|
|
65
|
+
# ifdef __cplusplus
|
|
66
|
+
}
|
|
67
|
+
# endif
|
|
68
|
+
|
|
69
|
+
# endif /* OPENSSL_NO_QUIC */
|
|
70
|
+
#endif
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
6
|
+
* in the file LICENSE in the source distribution or at
|
|
7
|
+
* https://www.openssl.org/source/license.html
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef OPENSSL_RAND_H
|
|
11
|
+
# define OPENSSL_RAND_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/macros.h>
|
|
15
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
16
|
+
# define HEADER_RAND_H
|
|
17
|
+
# endif
|
|
18
|
+
|
|
19
|
+
# include <stdlib.h>
|
|
20
|
+
# include <openssl/types.h>
|
|
21
|
+
# include <openssl/e_os2.h>
|
|
22
|
+
# include <openssl/randerr.h>
|
|
23
|
+
# include <openssl/evp.h>
|
|
24
|
+
|
|
25
|
+
#ifdef __cplusplus
|
|
26
|
+
extern "C" {
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* Default security strength (in the sense of [NIST SP 800-90Ar1])
|
|
31
|
+
*
|
|
32
|
+
* NIST SP 800-90Ar1 supports the strength of the DRBG being smaller than that
|
|
33
|
+
* of the cipher by collecting less entropy. The current DRBG implementation
|
|
34
|
+
* does not take RAND_DRBG_STRENGTH into account and sets the strength of the
|
|
35
|
+
* DRBG to that of the cipher.
|
|
36
|
+
*/
|
|
37
|
+
# define RAND_DRBG_STRENGTH 256
|
|
38
|
+
|
|
39
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
40
|
+
struct rand_meth_st {
|
|
41
|
+
int (*seed) (const void *buf, int num);
|
|
42
|
+
int (*bytes) (unsigned char *buf, int num);
|
|
43
|
+
void (*cleanup) (void);
|
|
44
|
+
int (*add) (const void *buf, int num, double randomness);
|
|
45
|
+
int (*pseudorand) (unsigned char *buf, int num);
|
|
46
|
+
int (*status) (void);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_method(const RAND_METHOD *meth);
|
|
50
|
+
OSSL_DEPRECATEDIN_3_0 const RAND_METHOD *RAND_get_rand_method(void);
|
|
51
|
+
# ifndef OPENSSL_NO_ENGINE
|
|
52
|
+
OSSL_DEPRECATEDIN_3_0 int RAND_set_rand_engine(ENGINE *engine);
|
|
53
|
+
# endif
|
|
54
|
+
|
|
55
|
+
OSSL_DEPRECATEDIN_3_0 RAND_METHOD *RAND_OpenSSL(void);
|
|
56
|
+
# endif /* OPENSSL_NO_DEPRECATED_3_0 */
|
|
57
|
+
|
|
58
|
+
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
|
59
|
+
# define RAND_cleanup() while(0) continue
|
|
60
|
+
# endif
|
|
61
|
+
int RAND_bytes(unsigned char *buf, int num);
|
|
62
|
+
int RAND_priv_bytes(unsigned char *buf, int num);
|
|
63
|
+
|
|
64
|
+
/*
|
|
65
|
+
* Equivalent of RAND_priv_bytes() but additionally taking an OSSL_LIB_CTX and
|
|
66
|
+
* a strength.
|
|
67
|
+
*/
|
|
68
|
+
int RAND_priv_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
|
|
69
|
+
unsigned int strength);
|
|
70
|
+
|
|
71
|
+
/*
|
|
72
|
+
* Equivalent of RAND_bytes() but additionally taking an OSSL_LIB_CTX and
|
|
73
|
+
* a strength.
|
|
74
|
+
*/
|
|
75
|
+
int RAND_bytes_ex(OSSL_LIB_CTX *ctx, unsigned char *buf, size_t num,
|
|
76
|
+
unsigned int strength);
|
|
77
|
+
|
|
78
|
+
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
|
79
|
+
OSSL_DEPRECATEDIN_1_1_0 int RAND_pseudo_bytes(unsigned char *buf, int num);
|
|
80
|
+
# endif
|
|
81
|
+
|
|
82
|
+
EVP_RAND_CTX *RAND_get0_primary(OSSL_LIB_CTX *ctx);
|
|
83
|
+
EVP_RAND_CTX *RAND_get0_public(OSSL_LIB_CTX *ctx);
|
|
84
|
+
EVP_RAND_CTX *RAND_get0_private(OSSL_LIB_CTX *ctx);
|
|
85
|
+
int RAND_set0_public(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
|
|
86
|
+
int RAND_set0_private(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
|
|
87
|
+
|
|
88
|
+
int RAND_set_DRBG_type(OSSL_LIB_CTX *ctx, const char *drbg, const char *propq,
|
|
89
|
+
const char *cipher, const char *digest);
|
|
90
|
+
int RAND_set_seed_source_type(OSSL_LIB_CTX *ctx, const char *seed,
|
|
91
|
+
const char *propq);
|
|
92
|
+
|
|
93
|
+
void RAND_seed(const void *buf, int num);
|
|
94
|
+
void RAND_keep_random_devices_open(int keep);
|
|
95
|
+
|
|
96
|
+
# if defined(__ANDROID__) && defined(__NDK_FPABI__)
|
|
97
|
+
__NDK_FPABI__ /* __attribute__((pcs("aapcs"))) on ARM */
|
|
98
|
+
# endif
|
|
99
|
+
void RAND_add(const void *buf, int num, double randomness);
|
|
100
|
+
int RAND_load_file(const char *file, long max_bytes);
|
|
101
|
+
int RAND_write_file(const char *file);
|
|
102
|
+
const char *RAND_file_name(char *file, size_t num);
|
|
103
|
+
int RAND_status(void);
|
|
104
|
+
|
|
105
|
+
# ifndef OPENSSL_NO_EGD
|
|
106
|
+
int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
|
|
107
|
+
int RAND_egd(const char *path);
|
|
108
|
+
int RAND_egd_bytes(const char *path, int bytes);
|
|
109
|
+
# endif
|
|
110
|
+
|
|
111
|
+
int RAND_poll(void);
|
|
112
|
+
|
|
113
|
+
# if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H))
|
|
114
|
+
/* application has to include <windows.h> in order to use these */
|
|
115
|
+
# ifndef OPENSSL_NO_DEPRECATED_1_1_0
|
|
116
|
+
OSSL_DEPRECATEDIN_1_1_0 void RAND_screen(void);
|
|
117
|
+
OSSL_DEPRECATEDIN_1_1_0 int RAND_event(UINT, WPARAM, LPARAM);
|
|
118
|
+
# endif
|
|
119
|
+
# endif
|
|
120
|
+
|
|
121
|
+
#ifdef __cplusplus
|
|
122
|
+
}
|
|
123
|
+
#endif
|
|
124
|
+
|
|
125
|
+
#endif
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Generated by util/mkerr.pl DO NOT EDIT
|
|
3
|
+
* Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
6
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
7
|
+
* in the file LICENSE in the source distribution or at
|
|
8
|
+
* https://www.openssl.org/source/license.html
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
#ifndef OPENSSL_RANDERR_H
|
|
12
|
+
# define OPENSSL_RANDERR_H
|
|
13
|
+
# pragma once
|
|
14
|
+
|
|
15
|
+
# include <openssl/opensslconf.h>
|
|
16
|
+
# include <openssl/symhacks.h>
|
|
17
|
+
# include <openssl/cryptoerr_legacy.h>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* RAND reason codes.
|
|
23
|
+
*/
|
|
24
|
+
# define RAND_R_ADDITIONAL_INPUT_TOO_LONG 102
|
|
25
|
+
# define RAND_R_ALREADY_INSTANTIATED 103
|
|
26
|
+
# define RAND_R_ARGUMENT_OUT_OF_RANGE 105
|
|
27
|
+
# define RAND_R_CANNOT_OPEN_FILE 121
|
|
28
|
+
# define RAND_R_DRBG_ALREADY_INITIALIZED 129
|
|
29
|
+
# define RAND_R_DRBG_NOT_INITIALISED 104
|
|
30
|
+
# define RAND_R_ENTROPY_INPUT_TOO_LONG 106
|
|
31
|
+
# define RAND_R_ENTROPY_OUT_OF_RANGE 124
|
|
32
|
+
# define RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED 127
|
|
33
|
+
# define RAND_R_ERROR_INITIALISING_DRBG 107
|
|
34
|
+
# define RAND_R_ERROR_INSTANTIATING_DRBG 108
|
|
35
|
+
# define RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT 109
|
|
36
|
+
# define RAND_R_ERROR_RETRIEVING_ENTROPY 110
|
|
37
|
+
# define RAND_R_ERROR_RETRIEVING_NONCE 111
|
|
38
|
+
# define RAND_R_FAILED_TO_CREATE_LOCK 126
|
|
39
|
+
# define RAND_R_FUNC_NOT_IMPLEMENTED 101
|
|
40
|
+
# define RAND_R_FWRITE_ERROR 123
|
|
41
|
+
# define RAND_R_GENERATE_ERROR 112
|
|
42
|
+
# define RAND_R_INSUFFICIENT_DRBG_STRENGTH 139
|
|
43
|
+
# define RAND_R_INTERNAL_ERROR 113
|
|
44
|
+
# define RAND_R_INVALID_PROPERTY_QUERY 137
|
|
45
|
+
# define RAND_R_IN_ERROR_STATE 114
|
|
46
|
+
# define RAND_R_NOT_A_REGULAR_FILE 122
|
|
47
|
+
# define RAND_R_NOT_INSTANTIATED 115
|
|
48
|
+
# define RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED 128
|
|
49
|
+
# define RAND_R_PARENT_LOCKING_NOT_ENABLED 130
|
|
50
|
+
# define RAND_R_PARENT_STRENGTH_TOO_WEAK 131
|
|
51
|
+
# define RAND_R_PERSONALISATION_STRING_TOO_LONG 116
|
|
52
|
+
# define RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED 133
|
|
53
|
+
# define RAND_R_PRNG_NOT_SEEDED 100
|
|
54
|
+
# define RAND_R_RANDOM_POOL_OVERFLOW 125
|
|
55
|
+
# define RAND_R_RANDOM_POOL_UNDERFLOW 134
|
|
56
|
+
# define RAND_R_REQUEST_TOO_LARGE_FOR_DRBG 117
|
|
57
|
+
# define RAND_R_RESEED_ERROR 118
|
|
58
|
+
# define RAND_R_SELFTEST_FAILURE 119
|
|
59
|
+
# define RAND_R_TOO_LITTLE_NONCE_REQUESTED 135
|
|
60
|
+
# define RAND_R_TOO_MUCH_NONCE_REQUESTED 136
|
|
61
|
+
# define RAND_R_UNABLE_TO_CREATE_DRBG 143
|
|
62
|
+
# define RAND_R_UNABLE_TO_FETCH_DRBG 144
|
|
63
|
+
# define RAND_R_UNABLE_TO_GET_PARENT_RESEED_PROP_COUNTER 141
|
|
64
|
+
# define RAND_R_UNABLE_TO_GET_PARENT_STRENGTH 138
|
|
65
|
+
# define RAND_R_UNABLE_TO_LOCK_PARENT 140
|
|
66
|
+
# define RAND_R_UNSUPPORTED_DRBG_FLAGS 132
|
|
67
|
+
# define RAND_R_UNSUPPORTED_DRBG_TYPE 120
|
|
68
|
+
|
|
69
|
+
#endif
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
6
|
+
* in the file LICENSE in the source distribution or at
|
|
7
|
+
* https://www.openssl.org/source/license.html
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef OPENSSL_RC2_H
|
|
11
|
+
# define OPENSSL_RC2_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/macros.h>
|
|
15
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
16
|
+
# define HEADER_RC2_H
|
|
17
|
+
# endif
|
|
18
|
+
|
|
19
|
+
# include <openssl/opensslconf.h>
|
|
20
|
+
|
|
21
|
+
# ifndef OPENSSL_NO_RC2
|
|
22
|
+
# ifdef __cplusplus
|
|
23
|
+
extern "C" {
|
|
24
|
+
# endif
|
|
25
|
+
|
|
26
|
+
# define RC2_BLOCK 8
|
|
27
|
+
# define RC2_KEY_LENGTH 16
|
|
28
|
+
|
|
29
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
30
|
+
typedef unsigned int RC2_INT;
|
|
31
|
+
|
|
32
|
+
# define RC2_ENCRYPT 1
|
|
33
|
+
# define RC2_DECRYPT 0
|
|
34
|
+
|
|
35
|
+
typedef struct rc2_key_st {
|
|
36
|
+
RC2_INT data[64];
|
|
37
|
+
} RC2_KEY;
|
|
38
|
+
# endif
|
|
39
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
40
|
+
OSSL_DEPRECATEDIN_3_0 void RC2_set_key(RC2_KEY *key, int len,
|
|
41
|
+
const unsigned char *data, int bits);
|
|
42
|
+
OSSL_DEPRECATEDIN_3_0 void RC2_ecb_encrypt(const unsigned char *in,
|
|
43
|
+
unsigned char *out, RC2_KEY *key,
|
|
44
|
+
int enc);
|
|
45
|
+
OSSL_DEPRECATEDIN_3_0 void RC2_encrypt(unsigned long *data, RC2_KEY *key);
|
|
46
|
+
OSSL_DEPRECATEDIN_3_0 void RC2_decrypt(unsigned long *data, RC2_KEY *key);
|
|
47
|
+
OSSL_DEPRECATEDIN_3_0 void RC2_cbc_encrypt(const unsigned char *in,
|
|
48
|
+
unsigned char *out, long length,
|
|
49
|
+
RC2_KEY *ks, unsigned char *iv,
|
|
50
|
+
int enc);
|
|
51
|
+
OSSL_DEPRECATEDIN_3_0 void RC2_cfb64_encrypt(const unsigned char *in,
|
|
52
|
+
unsigned char *out, long length,
|
|
53
|
+
RC2_KEY *schedule,
|
|
54
|
+
unsigned char *ivec,
|
|
55
|
+
int *num, int enc);
|
|
56
|
+
OSSL_DEPRECATEDIN_3_0 void RC2_ofb64_encrypt(const unsigned char *in,
|
|
57
|
+
unsigned char *out, long length,
|
|
58
|
+
RC2_KEY *schedule,
|
|
59
|
+
unsigned char *ivec,
|
|
60
|
+
int *num);
|
|
61
|
+
# endif
|
|
62
|
+
|
|
63
|
+
# ifdef __cplusplus
|
|
64
|
+
}
|
|
65
|
+
# endif
|
|
66
|
+
# endif
|
|
67
|
+
|
|
68
|
+
#endif
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
6
|
+
* in the file LICENSE in the source distribution or at
|
|
7
|
+
* https://www.openssl.org/source/license.html
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef OPENSSL_RC4_H
|
|
11
|
+
# define OPENSSL_RC4_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/macros.h>
|
|
15
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
16
|
+
# define HEADER_RC4_H
|
|
17
|
+
# endif
|
|
18
|
+
|
|
19
|
+
# include <openssl/opensslconf.h>
|
|
20
|
+
|
|
21
|
+
# ifndef OPENSSL_NO_RC4
|
|
22
|
+
# include <stddef.h>
|
|
23
|
+
# ifdef __cplusplus
|
|
24
|
+
extern "C" {
|
|
25
|
+
# endif
|
|
26
|
+
|
|
27
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
28
|
+
typedef struct rc4_key_st {
|
|
29
|
+
RC4_INT x, y;
|
|
30
|
+
RC4_INT data[256];
|
|
31
|
+
} RC4_KEY;
|
|
32
|
+
# endif
|
|
33
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
34
|
+
OSSL_DEPRECATEDIN_3_0 const char *RC4_options(void);
|
|
35
|
+
OSSL_DEPRECATEDIN_3_0 void RC4_set_key(RC4_KEY *key, int len,
|
|
36
|
+
const unsigned char *data);
|
|
37
|
+
OSSL_DEPRECATEDIN_3_0 void RC4(RC4_KEY *key, size_t len,
|
|
38
|
+
const unsigned char *indata,
|
|
39
|
+
unsigned char *outdata);
|
|
40
|
+
# endif
|
|
41
|
+
|
|
42
|
+
# ifdef __cplusplus
|
|
43
|
+
}
|
|
44
|
+
# endif
|
|
45
|
+
# endif
|
|
46
|
+
|
|
47
|
+
#endif
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
5
|
+
* this file except in compliance with the License. You can obtain a copy
|
|
6
|
+
* in the file LICENSE in the source distribution or at
|
|
7
|
+
* https://www.openssl.org/source/license.html
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef OPENSSL_RC5_H
|
|
11
|
+
# define OPENSSL_RC5_H
|
|
12
|
+
# pragma once
|
|
13
|
+
|
|
14
|
+
# include <openssl/macros.h>
|
|
15
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
16
|
+
# define HEADER_RC5_H
|
|
17
|
+
# endif
|
|
18
|
+
|
|
19
|
+
# include <openssl/opensslconf.h>
|
|
20
|
+
|
|
21
|
+
# ifndef OPENSSL_NO_RC5
|
|
22
|
+
# ifdef __cplusplus
|
|
23
|
+
extern "C" {
|
|
24
|
+
# endif
|
|
25
|
+
|
|
26
|
+
# define RC5_32_BLOCK 8
|
|
27
|
+
# define RC5_32_KEY_LENGTH 16/* This is a default, max is 255 */
|
|
28
|
+
|
|
29
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
30
|
+
# define RC5_ENCRYPT 1
|
|
31
|
+
# define RC5_DECRYPT 0
|
|
32
|
+
|
|
33
|
+
# define RC5_32_INT unsigned int
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* This are the only values supported. Tweak the code if you want more The
|
|
37
|
+
* most supported modes will be RC5-32/12/16 RC5-32/16/8
|
|
38
|
+
*/
|
|
39
|
+
# define RC5_8_ROUNDS 8
|
|
40
|
+
# define RC5_12_ROUNDS 12
|
|
41
|
+
# define RC5_16_ROUNDS 16
|
|
42
|
+
|
|
43
|
+
typedef struct rc5_key_st {
|
|
44
|
+
/* Number of rounds */
|
|
45
|
+
int rounds;
|
|
46
|
+
RC5_32_INT data[2 * (RC5_16_ROUNDS + 1)];
|
|
47
|
+
} RC5_32_KEY;
|
|
48
|
+
# endif
|
|
49
|
+
# ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
50
|
+
OSSL_DEPRECATEDIN_3_0 int RC5_32_set_key(RC5_32_KEY *key, int len,
|
|
51
|
+
const unsigned char *data,
|
|
52
|
+
int rounds);
|
|
53
|
+
OSSL_DEPRECATEDIN_3_0 void RC5_32_ecb_encrypt(const unsigned char *in,
|
|
54
|
+
unsigned char *out,
|
|
55
|
+
RC5_32_KEY *key,
|
|
56
|
+
int enc);
|
|
57
|
+
OSSL_DEPRECATEDIN_3_0 void RC5_32_encrypt(unsigned long *data, RC5_32_KEY *key);
|
|
58
|
+
OSSL_DEPRECATEDIN_3_0 void RC5_32_decrypt(unsigned long *data, RC5_32_KEY *key);
|
|
59
|
+
OSSL_DEPRECATEDIN_3_0 void RC5_32_cbc_encrypt(const unsigned char *in,
|
|
60
|
+
unsigned char *out, long length,
|
|
61
|
+
RC5_32_KEY *ks, unsigned char *iv,
|
|
62
|
+
int enc);
|
|
63
|
+
OSSL_DEPRECATEDIN_3_0 void RC5_32_cfb64_encrypt(const unsigned char *in,
|
|
64
|
+
unsigned char *out, long length,
|
|
65
|
+
RC5_32_KEY *schedule,
|
|
66
|
+
unsigned char *ivec, int *num,
|
|
67
|
+
int enc);
|
|
68
|
+
OSSL_DEPRECATEDIN_3_0 void RC5_32_ofb64_encrypt(const unsigned char *in,
|
|
69
|
+
unsigned char *out, long length,
|
|
70
|
+
RC5_32_KEY *schedule,
|
|
71
|
+
unsigned char *ivec, int *num);
|
|
72
|
+
# endif
|
|
73
|
+
|
|
74
|
+
# ifdef __cplusplus
|
|
75
|
+
}
|
|
76
|
+
# endif
|
|
77
|
+
# endif
|
|
78
|
+
|
|
79
|
+
#endif
|