forked from jedisct1/swift-sodium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update libsodium with support for visionOS
- Loading branch information
Showing
148 changed files
with
9,452 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+20.5 KB
(100%)
Clibsodium.xcframework/ios-arm64_i386_x86_64-simulator/libsodium.a
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+19.4 KB
(100%)
Clibsodium.xcframework/ios-arm64_x86_64-maccatalyst/libsodium.a
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+19.4 KB
(100%)
Clibsodium.xcframework/tvos-arm64_x86_64-simulator/libsodium.a
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+40.7 KB
(100%)
Clibsodium.xcframework/watchos-arm64_arm64_32_armv7k/libsodium.a
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+20.3 KB
(100%)
Clibsodium.xcframework/watchos-arm64_i386_x86_64-simulator/libsodium.a
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
Clibsodium.xcframework/xros-arm64-simulator/Headers/module.modulemap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module Clibsodium { | ||
header "sodium.h" | ||
export * | ||
} |
69 changes: 69 additions & 0 deletions
69
Clibsodium.xcframework/xros-arm64-simulator/Headers/sodium.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
#ifndef sodium_H | ||
#define sodium_H | ||
|
||
#include "sodium/version.h" | ||
|
||
#include "sodium/core.h" | ||
#include "sodium/crypto_aead_aes256gcm.h" | ||
#include "sodium/crypto_aead_chacha20poly1305.h" | ||
#include "sodium/crypto_aead_xchacha20poly1305.h" | ||
#include "sodium/crypto_auth.h" | ||
#include "sodium/crypto_auth_hmacsha256.h" | ||
#include "sodium/crypto_auth_hmacsha512.h" | ||
#include "sodium/crypto_auth_hmacsha512256.h" | ||
#include "sodium/crypto_box.h" | ||
#include "sodium/crypto_box_curve25519xsalsa20poly1305.h" | ||
#include "sodium/crypto_core_hsalsa20.h" | ||
#include "sodium/crypto_core_hchacha20.h" | ||
#include "sodium/crypto_core_salsa20.h" | ||
#include "sodium/crypto_core_salsa2012.h" | ||
#include "sodium/crypto_core_salsa208.h" | ||
#include "sodium/crypto_generichash.h" | ||
#include "sodium/crypto_generichash_blake2b.h" | ||
#include "sodium/crypto_hash.h" | ||
#include "sodium/crypto_hash_sha256.h" | ||
#include "sodium/crypto_hash_sha512.h" | ||
#include "sodium/crypto_kdf.h" | ||
#include "sodium/crypto_kdf_blake2b.h" | ||
#include "sodium/crypto_kx.h" | ||
#include "sodium/crypto_onetimeauth.h" | ||
#include "sodium/crypto_onetimeauth_poly1305.h" | ||
#include "sodium/crypto_pwhash.h" | ||
#include "sodium/crypto_pwhash_argon2i.h" | ||
#include "sodium/crypto_scalarmult.h" | ||
#include "sodium/crypto_scalarmult_curve25519.h" | ||
#include "sodium/crypto_secretbox.h" | ||
#include "sodium/crypto_secretbox_xsalsa20poly1305.h" | ||
#include "sodium/crypto_secretstream_xchacha20poly1305.h" | ||
#include "sodium/crypto_shorthash.h" | ||
#include "sodium/crypto_shorthash_siphash24.h" | ||
#include "sodium/crypto_sign.h" | ||
#include "sodium/crypto_sign_ed25519.h" | ||
#include "sodium/crypto_stream.h" | ||
#include "sodium/crypto_stream_chacha20.h" | ||
#include "sodium/crypto_stream_salsa20.h" | ||
#include "sodium/crypto_stream_xsalsa20.h" | ||
#include "sodium/crypto_verify_16.h" | ||
#include "sodium/crypto_verify_32.h" | ||
#include "sodium/crypto_verify_64.h" | ||
#include "sodium/randombytes.h" | ||
#include "sodium/randombytes_internal_random.h" | ||
#include "sodium/randombytes_sysrandom.h" | ||
#include "sodium/runtime.h" | ||
#include "sodium/utils.h" | ||
|
||
#ifndef SODIUM_LIBRARY_MINIMAL | ||
# include "sodium/crypto_box_curve25519xchacha20poly1305.h" | ||
# include "sodium/crypto_core_ed25519.h" | ||
# include "sodium/crypto_core_ristretto255.h" | ||
# include "sodium/crypto_scalarmult_ed25519.h" | ||
# include "sodium/crypto_scalarmult_ristretto255.h" | ||
# include "sodium/crypto_secretbox_xchacha20poly1305.h" | ||
# include "sodium/crypto_pwhash_scryptsalsa208sha256.h" | ||
# include "sodium/crypto_stream_salsa2012.h" | ||
# include "sodium/crypto_stream_salsa208.h" | ||
# include "sodium/crypto_stream_xchacha20.h" | ||
#endif | ||
|
||
#endif |
28 changes: 28 additions & 0 deletions
28
Clibsodium.xcframework/xros-arm64-simulator/Headers/sodium/core.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
#ifndef sodium_core_H | ||
#define sodium_core_H | ||
|
||
#include "export.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
SODIUM_EXPORT | ||
int sodium_init(void) | ||
__attribute__ ((warn_unused_result)); | ||
|
||
/* ---- */ | ||
|
||
SODIUM_EXPORT | ||
int sodium_set_misuse_handler(void (*handler)(void)); | ||
|
||
SODIUM_EXPORT | ||
void sodium_misuse(void) | ||
__attribute__ ((noreturn)); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.