mirror of
https://github.com/krzyzanowskim/CryptoSwift.git
synced 2026-05-07 20:12:26 +00:00
Put SPM artifacts in repo, because apparently it has issues with remote artifacts
This commit is contained in:
@@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>tvos-arm64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>CryptoSwift.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>tvos</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>tvos-arm64_x86_64-simulator</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>CryptoSwift.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>tvos</string>
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>watchos-arm64_32_armv7k</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>CryptoSwift.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64_32</string>
|
||||
<string>armv7k</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>watchos</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64_x86_64-maccatalyst</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>CryptoSwift.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>maccatalyst</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64_i386_x86_64-simulator</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>CryptoSwift.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>i386</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>macos-arm64_x86_64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>CryptoSwift.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>macos</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64_armv7</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>CryptoSwift.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>watchos-arm64_i386_x86_64-simulator</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>CryptoSwift.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>i386</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>watchos</string>
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
<key>XCFrameworkFormatVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
+430
@@ -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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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
|
||||
@@ -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[];
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
framework module CryptoSwift {
|
||||
umbrella header "CryptoSwift.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
|
||||
module CryptoSwift.Swift {
|
||||
header "CryptoSwift-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
+644
@@ -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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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
|
||||
+15
@@ -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[];
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
framework module CryptoSwift {
|
||||
umbrella header "CryptoSwift.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
|
||||
module CryptoSwift.Swift {
|
||||
header "CryptoSwift-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
+507
@@ -0,0 +1,507 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Headers/CryptoSwift-Swift.h</key>
|
||||
<data>
|
||||
b5YF4mZSdFPeGankgjT7gSKbT1w=
|
||||
</data>
|
||||
<key>Headers/CryptoSwift.h</key>
|
||||
<data>
|
||||
spmS3Ur7W7wnG1nc6iY/t4Q7X0c=
|
||||
</data>
|
||||
<key>Info.plist</key>
|
||||
<data>
|
||||
JlFKPPElI00axbg7l1k0jx1ILvM=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
|
||||
<data>
|
||||
olK7DLW2fdAdyYYyBfD/wKODUFE=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo</key>
|
||||
<data>
|
||||
olK7DLW2fdAdyYYyBfD/wKODUFE=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo</key>
|
||||
<data>
|
||||
5leASJCgntC1HxDv+qVmNT7wu1E=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo</key>
|
||||
<data>
|
||||
5leASJCgntC1HxDv+qVmNT7wu1E=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
||||
<data>
|
||||
fWxJIVxwg2Cev5G4ehoLPK2yp9o=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo</key>
|
||||
<data>
|
||||
fWxJIVxwg2Cev5G4ehoLPK2yp9o=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||
<data>
|
||||
aFKLfIXJKX3+eeO/Kbn+nxuQ1mw=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||
<data>
|
||||
pRh3CVYhmp/ynikIinyh7tP3u58=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||
<data>
|
||||
Q9UHJWzDCpG/+ccEN9ychPCJkC4=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64.swiftdoc</key>
|
||||
<data>
|
||||
aFKLfIXJKX3+eeO/Kbn+nxuQ1mw=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64.swiftinterface</key>
|
||||
<data>
|
||||
pRh3CVYhmp/ynikIinyh7tP3u58=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64.swiftmodule</key>
|
||||
<data>
|
||||
Q9UHJWzDCpG/+ccEN9ychPCJkC4=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftdoc</key>
|
||||
<data>
|
||||
fvCMU6bysane/UZ0VLNEUpfXG6w=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftinterface</key>
|
||||
<data>
|
||||
bSa11Ql8IcPivvklqnYO75vAgpo=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftmodule</key>
|
||||
<data>
|
||||
xShQW4ecnMBLRTGeLvDcKQ/LjgM=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386.swiftdoc</key>
|
||||
<data>
|
||||
fvCMU6bysane/UZ0VLNEUpfXG6w=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386.swiftinterface</key>
|
||||
<data>
|
||||
bSa11Ql8IcPivvklqnYO75vAgpo=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386.swiftmodule</key>
|
||||
<data>
|
||||
xShQW4ecnMBLRTGeLvDcKQ/LjgM=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||
<data>
|
||||
3OoX826ZGGE2xe2aVTpPUzy0Q7k=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||
<data>
|
||||
qhbP3005kGsdMwF2kmnB4iEc/2Y=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||
<data>
|
||||
BPY1lEzHDz2D6wtCQ+SDGIo2R5M=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc</key>
|
||||
<data>
|
||||
3OoX826ZGGE2xe2aVTpPUzy0Q7k=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface</key>
|
||||
<data>
|
||||
qhbP3005kGsdMwF2kmnB4iEc/2Y=
|
||||
</data>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64.swiftmodule</key>
|
||||
<data>
|
||||
BPY1lEzHDz2D6wtCQ+SDGIo2R5M=
|
||||
</data>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<data>
|
||||
16Q2OexcCOG47FI6HDnxVKJP2ug=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Headers/CryptoSwift-Swift.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
b5YF4mZSdFPeGankgjT7gSKbT1w=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
xwSG9MHt/ckOhjXpRvcLSNX5tHr2ShRWb2+NdNdZtkA=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/CryptoSwift.h</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
spmS3Ur7W7wnG1nc6iY/t4Q7X0c=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
LKTFZeCP6yi+xx9GiYdLvJom52FZ5NRrUx7+M7cJWyM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
olK7DLW2fdAdyYYyBfD/wKODUFE=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
idhiEwP0rhIVbAfueY9z1O5ASSPO9JlfYpZqul3uMUM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/arm64.swiftsourceinfo</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
olK7DLW2fdAdyYYyBfD/wKODUFE=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
idhiEwP0rhIVbAfueY9z1O5ASSPO9JlfYpZqul3uMUM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
5leASJCgntC1HxDv+qVmNT7wu1E=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
g0V7N0XYLIOz/+0QADgLmz/ZGnjw/mwRbPvtPiHTMLg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/i386.swiftsourceinfo</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
5leASJCgntC1HxDv+qVmNT7wu1E=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
g0V7N0XYLIOz/+0QADgLmz/ZGnjw/mwRbPvtPiHTMLg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
fWxJIVxwg2Cev5G4ehoLPK2yp9o=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
9LsFiZFq2xkpyoCE52lz6zRUgiCjgtKKIihE776ZD2w=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/Project/x86_64.swiftsourceinfo</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
fWxJIVxwg2Cev5G4ehoLPK2yp9o=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
9LsFiZFq2xkpyoCE52lz6zRUgiCjgtKKIihE776ZD2w=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
aFKLfIXJKX3+eeO/Kbn+nxuQ1mw=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
3UvTFzmbZ1a9WF18kMweZrPqTWICCNphy9pZY9Ac90k=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
pRh3CVYhmp/ynikIinyh7tP3u58=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
4qRXUlI7Zdj+Ue93uoTq8X2BwyhyLGbUqKfM8xcYK7E=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
Q9UHJWzDCpG/+ccEN9ychPCJkC4=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
orOleg6R75+u2XxuRn3JbgKUJjs7pynRcj6nLwLA95Q=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
aFKLfIXJKX3+eeO/Kbn+nxuQ1mw=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
3UvTFzmbZ1a9WF18kMweZrPqTWICCNphy9pZY9Ac90k=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
pRh3CVYhmp/ynikIinyh7tP3u58=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
4qRXUlI7Zdj+Ue93uoTq8X2BwyhyLGbUqKfM8xcYK7E=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/arm64.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
Q9UHJWzDCpG/+ccEN9ychPCJkC4=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
orOleg6R75+u2XxuRn3JbgKUJjs7pynRcj6nLwLA95Q=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
fvCMU6bysane/UZ0VLNEUpfXG6w=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
E7vpdba5B1gkbn0lOOCzj2eHAploCpUQV4X8iUznpVI=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
bSa11Ql8IcPivvklqnYO75vAgpo=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
UqAwDRrY+QeWRfw1t2Bi7TJFISmOiSv/5SiVWRVDZsc=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386-apple-ios-simulator.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
xShQW4ecnMBLRTGeLvDcKQ/LjgM=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
a16znJgC+cw83SeM6PPDze4JOpV3kGHBB6N/QJhi/RM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
fvCMU6bysane/UZ0VLNEUpfXG6w=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
E7vpdba5B1gkbn0lOOCzj2eHAploCpUQV4X8iUznpVI=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
bSa11Ql8IcPivvklqnYO75vAgpo=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
UqAwDRrY+QeWRfw1t2Bi7TJFISmOiSv/5SiVWRVDZsc=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/i386.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
xShQW4ecnMBLRTGeLvDcKQ/LjgM=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
a16znJgC+cw83SeM6PPDze4JOpV3kGHBB6N/QJhi/RM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
3OoX826ZGGE2xe2aVTpPUzy0Q7k=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
WDf0OVgeSsB1DIfv0fmlO0UTMxBavUd7GB6CdmJw2lM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
qhbP3005kGsdMwF2kmnB4iEc/2Y=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
gIY/DPD1FvWIJiav7cVAX0bNtujo+HX8rlYSoq0MIHg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
BPY1lEzHDz2D6wtCQ+SDGIo2R5M=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
jVT8i9mT8o5yABevIIFCvOHJQl4NlPl9BzF9yFawgfY=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
3OoX826ZGGE2xe2aVTpPUzy0Q7k=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
WDf0OVgeSsB1DIfv0fmlO0UTMxBavUd7GB6CdmJw2lM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
qhbP3005kGsdMwF2kmnB4iEc/2Y=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
gIY/DPD1FvWIJiav7cVAX0bNtujo+HX8rlYSoq0MIHg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/CryptoSwift.swiftmodule/x86_64.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
BPY1lEzHDz2D6wtCQ+SDGIo2R5M=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
jVT8i9mT8o5yABevIIFCvOHJQl4NlPl9BzF9yFawgfY=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
16Q2OexcCOG47FI6HDnxVKJP2ug=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
C32ElEa4raJNSZ6Tx9RY4FEdz0Tv2naYEzCCKRTamUw=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
+1
@@ -0,0 +1 @@
|
||||
Versions/Current/CryptoSwift
|
||||
+1
@@ -0,0 +1 @@
|
||||
Versions/Current/Headers
|
||||
+1
@@ -0,0 +1 @@
|
||||
Versions/Current/Modules
|
||||
+1
@@ -0,0 +1 @@
|
||||
Versions/Current/Resources
|
||||
Executable
BIN
Binary file not shown.
+430
@@ -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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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
|
||||
+15
@@ -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[];
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
framework module CryptoSwift {
|
||||
umbrella header "CryptoSwift.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
|
||||
module CryptoSwift.Swift {
|
||||
header "CryptoSwift-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>20B29</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>CryptoSwift</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.krzyzanowskim.CryptoSwift</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>CryptoSwift</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.3.6</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>12B45b</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>11.0</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>20A2408</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx11.0</string>
|
||||
<key>DTXcode</key>
|
||||
<string>1220</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>12B45b</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.15</string>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
+1
@@ -0,0 +1 @@
|
||||
A
|
||||
@@ -0,0 +1 @@
|
||||
Versions/Current/CryptoSwift
|
||||
@@ -0,0 +1 @@
|
||||
Versions/Current/Headers
|
||||
@@ -0,0 +1 @@
|
||||
Versions/Current/Modules
|
||||
@@ -0,0 +1 @@
|
||||
Versions/Current/Resources
|
||||
BIN
Binary file not shown.
+430
@@ -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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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
|
||||
+15
@@ -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[];
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
framework module CryptoSwift {
|
||||
umbrella header "CryptoSwift.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
|
||||
module CryptoSwift.Swift {
|
||||
header "CryptoSwift-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>20B29</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>CryptoSwift</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.krzyzanowskim.CryptoSwift</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>CryptoSwift</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.3.6</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>12B45b</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>11.0</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>20A2408</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx11.0</string>
|
||||
<key>DTXcode</key>
|
||||
<string>1220</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>12B45b</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.12</string>
|
||||
</dict>
|
||||
</plist>
|
||||
+1
@@ -0,0 +1 @@
|
||||
A
|
||||
Binary file not shown.
@@ -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(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# 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
|
||||
@@ -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[];
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
BIN
Binary file not shown.
+737
@@ -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<Swift.UInt8>)
|
||||
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<Swift.UInt8>) throws
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func authenticate(_ bytes: Swift.Array<Swift.UInt8>, cipher: CryptoSwift.Cipher) throws -> Swift.Array<Swift.UInt8>
|
||||
@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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.GCM.Mode = .detached)
|
||||
convenience public init(iv: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
override public init(key: Swift.Array<Swift.UInt8>) 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>? = nil, info: Swift.Array<Swift.UInt8>? = nil, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, variant: CryptoSwift.HMAC.Variant = .md5)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class AEADChaCha20Poly1305 : CryptoSwift.AEAD {
|
||||
public static let kLen: Swift.Int
|
||||
public static var ivRange: Swift.Range<Swift.Int>
|
||||
public static func encrypt(_ plainText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>) throws -> (cipherText: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>)
|
||||
public static func decrypt(_ cipherText: Swift.Array<Swift.UInt8>, key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>, authenticationHeader: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>) throws -> (plainText: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>)
|
||||
final public func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
public protocol Cryptor {
|
||||
mutating func seek(to: Swift.Int) throws
|
||||
}
|
||||
public typealias CipherOperationOnBlock = (Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>?
|
||||
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<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension Cipher {
|
||||
public func encrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public func decrypt(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA2 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, isLast: Swift.Bool) throws -> Swift.Array<Swift.UInt8>
|
||||
mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
extension Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func update(withBytes bytes: Swift.Array<Swift.UInt8>, isLast: Swift.Bool = false, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish() throws -> Swift.Array<Swift.UInt8>
|
||||
public mutating func finish(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(withBytes bytes: Swift.Array<Swift.UInt8>, output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
public mutating func finish(output: (Swift.Array<Swift.UInt8>) -> Swift.Void) throws
|
||||
}
|
||||
@_hasMissingDesignatedInitializers final public class Checksum {
|
||||
@objc deinit
|
||||
}
|
||||
extension Checksum {
|
||||
public static func crc32(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc32c(_ message: Swift.Array<Swift.UInt8>, seed: Swift.UInt32? = nil, reflect: Swift.Bool = true) -> Swift.UInt32
|
||||
public static func crc16(_ message: Swift.Array<Swift.UInt8>, 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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, variant: CryptoSwift.PKCS5.PBKDF1.Variant = .sha1, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil) throws
|
||||
public func calculate() -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
extension Cryptors {
|
||||
public static func randomIV(_ count: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
mutating func decrypt(block ciphertext: Swift.ArraySlice<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
public protocol FinalizingDecryptModeWorker : CryptoSwift.CipherModeWorker {
|
||||
@discardableResult
|
||||
mutating func willDecryptLast(bytes ciphertext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func didDecryptLast(bytes plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
mutating func finalize(decrypt plaintext: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.ArraySlice<Swift.UInt8>
|
||||
}
|
||||
extension HMAC {
|
||||
convenience public init(key: Swift.String, variant: CryptoSwift.HMAC.Variant = .md5) throws
|
||||
}
|
||||
extension String {
|
||||
public var bytes: Swift.Array<Swift.UInt8> {
|
||||
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<A>(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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA1 : CryptoSwift.Updatable {
|
||||
@discardableResult
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>?
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil)
|
||||
public init(iv: Swift.Array<Swift.UInt8>, tagLength: Swift.Int, messageLength: Swift.Int, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension MD5 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode, padding: CryptoSwift.Padding = .pkcs7) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension AES : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>, blockMode: CryptoSwift.BlockMode = CBC(iv: Array<UInt8>(repeating: 0, count: Blowfish.blockSize)), padding: CryptoSwift.Padding) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Blowfish : CryptoSwift.Cipher {
|
||||
final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int
|
||||
}
|
||||
public protocol PaddingProtocol {
|
||||
func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
public enum Padding : CryptoSwift.PaddingProtocol {
|
||||
case noPadding, zeroPadding, pkcs7, pkcs5, iso78164
|
||||
public func add(to: Swift.Array<Swift.UInt8>, blockSize: Swift.Int) -> Swift.Array<Swift.UInt8>
|
||||
public func remove(from: Swift.Array<Swift.UInt8>, blockSize: Swift.Int?) -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8> {
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.Array<Element>>
|
||||
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<A>(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<Swift.Int> { 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<Swift.UInt8>?
|
||||
public init(nonce N: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = nil, tagLength: Swift.Int = 16, mode: CryptoSwift.OCB.Mode = .detached)
|
||||
convenience public init(nonce N: Swift.Array<Swift.UInt8>, authenticationTag: Swift.Array<Swift.UInt8>, additionalAuthenticatedData: Swift.Array<Swift.UInt8>? = 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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, iv nonce: Swift.Array<Swift.UInt8>) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension ChaCha20 : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaEncryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
public func seek(to: Swift.Int) throws
|
||||
}
|
||||
}
|
||||
extension ChaCha20 {
|
||||
public struct ChaChaDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public mutating func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = true) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>)
|
||||
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<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, iterations: Swift.Int = 4096, keyLength: Swift.Int? = nil, variant: CryptoSwift.HMAC.Variant = .sha256) throws
|
||||
public func calculate() throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
}
|
||||
public protocol Authenticator {
|
||||
func authenticate(_ bytes: Swift.Array<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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<Swift.UInt8>) throws
|
||||
public init(key: Swift.Array<Swift.UInt8>, iv: Swift.Array<Swift.UInt8>?) throws
|
||||
@objc deinit
|
||||
}
|
||||
extension Rabbit : CryptoSwift.Cipher {
|
||||
final public func encrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
final public func decrypt(_ bytes: Swift.ArraySlice<Swift.UInt8>) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
@_hasMissingDesignatedInitializers public class BlockDecryptor : CryptoSwift.Cryptor, CryptoSwift.Updatable {
|
||||
public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
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<Swift.UInt8>
|
||||
}
|
||||
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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
@objc deinit
|
||||
}
|
||||
extension SHA3 : CryptoSwift.Updatable {
|
||||
final public func update(withBytes bytes: Swift.ArraySlice<Swift.UInt8>, isLast: Swift.Bool = false) throws -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
final public class Scrypt {
|
||||
public init(password: Swift.Array<Swift.UInt8>, salt: Swift.Array<Swift.UInt8>, 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.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha1(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha224(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha256(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha384(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha512(_ bytes: Swift.Array<Swift.UInt8>) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha2(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA2.Variant) -> Swift.Array<Swift.UInt8>
|
||||
public static func sha3(_ bytes: Swift.Array<Swift.UInt8>, variant: CryptoSwift.SHA3.Variant) -> Swift.Array<Swift.UInt8>
|
||||
}
|
||||
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 {}
|
||||
@@ -0,0 +1,11 @@
|
||||
framework module CryptoSwift {
|
||||
umbrella header "CryptoSwift.h"
|
||||
|
||||
export *
|
||||
module * { export * }
|
||||
}
|
||||
|
||||
module CryptoSwift.Swift {
|
||||
header "CryptoSwift-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user