diff --git a/CryptoSwift.xcframework/Info.plist b/CryptoSwift.xcframework/Info.plist new file mode 100644 index 00000000..48f09173 --- /dev/null +++ b/CryptoSwift.xcframework/Info.plist @@ -0,0 +1,126 @@ + + + + + AvailableLibraries + + + LibraryIdentifier + tvos-arm64 + LibraryPath + CryptoSwift.framework + SupportedArchitectures + + arm64 + + SupportedPlatform + tvos + + + LibraryIdentifier + tvos-arm64_x86_64-simulator + LibraryPath + CryptoSwift.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + tvos + SupportedPlatformVariant + simulator + + + LibraryIdentifier + watchos-arm64_32_armv7k + LibraryPath + CryptoSwift.framework + SupportedArchitectures + + arm64_32 + armv7k + + SupportedPlatform + watchos + + + LibraryIdentifier + ios-arm64_x86_64-maccatalyst + LibraryPath + CryptoSwift.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + maccatalyst + + + LibraryIdentifier + ios-arm64_i386_x86_64-simulator + LibraryPath + CryptoSwift.framework + SupportedArchitectures + + arm64 + i386 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + LibraryIdentifier + macos-arm64_x86_64 + LibraryPath + CryptoSwift.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + macos + + + LibraryIdentifier + ios-arm64_armv7 + LibraryPath + CryptoSwift.framework + SupportedArchitectures + + arm64 + armv7 + + SupportedPlatform + ios + + + LibraryIdentifier + watchos-arm64_i386_x86_64-simulator + LibraryPath + CryptoSwift.framework + SupportedArchitectures + + arm64 + i386 + x86_64 + + SupportedPlatform + watchos + SupportedPlatformVariant + simulator + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/CryptoSwift b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/CryptoSwift new file mode 100755 index 00000000..d1a1ea50 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/CryptoSwift differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Headers/CryptoSwift-Swift.h b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Headers/CryptoSwift-Swift.h new file mode 100644 index 00000000..5a1487fd --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Headers/CryptoSwift-Swift.h @@ -0,0 +1,430 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Headers/CryptoSwift.h b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Headers/CryptoSwift.h new file mode 100644 index 00000000..85fe6754 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Headers/CryptoSwift.h @@ -0,0 +1,15 @@ +// +// CryptoSwift.h +// CryptoSwift +// +// Created by Sam Soffes on 11/29/15. +// Copyright © 2015 Marcin Krzyzanowski. All rights reserved. +// + +@import Foundation; + +//! Project version number for CryptoSwift. +FOUNDATION_EXPORT double CryptoSwiftVersionNumber; + +//! Project version string for CryptoSwift. +FOUNDATION_EXPORT const unsigned char CryptoSwiftVersionString[]; diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Info.plist b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Info.plist new file mode 100644 index 00000000..77586ccc Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Info.plist differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm.swiftsourceinfo new file mode 100644 index 00000000..b1ef79ff Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo new file mode 100644 index 00000000..92249684 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo new file mode 100644 index 00000000..92249684 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo new file mode 100644 index 00000000..b1ef79ff Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7.swiftsourceinfo new file mode 100644 index 00000000..b1ef79ff Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftdoc b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftdoc new file mode 100644 index 00000000..8f305225 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftinterface b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftinterface new file mode 100644 index 00000000..f3eaab11 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios.swiftdoc b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios.swiftdoc new file mode 100644 index 00000000..9bc7029b Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios.swiftinterface b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios.swiftinterface new file mode 100644 index 00000000..da784147 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc new file mode 100644 index 00000000..9bc7029b Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface new file mode 100644 index 00000000..da784147 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7-apple-ios.swiftdoc b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7-apple-ios.swiftdoc new file mode 100644 index 00000000..8f305225 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7-apple-ios.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7-apple-ios.swiftinterface b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7-apple-ios.swiftinterface new file mode 100644 index 00000000..f3eaab11 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7-apple-ios.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7.swiftdoc b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7.swiftdoc new file mode 100644 index 00000000..8f305225 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7.swiftinterface b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7.swiftinterface new file mode 100644 index 00000000..f3eaab11 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target armv7-apple-ios9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/module.modulemap b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/module.modulemap new file mode 100644 index 00000000..0253372f --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_armv7/CryptoSwift.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module CryptoSwift { + umbrella header "CryptoSwift.h" + + export * + module * { export * } +} + +module CryptoSwift.Swift { + header "CryptoSwift-Swift.h" + requires objc +} diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/CryptoSwift b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/CryptoSwift new file mode 100755 index 00000000..63930b66 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/CryptoSwift differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift-Swift.h b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift-Swift.h new file mode 100644 index 00000000..7113ef82 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift-Swift.h @@ -0,0 +1,644 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__i386__) && __i386__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift.h b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift.h new file mode 100644 index 00000000..85fe6754 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift.h @@ -0,0 +1,15 @@ +// +// CryptoSwift.h +// CryptoSwift +// +// Created by Sam Soffes on 11/29/15. +// Copyright © 2015 Marcin Krzyzanowski. All rights reserved. +// + +@import Foundation; + +//! Project version number for CryptoSwift. +FOUNDATION_EXPORT double CryptoSwiftVersionNumber; + +//! Project version string for CryptoSwift. +FOUNDATION_EXPORT const unsigned char CryptoSwiftVersionString[]; diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Info.plist b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Info.plist new file mode 100644 index 00000000..1e30403e Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Info.plist differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo new file mode 100644 index 00000000..5f64632e Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo new file mode 100644 index 00000000..5f64632e Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo new file mode 100644 index 00000000..b4dd74c8 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo new file mode 100644 index 00000000..b4dd74c8 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo new file mode 100644 index 00000000..2a43182b Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo new file mode 100644 index 00000000..2a43182b Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc new file mode 100644 index 00000000..ad7eb768 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface new file mode 100644 index 00000000..60327cc4 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc new file mode 100644 index 00000000..ad7eb768 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface new file mode 100644 index 00000000..60327cc4 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftdoc b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftdoc new file mode 100644 index 00000000..bb722b4c Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftinterface b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftinterface new file mode 100644 index 00000000..8ad2d890 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftdoc b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftdoc new file mode 100644 index 00000000..bb722b4c Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftinterface b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftinterface new file mode 100644 index 00000000..8ad2d890 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target i386-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc new file mode 100644 index 00000000..78876203 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface new file mode 100644 index 00000000..cd167053 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc new file mode 100644 index 00000000..78876203 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface new file mode 100644 index 00000000..cd167053 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-ios9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/module.modulemap b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/module.modulemap new file mode 100644 index 00000000..0253372f --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module CryptoSwift { + umbrella header "CryptoSwift.h" + + export * + module * { export * } +} + +module CryptoSwift.Swift { + header "CryptoSwift-Swift.h" + requires objc +} diff --git a/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/_CodeSignature/CodeResources b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/_CodeSignature/CodeResources new file mode 100644 index 00000000..cdd2aabb --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_i386_x86_64-simulator/CryptoSwift.framework/_CodeSignature/CodeResources @@ -0,0 +1,507 @@ + + + + + files + + Headers/CryptoSwift-Swift.h + + b5YF4mZSdFPeGankgjT7gSKbT1w= + + Headers/CryptoSwift.h + + spmS3Ur7W7wnG1nc6iY/t4Q7X0c= + + Info.plist + + JlFKPPElI00axbg7l1k0jx1ILvM= + + Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo + + olK7DLW2fdAdyYYyBfD/wKODUFE= + + Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo + + olK7DLW2fdAdyYYyBfD/wKODUFE= + + Modules/CryptoSwift.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo + + 5leASJCgntC1HxDv+qVmNT7wu1E= + + Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo + + 5leASJCgntC1HxDv+qVmNT7wu1E= + + Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo + + fWxJIVxwg2Cev5G4ehoLPK2yp9o= + + Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo + + fWxJIVxwg2Cev5G4ehoLPK2yp9o= + + Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + aFKLfIXJKX3+eeO/Kbn+nxuQ1mw= + + Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + pRh3CVYhmp/ynikIinyh7tP3u58= + + Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + Q9UHJWzDCpG/+ccEN9ychPCJkC4= + + Modules/CryptoSwift.swiftmodule/arm64.swiftdoc + + aFKLfIXJKX3+eeO/Kbn+nxuQ1mw= + + Modules/CryptoSwift.swiftmodule/arm64.swiftinterface + + pRh3CVYhmp/ynikIinyh7tP3u58= + + Modules/CryptoSwift.swiftmodule/arm64.swiftmodule + + Q9UHJWzDCpG/+ccEN9ychPCJkC4= + + Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftdoc + + fvCMU6bysane/UZ0VLNEUpfXG6w= + + Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftinterface + + bSa11Ql8IcPivvklqnYO75vAgpo= + + Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftmodule + + xShQW4ecnMBLRTGeLvDcKQ/LjgM= + + Modules/CryptoSwift.swiftmodule/i386.swiftdoc + + fvCMU6bysane/UZ0VLNEUpfXG6w= + + Modules/CryptoSwift.swiftmodule/i386.swiftinterface + + bSa11Ql8IcPivvklqnYO75vAgpo= + + Modules/CryptoSwift.swiftmodule/i386.swiftmodule + + xShQW4ecnMBLRTGeLvDcKQ/LjgM= + + Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + 3OoX826ZGGE2xe2aVTpPUzy0Q7k= + + Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + qhbP3005kGsdMwF2kmnB4iEc/2Y= + + Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + BPY1lEzHDz2D6wtCQ+SDGIo2R5M= + + Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc + + 3OoX826ZGGE2xe2aVTpPUzy0Q7k= + + Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface + + qhbP3005kGsdMwF2kmnB4iEc/2Y= + + Modules/CryptoSwift.swiftmodule/x86_64.swiftmodule + + BPY1lEzHDz2D6wtCQ+SDGIo2R5M= + + Modules/module.modulemap + + 16Q2OexcCOG47FI6HDnxVKJP2ug= + + + files2 + + Headers/CryptoSwift-Swift.h + + hash + + b5YF4mZSdFPeGankgjT7gSKbT1w= + + hash2 + + xwSG9MHt/ckOhjXpRvcLSNX5tHr2ShRWb2+NdNdZtkA= + + + Headers/CryptoSwift.h + + hash + + spmS3Ur7W7wnG1nc6iY/t4Q7X0c= + + hash2 + + LKTFZeCP6yi+xx9GiYdLvJom52FZ5NRrUx7+M7cJWyM= + + + Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo + + hash + + olK7DLW2fdAdyYYyBfD/wKODUFE= + + hash2 + + idhiEwP0rhIVbAfueY9z1O5ASSPO9JlfYpZqul3uMUM= + + + Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo + + hash + + olK7DLW2fdAdyYYyBfD/wKODUFE= + + hash2 + + idhiEwP0rhIVbAfueY9z1O5ASSPO9JlfYpZqul3uMUM= + + + Modules/CryptoSwift.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo + + hash + + 5leASJCgntC1HxDv+qVmNT7wu1E= + + hash2 + + g0V7N0XYLIOz/+0QADgLmz/ZGnjw/mwRbPvtPiHTMLg= + + + Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo + + hash + + 5leASJCgntC1HxDv+qVmNT7wu1E= + + hash2 + + g0V7N0XYLIOz/+0QADgLmz/ZGnjw/mwRbPvtPiHTMLg= + + + Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo + + hash + + fWxJIVxwg2Cev5G4ehoLPK2yp9o= + + hash2 + + 9LsFiZFq2xkpyoCE52lz6zRUgiCjgtKKIihE776ZD2w= + + + Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo + + hash + + fWxJIVxwg2Cev5G4ehoLPK2yp9o= + + hash2 + + 9LsFiZFq2xkpyoCE52lz6zRUgiCjgtKKIihE776ZD2w= + + + Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc + + hash + + aFKLfIXJKX3+eeO/Kbn+nxuQ1mw= + + hash2 + + 3UvTFzmbZ1a9WF18kMweZrPqTWICCNphy9pZY9Ac90k= + + + Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface + + hash + + pRh3CVYhmp/ynikIinyh7tP3u58= + + hash2 + + 4qRXUlI7Zdj+Ue93uoTq8X2BwyhyLGbUqKfM8xcYK7E= + + + Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftmodule + + hash + + Q9UHJWzDCpG/+ccEN9ychPCJkC4= + + hash2 + + orOleg6R75+u2XxuRn3JbgKUJjs7pynRcj6nLwLA95Q= + + + Modules/CryptoSwift.swiftmodule/arm64.swiftdoc + + hash + + aFKLfIXJKX3+eeO/Kbn+nxuQ1mw= + + hash2 + + 3UvTFzmbZ1a9WF18kMweZrPqTWICCNphy9pZY9Ac90k= + + + Modules/CryptoSwift.swiftmodule/arm64.swiftinterface + + hash + + pRh3CVYhmp/ynikIinyh7tP3u58= + + hash2 + + 4qRXUlI7Zdj+Ue93uoTq8X2BwyhyLGbUqKfM8xcYK7E= + + + Modules/CryptoSwift.swiftmodule/arm64.swiftmodule + + hash + + Q9UHJWzDCpG/+ccEN9ychPCJkC4= + + hash2 + + orOleg6R75+u2XxuRn3JbgKUJjs7pynRcj6nLwLA95Q= + + + Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftdoc + + hash + + fvCMU6bysane/UZ0VLNEUpfXG6w= + + hash2 + + E7vpdba5B1gkbn0lOOCzj2eHAploCpUQV4X8iUznpVI= + + + Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftinterface + + hash + + bSa11Ql8IcPivvklqnYO75vAgpo= + + hash2 + + UqAwDRrY+QeWRfw1t2Bi7TJFISmOiSv/5SiVWRVDZsc= + + + Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftmodule + + hash + + xShQW4ecnMBLRTGeLvDcKQ/LjgM= + + hash2 + + a16znJgC+cw83SeM6PPDze4JOpV3kGHBB6N/QJhi/RM= + + + Modules/CryptoSwift.swiftmodule/i386.swiftdoc + + hash + + fvCMU6bysane/UZ0VLNEUpfXG6w= + + hash2 + + E7vpdba5B1gkbn0lOOCzj2eHAploCpUQV4X8iUznpVI= + + + Modules/CryptoSwift.swiftmodule/i386.swiftinterface + + hash + + bSa11Ql8IcPivvklqnYO75vAgpo= + + hash2 + + UqAwDRrY+QeWRfw1t2Bi7TJFISmOiSv/5SiVWRVDZsc= + + + Modules/CryptoSwift.swiftmodule/i386.swiftmodule + + hash + + xShQW4ecnMBLRTGeLvDcKQ/LjgM= + + hash2 + + a16znJgC+cw83SeM6PPDze4JOpV3kGHBB6N/QJhi/RM= + + + Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc + + hash + + 3OoX826ZGGE2xe2aVTpPUzy0Q7k= + + hash2 + + WDf0OVgeSsB1DIfv0fmlO0UTMxBavUd7GB6CdmJw2lM= + + + Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface + + hash + + qhbP3005kGsdMwF2kmnB4iEc/2Y= + + hash2 + + gIY/DPD1FvWIJiav7cVAX0bNtujo+HX8rlYSoq0MIHg= + + + Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule + + hash + + BPY1lEzHDz2D6wtCQ+SDGIo2R5M= + + hash2 + + jVT8i9mT8o5yABevIIFCvOHJQl4NlPl9BzF9yFawgfY= + + + Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc + + hash + + 3OoX826ZGGE2xe2aVTpPUzy0Q7k= + + hash2 + + WDf0OVgeSsB1DIfv0fmlO0UTMxBavUd7GB6CdmJw2lM= + + + Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface + + hash + + qhbP3005kGsdMwF2kmnB4iEc/2Y= + + hash2 + + gIY/DPD1FvWIJiav7cVAX0bNtujo+HX8rlYSoq0MIHg= + + + Modules/CryptoSwift.swiftmodule/x86_64.swiftmodule + + hash + + BPY1lEzHDz2D6wtCQ+SDGIo2R5M= + + hash2 + + jVT8i9mT8o5yABevIIFCvOHJQl4NlPl9BzF9yFawgfY= + + + Modules/module.modulemap + + hash + + 16Q2OexcCOG47FI6HDnxVKJP2ug= + + hash2 + + C32ElEa4raJNSZ6Tx9RY4FEdz0Tv2naYEzCCKRTamUw= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/CryptoSwift b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/CryptoSwift new file mode 120000 index 00000000..1b3f3c38 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/CryptoSwift @@ -0,0 +1 @@ +Versions/Current/CryptoSwift \ No newline at end of file diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Headers b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Headers new file mode 120000 index 00000000..a177d2a6 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Modules b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Modules new file mode 120000 index 00000000..5736f318 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Modules @@ -0,0 +1 @@ +Versions/Current/Modules \ No newline at end of file diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Resources b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Resources new file mode 120000 index 00000000..953ee36f --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/CryptoSwift b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/CryptoSwift new file mode 100755 index 00000000..7764fc07 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/CryptoSwift differ diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Headers/CryptoSwift-Swift.h b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Headers/CryptoSwift-Swift.h new file mode 100644 index 00000000..08e4a029 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Headers/CryptoSwift-Swift.h @@ -0,0 +1,430 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Headers/CryptoSwift.h b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Headers/CryptoSwift.h new file mode 100644 index 00000000..85fe6754 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Headers/CryptoSwift.h @@ -0,0 +1,15 @@ +// +// CryptoSwift.h +// CryptoSwift +// +// Created by Sam Soffes on 11/29/15. +// Copyright © 2015 Marcin Krzyzanowski. All rights reserved. +// + +@import Foundation; + +//! Project version number for CryptoSwift. +FOUNDATION_EXPORT double CryptoSwiftVersionNumber; + +//! Project version string for CryptoSwift. +FOUNDATION_EXPORT const unsigned char CryptoSwiftVersionString[]; diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-macabi.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-macabi.swiftsourceinfo new file mode 100644 index 00000000..fbba5717 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-macabi.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo new file mode 100644 index 00000000..fbba5717 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-macabi.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-macabi.swiftsourceinfo new file mode 100644 index 00000000..d1bcbdc7 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-macabi.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo new file mode 100644 index 00000000..d1bcbdc7 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-macabi.swiftdoc b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-macabi.swiftdoc new file mode 100644 index 00000000..cc50448e Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-macabi.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-macabi.swiftinterface b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-macabi.swiftinterface new file mode 100644 index 00000000..9f688a29 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-ios-macabi.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc new file mode 100644 index 00000000..cc50448e Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface new file mode 100644 index 00000000..9f688a29 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-macabi.swiftdoc b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-macabi.swiftdoc new file mode 100644 index 00000000..990ac741 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-macabi.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-macabi.swiftinterface b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-macabi.swiftinterface new file mode 100644 index 00000000..96653527 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-macabi.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc new file mode 100644 index 00000000..990ac741 Binary files /dev/null and b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc differ diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface new file mode 100644 index 00000000..96653527 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-ios13.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/module.modulemap b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/module.modulemap new file mode 100644 index 00000000..0253372f --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module CryptoSwift { + umbrella header "CryptoSwift.h" + + export * + module * { export * } +} + +module CryptoSwift.Swift { + header "CryptoSwift-Swift.h" + requires objc +} diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Resources/Info.plist b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Resources/Info.plist new file mode 100644 index 00000000..8f9f5942 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/A/Resources/Info.plist @@ -0,0 +1,52 @@ + + + + + BuildMachineOSBuild + 20B29 + CFBundleDevelopmentRegion + en + CFBundleExecutable + CryptoSwift + CFBundleIdentifier + com.krzyzanowskim.CryptoSwift + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + CryptoSwift + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.3.6 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 12B45b + DTPlatformName + macosx + DTPlatformVersion + 11.0 + DTSDKBuild + 20A2408 + DTSDKName + macosx11.0 + DTXcode + 1220 + DTXcodeBuild + 12B45b + LSMinimumSystemVersion + 10.15 + UIDeviceFamily + + 2 + + + diff --git a/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/Current b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/Current new file mode 120000 index 00000000..8c7e5a66 --- /dev/null +++ b/CryptoSwift.xcframework/ios-arm64_x86_64-maccatalyst/CryptoSwift.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/CryptoSwift b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/CryptoSwift new file mode 120000 index 00000000..1b3f3c38 --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/CryptoSwift @@ -0,0 +1 @@ +Versions/Current/CryptoSwift \ No newline at end of file diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Headers b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Headers new file mode 120000 index 00000000..a177d2a6 --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Modules b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Modules new file mode 120000 index 00000000..5736f318 --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Modules @@ -0,0 +1 @@ +Versions/Current/Modules \ No newline at end of file diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Resources b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Resources new file mode 120000 index 00000000..953ee36f --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/CryptoSwift b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/CryptoSwift new file mode 100755 index 00000000..f2561dd6 Binary files /dev/null and b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/CryptoSwift differ diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Headers/CryptoSwift-Swift.h b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Headers/CryptoSwift-Swift.h new file mode 100644 index 00000000..08e4a029 --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Headers/CryptoSwift-Swift.h @@ -0,0 +1,430 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Headers/CryptoSwift.h b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Headers/CryptoSwift.h new file mode 100644 index 00000000..85fe6754 --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Headers/CryptoSwift.h @@ -0,0 +1,15 @@ +// +// CryptoSwift.h +// CryptoSwift +// +// Created by Sam Soffes on 11/29/15. +// Copyright © 2015 Marcin Krzyzanowski. All rights reserved. +// + +@import Foundation; + +//! Project version number for CryptoSwift. +FOUNDATION_EXPORT double CryptoSwiftVersionNumber; + +//! Project version string for CryptoSwift. +FOUNDATION_EXPORT const unsigned char CryptoSwiftVersionString[]; diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo new file mode 100644 index 00000000..317c4e86 Binary files /dev/null and b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo new file mode 100644 index 00000000..317c4e86 Binary files /dev/null and b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo new file mode 100644 index 00000000..f04fb224 Binary files /dev/null and b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo new file mode 100644 index 00000000..f04fb224 Binary files /dev/null and b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-macos.swiftdoc b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-macos.swiftdoc new file mode 100644 index 00000000..db1f3964 Binary files /dev/null and b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-macos.swiftdoc differ diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-macos.swiftinterface b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-macos.swiftinterface new file mode 100644 index 00000000..f509cebd --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64-apple-macos.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-macos10.12 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc new file mode 100644 index 00000000..db1f3964 Binary files /dev/null and b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc differ diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface new file mode 100644 index 00000000..f509cebd --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-macos10.12 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-macos.swiftdoc b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-macos.swiftdoc new file mode 100644 index 00000000..7ffa0b2b Binary files /dev/null and b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-macos.swiftdoc differ diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-macos.swiftinterface b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-macos.swiftinterface new file mode 100644 index 00000000..4b371418 --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64-apple-macos.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-macos10.12 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc new file mode 100644 index 00000000..7ffa0b2b Binary files /dev/null and b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc differ diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface new file mode 100644 index 00000000..4b371418 --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-macos10.12 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/module.modulemap b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/module.modulemap new file mode 100644 index 00000000..0253372f --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module CryptoSwift { + umbrella header "CryptoSwift.h" + + export * + module * { export * } +} + +module CryptoSwift.Swift { + header "CryptoSwift-Swift.h" + requires objc +} diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Resources/Info.plist b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Resources/Info.plist new file mode 100644 index 00000000..b8eb2575 --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/A/Resources/Info.plist @@ -0,0 +1,48 @@ + + + + + BuildMachineOSBuild + 20B29 + CFBundleDevelopmentRegion + en + CFBundleExecutable + CryptoSwift + CFBundleIdentifier + com.krzyzanowskim.CryptoSwift + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + CryptoSwift + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.3.6 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 12B45b + DTPlatformName + macosx + DTPlatformVersion + 11.0 + DTSDKBuild + 20A2408 + DTSDKName + macosx11.0 + DTXcode + 1220 + DTXcodeBuild + 12B45b + LSMinimumSystemVersion + 10.12 + + diff --git a/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/Current b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/Current new file mode 120000 index 00000000..8c7e5a66 --- /dev/null +++ b/CryptoSwift.xcframework/macos-arm64_x86_64/CryptoSwift.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/CryptoSwift b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/CryptoSwift new file mode 100755 index 00000000..19585fbf Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/CryptoSwift differ diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Headers/CryptoSwift-Swift.h b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Headers/CryptoSwift-Swift.h new file mode 100644 index 00000000..2c8450be --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Headers/CryptoSwift-Swift.h @@ -0,0 +1,212 @@ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Headers/CryptoSwift.h b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Headers/CryptoSwift.h new file mode 100644 index 00000000..85fe6754 --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Headers/CryptoSwift.h @@ -0,0 +1,15 @@ +// +// CryptoSwift.h +// CryptoSwift +// +// Created by Sam Soffes on 11/29/15. +// Copyright © 2015 Marcin Krzyzanowski. All rights reserved. +// + +@import Foundation; + +//! Project version number for CryptoSwift. +FOUNDATION_EXPORT double CryptoSwiftVersionNumber; + +//! Project version string for CryptoSwift. +FOUNDATION_EXPORT const unsigned char CryptoSwiftVersionString[]; diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Info.plist b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Info.plist new file mode 100644 index 00000000..cee31ee8 Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Info.plist differ diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo new file mode 100644 index 00000000..c8a49a3b Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo new file mode 100644 index 00000000..c8a49a3b Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos.swiftdoc b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos.swiftdoc new file mode 100644 index 00000000..5a4f40ab Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos.swiftdoc differ diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos.swiftinterface b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos.swiftinterface new file mode 100644 index 00000000..35c35f61 --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-tvos9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc new file mode 100644 index 00000000..5a4f40ab Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc differ diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface new file mode 100644 index 00000000..35c35f61 --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-tvos9.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/module.modulemap b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/module.modulemap new file mode 100644 index 00000000..0253372f --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64/CryptoSwift.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module CryptoSwift { + umbrella header "CryptoSwift.h" + + export * + module * { export * } +} + +module CryptoSwift.Swift { + header "CryptoSwift-Swift.h" + requires objc +} diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/CryptoSwift b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/CryptoSwift new file mode 100755 index 00000000..c1bf4954 Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/CryptoSwift differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift-Swift.h b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift-Swift.h new file mode 100644 index 00000000..08e4a029 --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift-Swift.h @@ -0,0 +1,430 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift.h b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift.h new file mode 100644 index 00000000..85fe6754 --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift.h @@ -0,0 +1,15 @@ +// +// CryptoSwift.h +// CryptoSwift +// +// Created by Sam Soffes on 11/29/15. +// Copyright © 2015 Marcin Krzyzanowski. All rights reserved. +// + +@import Foundation; + +//! Project version number for CryptoSwift. +FOUNDATION_EXPORT double CryptoSwiftVersionNumber; + +//! Project version string for CryptoSwift. +FOUNDATION_EXPORT const unsigned char CryptoSwiftVersionString[]; diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Info.plist b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Info.plist new file mode 100644 index 00000000..e9ac108a Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Info.plist differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo new file mode 100644 index 00000000..c6be9afa Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo new file mode 100644 index 00000000..c6be9afa Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo new file mode 100644 index 00000000..215618fd Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo new file mode 100644 index 00000000..215618fd Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftdoc b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftdoc new file mode 100644 index 00000000..5e7692be Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftdoc differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftinterface b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftinterface new file mode 100644 index 00000000..812c9762 --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-tvos9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc new file mode 100644 index 00000000..5e7692be Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface new file mode 100644 index 00000000..812c9762 --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-tvos9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc new file mode 100644 index 00000000..ebeacd36 Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface new file mode 100644 index 00000000..800fd979 --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-tvos9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc new file mode 100644 index 00000000..ebeacd36 Binary files /dev/null and b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc differ diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface new file mode 100644 index 00000000..800fd979 --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-tvos9.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/module.modulemap b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/module.modulemap new file mode 100644 index 00000000..0253372f --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module CryptoSwift { + umbrella header "CryptoSwift.h" + + export * + module * { export * } +} + +module CryptoSwift.Swift { + header "CryptoSwift-Swift.h" + requires objc +} diff --git a/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/_CodeSignature/CodeResources b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/_CodeSignature/CodeResources new file mode 100644 index 00000000..dbb42cea --- /dev/null +++ b/CryptoSwift.xcframework/tvos-arm64_x86_64-simulator/CryptoSwift.framework/_CodeSignature/CodeResources @@ -0,0 +1,387 @@ + + + + + files + + Headers/CryptoSwift-Swift.h + + e8KK4bodZRwVuyWjS5iQwf+R47E= + + Headers/CryptoSwift.h + + spmS3Ur7W7wnG1nc6iY/t4Q7X0c= + + Info.plist + + SpjOwqQRpb8qqGeKW5cmoxo86Qc= + + Modules/CryptoSwift.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo + + oLqyv6mRgvG0VG0AqtFGqL1aitg= + + Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo + + oLqyv6mRgvG0VG0AqtFGqL1aitg= + + Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo + + BHH++A8j4YKcQAGJPN6hJ+Lf+b8= + + Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo + + BHH++A8j4YKcQAGJPN6hJ+Lf+b8= + + Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftdoc + + 5AIzUfkjOTUHNsonxIiyL2d1z74= + + Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftinterface + + lvWzylqvrgVeuISlhkDGEhaslhQ= + + Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftmodule + + m83vuV8Mzo6jU7+mGjkMH+R29Uc= + + Modules/CryptoSwift.swiftmodule/arm64.swiftdoc + + 5AIzUfkjOTUHNsonxIiyL2d1z74= + + Modules/CryptoSwift.swiftmodule/arm64.swiftinterface + + lvWzylqvrgVeuISlhkDGEhaslhQ= + + Modules/CryptoSwift.swiftmodule/arm64.swiftmodule + + m83vuV8Mzo6jU7+mGjkMH+R29Uc= + + Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc + + KVfKLtrvAXlVGJj2027ftVjmprM= + + Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface + + QF6S8m+ngc5k2R6OG4XZjRAbdw4= + + Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule + + GmZRRJHFe5+NX4+8KXLajsx1mwc= + + Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc + + KVfKLtrvAXlVGJj2027ftVjmprM= + + Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface + + QF6S8m+ngc5k2R6OG4XZjRAbdw4= + + Modules/CryptoSwift.swiftmodule/x86_64.swiftmodule + + GmZRRJHFe5+NX4+8KXLajsx1mwc= + + Modules/module.modulemap + + 16Q2OexcCOG47FI6HDnxVKJP2ug= + + + files2 + + Headers/CryptoSwift-Swift.h + + hash + + e8KK4bodZRwVuyWjS5iQwf+R47E= + + hash2 + + NfQWk4p4+YiQTAFgGGVMQ4zKvRP8r7oPZ14gohPmJ2g= + + + Headers/CryptoSwift.h + + hash + + spmS3Ur7W7wnG1nc6iY/t4Q7X0c= + + hash2 + + LKTFZeCP6yi+xx9GiYdLvJom52FZ5NRrUx7+M7cJWyM= + + + Modules/CryptoSwift.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo + + hash + + oLqyv6mRgvG0VG0AqtFGqL1aitg= + + hash2 + + 3oVgRfcu3CjovzidZWxJc24SbpN01tBYIPJ6/1sND5Y= + + + Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo + + hash + + oLqyv6mRgvG0VG0AqtFGqL1aitg= + + hash2 + + 3oVgRfcu3CjovzidZWxJc24SbpN01tBYIPJ6/1sND5Y= + + + Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo + + hash + + BHH++A8j4YKcQAGJPN6hJ+Lf+b8= + + hash2 + + GzuLLIXzYr6o6FDBrAqoinFV/xd3XRk6rxS5GUdfqGk= + + + Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo + + hash + + BHH++A8j4YKcQAGJPN6hJ+Lf+b8= + + hash2 + + GzuLLIXzYr6o6FDBrAqoinFV/xd3XRk6rxS5GUdfqGk= + + + Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftdoc + + hash + + 5AIzUfkjOTUHNsonxIiyL2d1z74= + + hash2 + + 6muu7O5QAgr8POga6kI2cg7VVCYLYiem2M8cIyQV710= + + + Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftinterface + + hash + + lvWzylqvrgVeuISlhkDGEhaslhQ= + + hash2 + + QpCDPqQ9WXeZyPO3+wrK5kxcPGQWtGQIVyVlc2tMJJ0= + + + Modules/CryptoSwift.swiftmodule/arm64-apple-tvos-simulator.swiftmodule + + hash + + m83vuV8Mzo6jU7+mGjkMH+R29Uc= + + hash2 + + FtaFIMyF62EOmCDUwiAouVj6Z9BFlUrnX0KGas8KO90= + + + Modules/CryptoSwift.swiftmodule/arm64.swiftdoc + + hash + + 5AIzUfkjOTUHNsonxIiyL2d1z74= + + hash2 + + 6muu7O5QAgr8POga6kI2cg7VVCYLYiem2M8cIyQV710= + + + Modules/CryptoSwift.swiftmodule/arm64.swiftinterface + + hash + + lvWzylqvrgVeuISlhkDGEhaslhQ= + + hash2 + + QpCDPqQ9WXeZyPO3+wrK5kxcPGQWtGQIVyVlc2tMJJ0= + + + Modules/CryptoSwift.swiftmodule/arm64.swiftmodule + + hash + + m83vuV8Mzo6jU7+mGjkMH+R29Uc= + + hash2 + + FtaFIMyF62EOmCDUwiAouVj6Z9BFlUrnX0KGas8KO90= + + + Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc + + hash + + KVfKLtrvAXlVGJj2027ftVjmprM= + + hash2 + + JVq3DwNGTzaKDnvi90uXMBWYbdrdjfgLZjx0pKe2LW0= + + + Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface + + hash + + QF6S8m+ngc5k2R6OG4XZjRAbdw4= + + hash2 + + V2jlsQNT79HAQkgLyvvPYt0wYWSpqTWmVlGUhORQK30= + + + Modules/CryptoSwift.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule + + hash + + GmZRRJHFe5+NX4+8KXLajsx1mwc= + + hash2 + + UsFsw9g0og+ZYRzjW1GyYDTLgJxUVR8xQqWh5yrVenk= + + + Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc + + hash + + KVfKLtrvAXlVGJj2027ftVjmprM= + + hash2 + + JVq3DwNGTzaKDnvi90uXMBWYbdrdjfgLZjx0pKe2LW0= + + + Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface + + hash + + QF6S8m+ngc5k2R6OG4XZjRAbdw4= + + hash2 + + V2jlsQNT79HAQkgLyvvPYt0wYWSpqTWmVlGUhORQK30= + + + Modules/CryptoSwift.swiftmodule/x86_64.swiftmodule + + hash + + GmZRRJHFe5+NX4+8KXLajsx1mwc= + + hash2 + + UsFsw9g0og+ZYRzjW1GyYDTLgJxUVR8xQqWh5yrVenk= + + + Modules/module.modulemap + + hash + + 16Q2OexcCOG47FI6HDnxVKJP2ug= + + hash2 + + C32ElEa4raJNSZ6Tx9RY4FEdz0Tv2naYEzCCKRTamUw= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/CryptoSwift b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/CryptoSwift new file mode 100755 index 00000000..962ee96a Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/CryptoSwift differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Headers/CryptoSwift-Swift.h b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Headers/CryptoSwift-Swift.h new file mode 100644 index 00000000..394fae7e --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Headers/CryptoSwift-Swift.h @@ -0,0 +1,430 @@ +#if 0 +#elif defined(__ARM64_ARCH_8_32__) && __ARM64_ARCH_8_32__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__ARM_ARCH_7K__) && __ARM_ARCH_7K__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Headers/CryptoSwift.h b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Headers/CryptoSwift.h new file mode 100644 index 00000000..85fe6754 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Headers/CryptoSwift.h @@ -0,0 +1,15 @@ +// +// CryptoSwift.h +// CryptoSwift +// +// Created by Sam Soffes on 11/29/15. +// Copyright © 2015 Marcin Krzyzanowski. All rights reserved. +// + +@import Foundation; + +//! Project version number for CryptoSwift. +FOUNDATION_EXPORT double CryptoSwiftVersionNumber; + +//! Project version string for CryptoSwift. +FOUNDATION_EXPORT const unsigned char CryptoSwiftVersionString[]; diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Info.plist b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Info.plist new file mode 100644 index 00000000..c6130ee3 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Info.plist differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm.swiftsourceinfo new file mode 100644 index 00000000..d539f2c2 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64_32-apple-watchos.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64_32-apple-watchos.swiftsourceinfo new file mode 100644 index 00000000..027171d6 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64_32-apple-watchos.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64_32.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64_32.swiftsourceinfo new file mode 100644 index 00000000..027171d6 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64_32.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7k-apple-watchos.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7k-apple-watchos.swiftsourceinfo new file mode 100644 index 00000000..d539f2c2 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7k-apple-watchos.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7k.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7k.swiftsourceinfo new file mode 100644 index 00000000..d539f2c2 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/armv7k.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftdoc new file mode 100644 index 00000000..6e477e91 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftinterface new file mode 100644 index 00000000..598d5131 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target armv7k-apple-watchos2.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32-apple-watchos.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32-apple-watchos.swiftdoc new file mode 100644 index 00000000..2c286144 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32-apple-watchos.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32-apple-watchos.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32-apple-watchos.swiftinterface new file mode 100644 index 00000000..acf9555f --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32-apple-watchos.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64_32-apple-watchos2.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32.swiftdoc new file mode 100644 index 00000000..2c286144 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32.swiftinterface new file mode 100644 index 00000000..acf9555f --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64_32.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64_32-apple-watchos2.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k-apple-watchos.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k-apple-watchos.swiftdoc new file mode 100644 index 00000000..6e477e91 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k-apple-watchos.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k-apple-watchos.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k-apple-watchos.swiftinterface new file mode 100644 index 00000000..598d5131 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k-apple-watchos.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target armv7k-apple-watchos2.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k.swiftdoc new file mode 100644 index 00000000..6e477e91 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k.swiftinterface new file mode 100644 index 00000000..598d5131 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/armv7k.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target armv7k-apple-watchos2.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/module.modulemap b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/module.modulemap new file mode 100644 index 00000000..0253372f --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_32_armv7k/CryptoSwift.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module CryptoSwift { + umbrella header "CryptoSwift.h" + + export * + module * { export * } +} + +module CryptoSwift.Swift { + header "CryptoSwift-Swift.h" + requires objc +} diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/CryptoSwift b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/CryptoSwift new file mode 100755 index 00000000..a9ea84fe Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/CryptoSwift differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift-Swift.h b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift-Swift.h new file mode 100644 index 00000000..7113ef82 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift-Swift.h @@ -0,0 +1,644 @@ +#if 0 +#elif defined(__arm64__) && __arm64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__x86_64__) && __x86_64__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#elif defined(__i386__) && __i386__ +// Generated by Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +#ifndef CRYPTOSWIFT_SWIFT_H +#define CRYPTOSWIFT_SWIFT_H +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" + +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_include() +# include +#endif + +#pragma clang diagnostic ignored "-Wauto-import" +#include +#include +#include +#include + +#if !defined(SWIFT_TYPEDEFS) +# define SWIFT_TYPEDEFS 1 +# if __has_include() +# include +# elif !defined(__cplusplus) +typedef uint_least16_t char16_t; +typedef uint_least32_t char32_t; +# endif +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); +#endif + +#if !defined(SWIFT_PASTE) +# define SWIFT_PASTE_HELPER(x, y) x##y +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) +#endif +#if !defined(SWIFT_METATYPE) +# define SWIFT_METATYPE(X) Class +#endif +#if !defined(SWIFT_CLASS_PROPERTY) +# if __has_feature(objc_class_property) +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ +# else +# define SWIFT_CLASS_PROPERTY(...) +# endif +#endif + +#if __has_attribute(objc_runtime_name) +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) +#else +# define SWIFT_RUNTIME_NAME(X) +#endif +#if __has_attribute(swift_name) +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) +#else +# define SWIFT_COMPILE_NAME(X) +#endif +#if __has_attribute(objc_method_family) +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) +#else +# define SWIFT_METHOD_FAMILY(X) +#endif +#if __has_attribute(noescape) +# define SWIFT_NOESCAPE __attribute__((noescape)) +#else +# define SWIFT_NOESCAPE +#endif +#if __has_attribute(ns_consumed) +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed)) +#else +# define SWIFT_RELEASES_ARGUMENT +#endif +#if __has_attribute(warn_unused_result) +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) +#else +# define SWIFT_WARN_UNUSED_RESULT +#endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif +#if !defined(SWIFT_CLASS_EXTRA) +# define SWIFT_CLASS_EXTRA +#endif +#if !defined(SWIFT_PROTOCOL_EXTRA) +# define SWIFT_PROTOCOL_EXTRA +#endif +#if !defined(SWIFT_ENUM_EXTRA) +# define SWIFT_ENUM_EXTRA +#endif +#if !defined(SWIFT_CLASS) +# if __has_attribute(objc_subclassing_restricted) +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# else +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA +# endif +#endif +#if !defined(SWIFT_RESILIENT_CLASS) +# if __has_attribute(objc_class_stub) +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) +# else +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) +# endif +#endif + +#if !defined(SWIFT_PROTOCOL) +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA +#endif + +#if !defined(SWIFT_EXTENSION) +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) +#endif + +#if !defined(OBJC_DESIGNATED_INITIALIZER) +# if __has_attribute(objc_designated_initializer) +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) +# else +# define OBJC_DESIGNATED_INITIALIZER +# endif +#endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) +# else +# define SWIFT_ENUM_ATTR(_extensibility) +# endif +#endif +#if !defined(SWIFT_ENUM) +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type +# else +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) +# endif +#endif +#if !defined(SWIFT_UNAVAILABLE) +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) +#endif +#if !defined(SWIFT_UNAVAILABLE_MSG) +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) +#endif +#if !defined(SWIFT_AVAILABILITY) +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) +#endif +#if !defined(SWIFT_WEAK_IMPORT) +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) +#endif +#if !defined(SWIFT_DEPRECATED) +# define SWIFT_DEPRECATED __attribute__((deprecated)) +#endif +#if !defined(SWIFT_DEPRECATED_MSG) +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) +#endif +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if !defined(IBSegueAction) +# define IBSegueAction +#endif +#if __has_feature(modules) +#if __has_warning("-Watimport-in-framework-header") +#pragma clang diagnostic ignored "-Watimport-in-framework-header" +#endif +#endif + +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" +#pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +#if __has_attribute(external_source_symbol) +# pragma push_macro("any") +# undef any +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CryptoSwift",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) +# pragma pop_macro("any") +#endif + +#if __has_attribute(external_source_symbol) +# pragma clang attribute pop +#endif +#pragma clang diagnostic pop +#endif + +#endif diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift.h b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift.h new file mode 100644 index 00000000..85fe6754 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Headers/CryptoSwift.h @@ -0,0 +1,15 @@ +// +// CryptoSwift.h +// CryptoSwift +// +// Created by Sam Soffes on 11/29/15. +// Copyright © 2015 Marcin Krzyzanowski. All rights reserved. +// + +@import Foundation; + +//! Project version number for CryptoSwift. +FOUNDATION_EXPORT double CryptoSwiftVersionNumber; + +//! Project version string for CryptoSwift. +FOUNDATION_EXPORT const unsigned char CryptoSwiftVersionString[]; diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Info.plist b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Info.plist new file mode 100644 index 00000000..b7bced4d Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Info.plist differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-watchos-simulator.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-watchos-simulator.swiftsourceinfo new file mode 100644 index 00000000..664c2ef3 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64-apple-watchos-simulator.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo new file mode 100644 index 00000000..664c2ef3 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386-apple-watchos-simulator.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386-apple-watchos-simulator.swiftsourceinfo new file mode 100644 index 00000000..34db6df9 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386-apple-watchos-simulator.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo new file mode 100644 index 00000000..34db6df9 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-watchos-simulator.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-watchos-simulator.swiftsourceinfo new file mode 100644 index 00000000..d4af3d88 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-watchos-simulator.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo new file mode 100644 index 00000000..d4af3d88 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftdoc new file mode 100644 index 00000000..bdeb9a77 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftinterface new file mode 100644 index 00000000..85b7ee01 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-watchos2.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc new file mode 100644 index 00000000..bdeb9a77 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface new file mode 100644 index 00000000..85b7ee01 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/arm64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target arm64-apple-watchos2.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftdoc new file mode 100644 index 00000000..e347b781 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftinterface new file mode 100644 index 00000000..b0b8fc50 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target i386-apple-watchos2.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftdoc new file mode 100644 index 00000000..e347b781 Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftinterface new file mode 100644 index 00000000..b0b8fc50 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/i386.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target i386-apple-watchos2.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftdoc new file mode 100644 index 00000000..c2cc455a Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface new file mode 100644 index 00000000..04587b93 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-watchos2.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc new file mode 100644 index 00000000..c2cc455a Binary files /dev/null and b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc differ diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface new file mode 100644 index 00000000..04587b93 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface @@ -0,0 +1,737 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8) +// swift-module-flags: -target x86_64-apple-watchos2.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=unchecked -O -module-name CryptoSwift +@_exported import CryptoSwift +import Darwin +import Foundation +import Swift +public struct CFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CFB.Error, b: CryptoSwift.CFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public class CMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case wrongKeyLength + public static func == (a: CryptoSwift.CMAC.Error, b: CryptoSwift.CMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array) throws + public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + public func authenticate(_ bytes: Swift.Array, cipher: CryptoSwift.Cipher) throws -> Swift.Array + @objc deinit +} +final public class GCM : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.GCM.Mode, b: CryptoSwift.GCM.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidInitializationVector + case fail + public static func == (a: CryptoSwift.GCM.Error, b: CryptoSwift.GCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached) + convenience public init(iv: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.GCM.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +@_inheritsConvenienceInitializers final public class CBCMAC : CryptoSwift.CMAC { + override final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit + override public init(key: Swift.Array) throws +} +extension AES { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public struct HKDF { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.HKDF.Error, b: CryptoSwift.HKDF.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array? = nil, info: Swift.Array? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array +} +final public class HMAC : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + case invalidInput + public static func == (a: CryptoSwift.HMAC.Error, b: CryptoSwift.HMAC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case sha1, sha256, sha384, sha512, md5 + public static func == (a: CryptoSwift.HMAC.Variant, b: CryptoSwift.HMAC.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(key: Swift.Array, variant: CryptoSwift.HMAC.Variant = .md5) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD { + public static let kLen: Swift.Int + public static var ivRange: Swift.Range + public static func encrypt(_ plainText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array) throws -> (cipherText: Swift.Array, authenticationTag: Swift.Array) + public static func decrypt(_ cipherText: Swift.Array, key: Swift.Array, iv: Swift.Array, authenticationHeader: Swift.Array, authenticationTag: Swift.Array) throws -> (plainText: Swift.Array, success: Swift.Bool) + @objc deinit +} +final public class Poly1305 : CryptoSwift.Authenticator { + public enum Error : Swift.Error { + case authenticateError + public static func == (a: CryptoSwift.Poly1305.Error, b: CryptoSwift.Poly1305.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + public init(key: Swift.Array) + final public func authenticate(_ bytes: Swift.Array) throws -> Swift.Array + @objc deinit +} +public protocol Cryptor { + mutating func seek(to: Swift.Int) throws +} +public typealias CipherOperationOnBlock = (Swift.ArraySlice) -> Swift.Array? +public protocol BlockMode { + var options: CryptoSwift.BlockModeOption { get } + func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public enum CipherError : Swift.Error { + case encrypt + case decrypt + public static func == (a: CryptoSwift.CipherError, b: CryptoSwift.CipherError) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol Cipher : AnyObject { + var keySize: Swift.Int { get } + func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +extension Cipher { + public func encrypt(_ bytes: Swift.Array) throws -> Swift.Array + public func decrypt(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class SHA2 { + public enum Variant : Swift.RawRepresentable { + case sha224, sha256, sha384, sha512 + public var digestLength: Swift.Int { + get + } + public var blockSize: Swift.Int { + get + } + public typealias RawValue = Swift.Int + public var rawValue: CryptoSwift.SHA2.Variant.RawValue { + get + } + public init?(rawValue: CryptoSwift.SHA2.Variant.RawValue) + } + public init(variant: CryptoSwift.SHA2.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA2 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +extension Blowfish { + convenience public init(key: Swift.String, iv: Swift.String, padding: CryptoSwift.Padding = .pkcs7) throws +} +public protocol Updatable { + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool) throws -> Swift.Array + mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool, output: (Swift.Array) -> Swift.Void) throws +} +extension Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false) throws -> Swift.Array + public mutating func update(withBytes bytes: Swift.Array, isLast: Swift.Bool = false, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.ArraySlice) throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.Array) throws -> Swift.Array + public mutating func finish() throws -> Swift.Array + public mutating func finish(withBytes bytes: Swift.ArraySlice, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(withBytes bytes: Swift.Array, output: (Swift.Array) -> Swift.Void) throws + public mutating func finish(output: (Swift.Array) -> Swift.Void) throws +} +@_hasMissingDesignatedInitializers final public class Checksum { + @objc deinit +} +extension Checksum { + public static func crc32(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc32c(_ message: Swift.Array, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public static func crc16(_ message: Swift.Array, seed: Swift.UInt16? = nil) -> Swift.UInt16 +} +extension Rabbit { + convenience public init(key: Swift.String) throws + convenience public init(key: Swift.String, iv: Swift.String) throws +} +extension PKCS5 { + public struct PBKDF1 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Error, b: CryptoSwift.PKCS5.PBKDF1.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant { + case md5, sha1 + public static func == (a: CryptoSwift.PKCS5.PBKDF1.Variant, b: CryptoSwift.PKCS5.PBKDF1.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws + public func calculate() -> Swift.Array + } +} +public protocol Cryptors : AnyObject { + func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + static func randomIV(_ blockSize: Swift.Int) -> Swift.Array +} +extension Cryptors { + public static func randomIV(_ count: Swift.Int) -> Swift.Array +} +public struct ECB : CryptoSwift.BlockMode { + public let options: CryptoSwift.BlockModeOption + public init() + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public protocol CipherModeWorker { + var cipherOperation: CryptoSwift.CipherOperationOnBlock { get } + var additionalBufferSize: Swift.Int { get } + mutating func encrypt(block plaintext: Swift.ArraySlice) -> Swift.Array + mutating func decrypt(block ciphertext: Swift.ArraySlice) -> Swift.Array +} +public protocol BlockModeWorker : CryptoSwift.CipherModeWorker { + var blockSize: Swift.Int { get } +} +public protocol CounterModeWorker : CryptoSwift.CipherModeWorker { + associatedtype Counter + var counter: Self.Counter { get set } +} +public protocol SeekableModeWorker : CryptoSwift.CipherModeWorker { + mutating func seek(to position: Swift.Int) throws +} +public protocol StreamModeWorker : CryptoSwift.CipherModeWorker { +} +public protocol FinalizingEncryptModeWorker : CryptoSwift.CipherModeWorker { + mutating func finalize(encrypt ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker { + @discardableResult + mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice + mutating func finalize(decrypt plaintext: Swift.ArraySlice) throws -> Swift.ArraySlice +} +extension HMAC { + convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws +} +extension String { + public var bytes: Swift.Array { + get + } + public func md5() -> Swift.String + public func sha1() -> Swift.String + public func sha224() -> Swift.String + public func sha256() -> Swift.String + public func sha384() -> Swift.String + public func sha512() -> Swift.String + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Swift.String + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.String + public func crc16(seed: Swift.UInt16? = nil) -> Swift.String + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func encryptToBase64(cipher: CryptoSwift.Cipher) throws -> Swift.String? + public func authenticate(with authenticator: A) throws -> Swift.String where A : CryptoSwift.Authenticator +} +public enum PKCS7 { +} +final public class SHA1 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA1 : CryptoSwift.Updatable { + @discardableResult + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +public enum Bit : Swift.Int { + case zero + case one + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } +} +extension ChaCha20 { + convenience public init(key: Swift.String, iv: Swift.String) throws +} +public struct CCM { + public enum Error : Swift.Error { + case invalidInitializationVector + case invalidParameter + case fail + public static func == (a: CryptoSwift.CCM.Error, b: CryptoSwift.CCM.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public var authenticationTag: Swift.Array? + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array? = nil) + public init(iv: Swift.Array, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct CTR { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CTR.Error, b: CryptoSwift.CTR.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array, counter: Swift.Int = 0) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class MD5 { + public init() + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension MD5 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class AES { + public enum Error : Swift.Error { + case invalidKeySize + case dataPaddingRequired + case invalidData + public static func == (a: CryptoSwift.AES.Error, b: CryptoSwift.AES.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public enum Variant : Swift.Int { + case aes128, aes192, aes256 + public typealias RawValue = Swift.Int + public init?(rawValue: Swift.Int) + public var rawValue: Swift.Int { + get + } + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + final public let variant: CryptoSwift.AES.Variant + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws + @objc deinit +} +extension AES : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +final public class Blowfish { + public enum Error : Swift.Error { + case dataPaddingRequired + case invalidKeyOrInitializationVector + case invalidInitializationVector + case invalidBlockMode + public static func == (a: CryptoSwift.Blowfish.Error, b: CryptoSwift.Blowfish.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, blockMode: CryptoSwift.BlockMode = CBC(iv: Array(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws + @objc deinit +} +extension Blowfish : CryptoSwift.Cipher { + final public func encrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int + final public func decrypt(_ bytes: C) throws -> Swift.Array where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int +} +public protocol PaddingProtocol { + func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array +} +public enum Padding : CryptoSwift.PaddingProtocol { + case noPadding, zeroPadding, pkcs7, pkcs5, iso78164 + public func add(to: Swift.Array, blockSize: Swift.Int) -> Swift.Array + public func remove(from: Swift.Array, blockSize: Swift.Int?) -> Swift.Array + public static func == (a: CryptoSwift.Padding, b: CryptoSwift.Padding) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +extension Data { + public func checksum() -> Swift.UInt16 + public func md5() -> Foundation.Data + public func sha1() -> Foundation.Data + public func sha224() -> Foundation.Data + public func sha256() -> Foundation.Data + public func sha384() -> Foundation.Data + public func sha512() -> Foundation.Data + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> Foundation.Data + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Foundation.Data + public func crc16(seed: Swift.UInt16? = nil) -> Foundation.Data + public func encrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func decrypt(cipher: CryptoSwift.Cipher) throws -> Foundation.Data + public func authenticate(with authenticator: CryptoSwift.Authenticator) throws -> Foundation.Data +} +extension Data { + public init(hex: Swift.String) + public var bytes: Swift.Array { + get + } + public func toHexString() -> Swift.String +} +public protocol _UInt8Type { +} +extension UInt8 : CryptoSwift._UInt8Type { +} +extension UInt8 { + public func bits() -> [CryptoSwift.Bit] + public func bits() -> Swift.String +} +public struct OFB : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.OFB.Error, b: CryptoSwift.OFB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +public struct BlockModeOption : Swift.OptionSet { + public let rawValue: Swift.Int + public init(rawValue: Swift.Int) + public typealias Element = CryptoSwift.BlockModeOption + public typealias ArrayLiteralElement = CryptoSwift.BlockModeOption + public typealias RawValue = Swift.Int +} +extension AES : CryptoSwift.Cryptors { + final public func makeEncryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() throws -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +extension Array where Element == Swift.UInt8 { + public init(hex: Swift.String) + public func toHexString() -> Swift.String +} +extension Array where Element == Swift.UInt8 { + @available(*, deprecated) + public func chunks(size chunksize: Swift.Int) -> Swift.Array> + public func md5() -> [Element] + public func sha1() -> [Element] + public func sha224() -> [Element] + public func sha256() -> [Element] + public func sha384() -> [Element] + public func sha512() -> [Element] + public func sha2(_ variant: CryptoSwift.SHA2.Variant) -> [Element] + public func sha3(_ variant: CryptoSwift.SHA3.Variant) -> [Element] + public func crc32(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc32c(seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32 + public func crc16(seed: Swift.UInt16? = nil) -> Swift.UInt16 + public func encrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func decrypt(cipher: CryptoSwift.Cipher) throws -> [Element] + public func authenticate(with authenticator: A) throws -> [Element] where A : CryptoSwift.Authenticator +} +public enum PKCS5 { +} +public protocol AEAD { + static var kLen: Swift.Int { get } + static var ivRange: Swift.Range { get } +} +final public class OCB : CryptoSwift.BlockMode { + public enum Mode { + case combined + case detached + public static func == (a: CryptoSwift.OCB.Mode, b: CryptoSwift.OCB.Mode) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public let options: CryptoSwift.BlockModeOption + public enum Error : Swift.Error { + case invalidNonce + case fail + public static func == (a: CryptoSwift.OCB.Error, b: CryptoSwift.OCB.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + final public var authenticationTag: Swift.Array? + public init(nonce N: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached) + convenience public init(nonce N: Swift.Array, authenticationTag: Swift.Array, additionalAuthenticatedData: Swift.Array? = nil, mode: CryptoSwift.OCB.Mode = .detached) + final public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker + @objc deinit +} +public struct PCBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.PCBC.Error, b: CryptoSwift.PCBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +final public class ChaCha20 { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + case notSupported + public static func == (a: CryptoSwift.ChaCha20.Error, b: CryptoSwift.ChaCha20.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let blockSize: Swift.Int + final public let keySize: Swift.Int + public init(key: Swift.Array, iv nonce: Swift.Array) throws + @objc deinit +} +extension ChaCha20 : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +extension ChaCha20 { + public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 { + public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public mutating func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = true) throws -> Swift.Array + public func seek(to: Swift.Int) throws + } +} +extension ChaCha20 : CryptoSwift.Cryptors { + final public func makeEncryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable + final public func makeDecryptor() -> CryptoSwift.Cryptor & CryptoSwift.Updatable +} +public struct CBC : CryptoSwift.BlockMode { + public enum Error : Swift.Error { + case invalidInitializationVector + public static func == (a: CryptoSwift.CBC.Error, b: CryptoSwift.CBC.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public let options: CryptoSwift.BlockModeOption + public init(iv: Swift.Array) + public func worker(blockSize: Swift.Int, cipherOperation: @escaping CryptoSwift.CipherOperationOnBlock, encryptionOperation: @escaping CryptoSwift.CipherOperationOnBlock) throws -> CryptoSwift.CipherModeWorker +} +extension PKCS5 { + public struct PBKDF2 { + public enum Error : Swift.Error { + case invalidInput + case derivedKeyTooLong + public static func == (a: CryptoSwift.PKCS5.PBKDF2.Error, b: CryptoSwift.PKCS5.PBKDF2.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(password: Swift.Array, salt: Swift.Array, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws + public func calculate() throws -> Swift.Array + } +} +public protocol Authenticator { + func authenticate(_ bytes: Swift.Array) throws -> Swift.Array +} +final public class Rabbit { + public enum Error : Swift.Error { + case invalidKeyOrInitializationVector + public static func == (a: CryptoSwift.Rabbit.Error, b: CryptoSwift.Rabbit.Error) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public static let ivSize: Swift.Int + public static let keySize: Swift.Int + public static let blockSize: Swift.Int + final public var keySize: Swift.Int { + get + } + convenience public init(key: Swift.Array) throws + public init(key: Swift.Array, iv: Swift.Array?) throws + @objc deinit +} +extension Rabbit : CryptoSwift.Cipher { + final public func encrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array + final public func decrypt(_ bytes: Swift.ArraySlice) throws -> Swift.Array +} +@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable { + public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array + public func seek(to position: Swift.Int) throws + @objc deinit +} +extension String { + public func decryptBase64ToString(cipher: CryptoSwift.Cipher) throws -> Swift.String + public func decryptBase64(cipher: CryptoSwift.Cipher) throws -> Swift.Array +} +extension Array where Element == Swift.UInt8 { + public func toBase64() -> Swift.String? + public init(base64: Swift.String) +} +final public class SHA3 { + final public let blockSize: Swift.Int + final public let digestLength: Swift.Int + final public let markByte: Swift.UInt8 + public enum Variant { + case sha224, sha256, sha384, sha512, keccak224, keccak256, keccak384, keccak512 + public var outputLength: Swift.Int { + get + } + public static func == (a: CryptoSwift.SHA3.Variant, b: CryptoSwift.SHA3.Variant) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) + } + public init(variant: CryptoSwift.SHA3.Variant) + final public func calculate(for bytes: Swift.Array) -> Swift.Array + @objc deinit +} +extension SHA3 : CryptoSwift.Updatable { + final public func update(withBytes bytes: Swift.ArraySlice, isLast: Swift.Bool = false) throws -> Swift.Array +} +final public class Scrypt { + public init(password: Swift.Array, salt: Swift.Array, dkLen: Swift.Int, N: Swift.Int, r: Swift.Int, p: Swift.Int) throws + final public func calculate() throws -> [Swift.UInt8] + @objc deinit +} +@available(*, renamed: "Digest") +public typealias Hash = CryptoSwift.Digest +public struct Digest { + public static func md5(_ bytes: Swift.Array) -> Swift.Array + public static func sha1(_ bytes: Swift.Array) -> Swift.Array + public static func sha224(_ bytes: Swift.Array) -> Swift.Array + public static func sha256(_ bytes: Swift.Array) -> Swift.Array + public static func sha384(_ bytes: Swift.Array) -> Swift.Array + public static func sha512(_ bytes: Swift.Array) -> Swift.Array + public static func sha2(_ bytes: Swift.Array, variant: CryptoSwift.SHA2.Variant) -> Swift.Array + public static func sha3(_ bytes: Swift.Array, variant: CryptoSwift.SHA3.Variant) -> Swift.Array +} +extension CryptoSwift.CFB.Error : Swift.Equatable {} +extension CryptoSwift.CFB.Error : Swift.Hashable {} +extension CryptoSwift.CMAC.Error : Swift.Equatable {} +extension CryptoSwift.CMAC.Error : Swift.Hashable {} +extension CryptoSwift.GCM.Mode : Swift.Equatable {} +extension CryptoSwift.GCM.Mode : Swift.Hashable {} +extension CryptoSwift.GCM.Error : Swift.Equatable {} +extension CryptoSwift.GCM.Error : Swift.Hashable {} +extension CryptoSwift.HKDF.Error : Swift.Equatable {} +extension CryptoSwift.HKDF.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Error : Swift.Equatable {} +extension CryptoSwift.HMAC.Error : Swift.Hashable {} +extension CryptoSwift.HMAC.Variant : Swift.Equatable {} +extension CryptoSwift.HMAC.Variant : Swift.Hashable {} +extension CryptoSwift.Poly1305.Error : Swift.Equatable {} +extension CryptoSwift.Poly1305.Error : Swift.Hashable {} +extension CryptoSwift.CipherError : Swift.Equatable {} +extension CryptoSwift.CipherError : Swift.Hashable {} +extension CryptoSwift.SHA2.Variant : Swift.Equatable {} +extension CryptoSwift.SHA2.Variant : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF1.Variant : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.Equatable {} +extension CryptoSwift.Bit : Swift.Hashable {} +extension CryptoSwift.Bit : Swift.RawRepresentable {} +extension CryptoSwift.CCM : CryptoSwift.BlockMode {} +extension CryptoSwift.CCM.Error : Swift.Equatable {} +extension CryptoSwift.CCM.Error : Swift.Hashable {} +extension CryptoSwift.CTR : CryptoSwift.BlockMode {} +extension CryptoSwift.CTR.Error : Swift.Equatable {} +extension CryptoSwift.CTR.Error : Swift.Hashable {} +extension CryptoSwift.AES.Error : Swift.Equatable {} +extension CryptoSwift.AES.Error : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.Equatable {} +extension CryptoSwift.AES.Variant : Swift.Hashable {} +extension CryptoSwift.AES.Variant : Swift.RawRepresentable {} +extension CryptoSwift.Blowfish.Error : Swift.Equatable {} +extension CryptoSwift.Blowfish.Error : Swift.Hashable {} +extension CryptoSwift.Padding : Swift.Equatable {} +extension CryptoSwift.Padding : Swift.Hashable {} +extension CryptoSwift.OFB.Error : Swift.Equatable {} +extension CryptoSwift.OFB.Error : Swift.Hashable {} +extension CryptoSwift.OCB.Mode : Swift.Equatable {} +extension CryptoSwift.OCB.Mode : Swift.Hashable {} +extension CryptoSwift.OCB.Error : Swift.Equatable {} +extension CryptoSwift.OCB.Error : Swift.Hashable {} +extension CryptoSwift.PCBC.Error : Swift.Equatable {} +extension CryptoSwift.PCBC.Error : Swift.Hashable {} +extension CryptoSwift.ChaCha20.Error : Swift.Equatable {} +extension CryptoSwift.ChaCha20.Error : Swift.Hashable {} +extension CryptoSwift.CBC.Error : Swift.Equatable {} +extension CryptoSwift.CBC.Error : Swift.Hashable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Equatable {} +extension CryptoSwift.PKCS5.PBKDF2.Error : Swift.Hashable {} +extension CryptoSwift.Rabbit.Error : Swift.Equatable {} +extension CryptoSwift.Rabbit.Error : Swift.Hashable {} +extension CryptoSwift.SHA3.Variant : Swift.Equatable {} +extension CryptoSwift.SHA3.Variant : Swift.Hashable {} diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/module.modulemap b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/module.modulemap new file mode 100644 index 00000000..0253372f --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/Modules/module.modulemap @@ -0,0 +1,11 @@ +framework module CryptoSwift { + umbrella header "CryptoSwift.h" + + export * + module * { export * } +} + +module CryptoSwift.Swift { + header "CryptoSwift-Swift.h" + requires objc +} diff --git a/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/_CodeSignature/CodeResources b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/_CodeSignature/CodeResources new file mode 100644 index 00000000..50f9c7a1 --- /dev/null +++ b/CryptoSwift.xcframework/watchos-arm64_i386_x86_64-simulator/CryptoSwift.framework/_CodeSignature/CodeResources @@ -0,0 +1,507 @@ + + + + + files + + Headers/CryptoSwift-Swift.h + + b5YF4mZSdFPeGankgjT7gSKbT1w= + + Headers/CryptoSwift.h + + spmS3Ur7W7wnG1nc6iY/t4Q7X0c= + + Info.plist + + 9uVn9t7A2RUI88fsfjlYydLUZXg= + + Modules/CryptoSwift.swiftmodule/Project/arm64-apple-watchos-simulator.swiftsourceinfo + + +0LaGJ2QnZmBKjrFwTTpF/tRkmA= + + Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo + + +0LaGJ2QnZmBKjrFwTTpF/tRkmA= + + Modules/CryptoSwift.swiftmodule/Project/i386-apple-watchos-simulator.swiftsourceinfo + + 8VoRBhLY7QqrFDylXAjrH3o/ZM0= + + Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo + + 8VoRBhLY7QqrFDylXAjrH3o/ZM0= + + Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-watchos-simulator.swiftsourceinfo + + UB5bdMw/zTx5dFyVCF6w+wcyisA= + + Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo + + UB5bdMw/zTx5dFyVCF6w+wcyisA= + + Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftdoc + + cA5x/OjZLrxQ6l/gCHQUqridFPY= + + Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftinterface + + Z8rQgi1YLhD6+xr30oNlKpMVIBw= + + Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftmodule + + zkYLN6bBnXR6IYXiCcUJVDawVWo= + + Modules/CryptoSwift.swiftmodule/arm64.swiftdoc + + cA5x/OjZLrxQ6l/gCHQUqridFPY= + + Modules/CryptoSwift.swiftmodule/arm64.swiftinterface + + Z8rQgi1YLhD6+xr30oNlKpMVIBw= + + Modules/CryptoSwift.swiftmodule/arm64.swiftmodule + + zkYLN6bBnXR6IYXiCcUJVDawVWo= + + Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftdoc + + Lr0A9gBqBhynVsIikMfI1Vc0ll8= + + Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftinterface + + 6gfc4AxVRb5Xx3dPnQXWd9qPC5M= + + Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftmodule + + iSwDFS9LwyG4/tEFz3AV4ee1Qow= + + Modules/CryptoSwift.swiftmodule/i386.swiftdoc + + Lr0A9gBqBhynVsIikMfI1Vc0ll8= + + Modules/CryptoSwift.swiftmodule/i386.swiftinterface + + 6gfc4AxVRb5Xx3dPnQXWd9qPC5M= + + Modules/CryptoSwift.swiftmodule/i386.swiftmodule + + iSwDFS9LwyG4/tEFz3AV4ee1Qow= + + Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftdoc + + PMU2we6iho1U+gb38WvmJ6wIXcQ= + + Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface + + zS625DqKo9H8BxYohwX+S3ClwGo= + + Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftmodule + + yXfnZPTfXgywJiIbNI3WD7BgnmE= + + Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc + + PMU2we6iho1U+gb38WvmJ6wIXcQ= + + Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface + + zS625DqKo9H8BxYohwX+S3ClwGo= + + Modules/CryptoSwift.swiftmodule/x86_64.swiftmodule + + yXfnZPTfXgywJiIbNI3WD7BgnmE= + + Modules/module.modulemap + + 16Q2OexcCOG47FI6HDnxVKJP2ug= + + + files2 + + Headers/CryptoSwift-Swift.h + + hash + + b5YF4mZSdFPeGankgjT7gSKbT1w= + + hash2 + + xwSG9MHt/ckOhjXpRvcLSNX5tHr2ShRWb2+NdNdZtkA= + + + Headers/CryptoSwift.h + + hash + + spmS3Ur7W7wnG1nc6iY/t4Q7X0c= + + hash2 + + LKTFZeCP6yi+xx9GiYdLvJom52FZ5NRrUx7+M7cJWyM= + + + Modules/CryptoSwift.swiftmodule/Project/arm64-apple-watchos-simulator.swiftsourceinfo + + hash + + +0LaGJ2QnZmBKjrFwTTpF/tRkmA= + + hash2 + + pyA/3eqoNrszyrHjc8F+oKGqZEf/TCkKP6svFucFecc= + + + Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo + + hash + + +0LaGJ2QnZmBKjrFwTTpF/tRkmA= + + hash2 + + pyA/3eqoNrszyrHjc8F+oKGqZEf/TCkKP6svFucFecc= + + + Modules/CryptoSwift.swiftmodule/Project/i386-apple-watchos-simulator.swiftsourceinfo + + hash + + 8VoRBhLY7QqrFDylXAjrH3o/ZM0= + + hash2 + + IM+evcb6L36uEvxKskxLmxCXqkt0ptn8Nv7y1IhjGlk= + + + Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo + + hash + + 8VoRBhLY7QqrFDylXAjrH3o/ZM0= + + hash2 + + IM+evcb6L36uEvxKskxLmxCXqkt0ptn8Nv7y1IhjGlk= + + + Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-watchos-simulator.swiftsourceinfo + + hash + + UB5bdMw/zTx5dFyVCF6w+wcyisA= + + hash2 + + Dgk0YUshE6tcMEDpGCLQgEaPMCZMXNb9sWyhuQqG2K0= + + + Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo + + hash + + UB5bdMw/zTx5dFyVCF6w+wcyisA= + + hash2 + + Dgk0YUshE6tcMEDpGCLQgEaPMCZMXNb9sWyhuQqG2K0= + + + Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftdoc + + hash + + cA5x/OjZLrxQ6l/gCHQUqridFPY= + + hash2 + + nwAkWvT6cF6nt7Firhb93ERPvSiTrs7oc85A6C26zyc= + + + Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftinterface + + hash + + Z8rQgi1YLhD6+xr30oNlKpMVIBw= + + hash2 + + 27Y8VkleFAMlk6gScmbnAxAYx2BXAQUx2bNFL5chBgc= + + + Modules/CryptoSwift.swiftmodule/arm64-apple-watchos-simulator.swiftmodule + + hash + + zkYLN6bBnXR6IYXiCcUJVDawVWo= + + hash2 + + Pj2CbBusZ91n/l5jpe92GO6Ajxm9TS3zfr2+yE1ad84= + + + Modules/CryptoSwift.swiftmodule/arm64.swiftdoc + + hash + + cA5x/OjZLrxQ6l/gCHQUqridFPY= + + hash2 + + nwAkWvT6cF6nt7Firhb93ERPvSiTrs7oc85A6C26zyc= + + + Modules/CryptoSwift.swiftmodule/arm64.swiftinterface + + hash + + Z8rQgi1YLhD6+xr30oNlKpMVIBw= + + hash2 + + 27Y8VkleFAMlk6gScmbnAxAYx2BXAQUx2bNFL5chBgc= + + + Modules/CryptoSwift.swiftmodule/arm64.swiftmodule + + hash + + zkYLN6bBnXR6IYXiCcUJVDawVWo= + + hash2 + + Pj2CbBusZ91n/l5jpe92GO6Ajxm9TS3zfr2+yE1ad84= + + + Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftdoc + + hash + + Lr0A9gBqBhynVsIikMfI1Vc0ll8= + + hash2 + + 9XtWwHoyXgiDsioeMHiuIAkgB4q5vVki0/gz+5KQMKE= + + + Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftinterface + + hash + + 6gfc4AxVRb5Xx3dPnQXWd9qPC5M= + + hash2 + + sDGXpHgLINzmuExIaij9DvtuAeoCzYlDeouewxd6Lbw= + + + Modules/CryptoSwift.swiftmodule/i386-apple-watchos-simulator.swiftmodule + + hash + + iSwDFS9LwyG4/tEFz3AV4ee1Qow= + + hash2 + + BY/473pshsLoH5Fnb6LY2Uy3kcvdR2qmqFBgFdcSgMs= + + + Modules/CryptoSwift.swiftmodule/i386.swiftdoc + + hash + + Lr0A9gBqBhynVsIikMfI1Vc0ll8= + + hash2 + + 9XtWwHoyXgiDsioeMHiuIAkgB4q5vVki0/gz+5KQMKE= + + + Modules/CryptoSwift.swiftmodule/i386.swiftinterface + + hash + + 6gfc4AxVRb5Xx3dPnQXWd9qPC5M= + + hash2 + + sDGXpHgLINzmuExIaij9DvtuAeoCzYlDeouewxd6Lbw= + + + Modules/CryptoSwift.swiftmodule/i386.swiftmodule + + hash + + iSwDFS9LwyG4/tEFz3AV4ee1Qow= + + hash2 + + BY/473pshsLoH5Fnb6LY2Uy3kcvdR2qmqFBgFdcSgMs= + + + Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftdoc + + hash + + PMU2we6iho1U+gb38WvmJ6wIXcQ= + + hash2 + + d4ytOd0QE7CwC/sBxr1gIpQq3kVlMBmYAeKflWzOVao= + + + Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftinterface + + hash + + zS625DqKo9H8BxYohwX+S3ClwGo= + + hash2 + + oS2z19pR7myaucZ2kLIDERBvfI3RF5tLjKfKu8OsaVI= + + + Modules/CryptoSwift.swiftmodule/x86_64-apple-watchos-simulator.swiftmodule + + hash + + yXfnZPTfXgywJiIbNI3WD7BgnmE= + + hash2 + + eGhIe6oOD6Z/eqJvYkICaqffLI2zcRN4RyNCLsRIUo0= + + + Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc + + hash + + PMU2we6iho1U+gb38WvmJ6wIXcQ= + + hash2 + + d4ytOd0QE7CwC/sBxr1gIpQq3kVlMBmYAeKflWzOVao= + + + Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface + + hash + + zS625DqKo9H8BxYohwX+S3ClwGo= + + hash2 + + oS2z19pR7myaucZ2kLIDERBvfI3RF5tLjKfKu8OsaVI= + + + Modules/CryptoSwift.swiftmodule/x86_64.swiftmodule + + hash + + yXfnZPTfXgywJiIbNI3WD7BgnmE= + + hash2 + + eGhIe6oOD6Z/eqJvYkICaqffLI2zcRN4RyNCLsRIUo0= + + + Modules/module.modulemap + + hash + + 16Q2OexcCOG47FI6HDnxVKJP2ug= + + hash2 + + C32ElEa4raJNSZ6Tx9RY4FEdz0Tv2naYEzCCKRTamUw= + + + + rules + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^.* + + ^.*\.lproj/ + + optional + + weight + 1000 + + ^.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Base\.lproj/ + + weight + 1010 + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/Package.swift b/Package.swift index 35d2730d..44da8dd4 100644 --- a/Package.swift +++ b/Package.swift @@ -17,8 +17,7 @@ let package = Package( targets: [ .binaryTarget( name: "CryptoSwift", - url: "https://github.com/krzyzanowskim/CryptoSwift/releases/download/1.3.6/CryptoSwift.xcframework.zip", - checksum: "555f8e141dacb9f5a1635d7a5afa6cbee62709f3dba13f799c84e62339c2a2a8" + path: "CryptoSwift.xcframework" ), .testTarget(name: "TestsPerformance", dependencies: ["CryptoSwift"]) ] diff --git a/scripts/build-framework.sh b/scripts/build-framework.sh index 5fa1443b..59427f57 100755 --- a/scripts/build-framework.sh +++ b/scripts/build-framework.sh @@ -96,6 +96,7 @@ ditto "${DERIVED_DATA_PATH}/Build/Products/Release-watchsimulator/CryptoSwift.fr rm -rf "${DERIVED_DATA_PATH}" # XCFRAMEWORK +rm -rf ${SCRIPT_DIR}/../CryptoSwift.xcframework xcrun xcodebuild -quiet -create-xcframework \ -framework "${OUTPUT_DIR}/iphoneos/CryptoSwift.framework" \ -framework "${OUTPUT_DIR}/iphonesimulator/CryptoSwift.framework" \ @@ -105,13 +106,14 @@ xcrun xcodebuild -quiet -create-xcframework \ -framework "${OUTPUT_DIR}/watchsimulator/CryptoSwift.framework" \ -framework "${OUTPUT_DIR}/macos/CryptoSwift.framework" \ -framework "${OUTPUT_DIR}/maccatalyst/CryptoSwift.framework" \ - -output ${OUTPUT_DIR}/CryptoSwift.xcframework + -output ${SCRIPT_DIR}/../CryptoSwift.xcframework -pushd ${OUTPUT_DIR}/CryptoSwift.xcframework -xcrun zip --symlinks -r -o ${BASE_PWD}/CryptoSwift.xcframework.zip . -popd +# pushd ${OUTPUT_DIR} +# xcrun zip --symlinks -r -o ${BASE_PWD}/CryptoSwift.xcframework.zip CryptoSwift.xcframework +# popd echo "✔️ CryptoSwift.xcframework" +echo ${OUTPUT_DIR} rm -rf ${OUTPUT_DIR} cd ${BASE_PWD} \ No newline at end of file