jedisct1 / libsodium

A modern, portable, easy to use crypto library.
https://libsodium.org
Other
12.06k stars 1.72k forks source link

Put the packaging line for nuget back in #1164

Closed SeanMollet closed 2 years ago

SeanMollet commented 2 years ago

Tests listed below.

SeanMollet commented 2 years ago
/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
PASS: aead_aes256gcm2
PASS: aead_xchacha20poly1305
PASS: aead_aes256gcm
PASS: aead_aegis256
PASS: auth
PASS: aead_aegis128l
PASS: aead_chacha20poly1305
PASS: auth2
PASS: auth3
PASS: aead_chacha20poly13052
PASS: box
PASS: auth6
PASS: box2
PASS: box_easy
PASS: auth7
PASS: box_seal
PASS: auth5
PASS: box_easy2
PASS: box_seed
PASS: core1
PASS: core2
PASS: core4
PASS: chacha20
PASS: core5
PASS: codecs
PASS: core6
PASS: generichash
PASS: generichash2
PASS: box7
PASS: hash
PASS: generichash3
PASS: hash3
PASS: kdf
PASS: keygen
PASS: kx
PASS: ed25519_convert
PASS: onetimeauth
PASS: onetimeauth2
PASS: core3
PASS: misuse
PASS: onetimeauth7
PASS: scalarmult6
PASS: scalarmult2
PASS: scalarmult
PASS: scalarmult5
PASS: randombytes
PASS: scalarmult8
PASS: scalarmult7
PASS: secretbox
PASS: secretbox2
PASS: secretbox7
PASS: secretbox_easy
PASS: secretbox_easy2
PASS: secretstream_xchacha20poly1305
PASS: secretbox8
PASS: shorthash
PASS: box8
PASS: sodium_core
PASS: sodium_version
PASS: stream4
PASS: stream3
PASS: stream2
PASS: stream
PASS: sodium_utils
PASS: sodium_utils3
PASS: metamorphic
PASS: core_ed25519_h2c
PASS: pwhash_argon2i
PASS: pwhash_argon2id
PASS: kdf_hkdf
PASS: scalarmult_ed25519
PASS: sign
PASS: siphashx24
PASS: scalarmult_ristretto255
PASS: xchacha20
PASS: pwhash_scrypt_ll
PASS: verify1
PASS: sodium_utils2
PASS: core_ed25519
PASS: core_ristretto255
PASS: pwhash_scrypt
============================================================================
Testsuite summary for libsodium 1.0.18
============================================================================
# TOTAL: 81
# PASS:  81
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
SeanMollet commented 2 years ago

Running test.cs from .net core on an Apple silicon machine:

sean@Seans-MBP:~/Projects/libsodium/testing$ dotnet run sodium_version_string: 1.0.18 sodium_library_version_major: 11 sodium_library_version_minor: 0 sodium_library_minimal: 0 sodium_init: 0 randombytes_buf: 0x'45EC7B27355C58F1' crypto_aead_aes256gcm_is_available: 0

I built the nupkg without any of the other runtimes as a validation and because I can't easily build them on the mac. Looking at the import in the project, it's exactly as my package, verifying that it did actually use the newly built package.

sean@Seans-MBP:~/Projects/libsodium/testing/bin/Debug/net6.0$ find . . ./testing.deps.json ./runtimes ./runtimes/osx-arm64 ./runtimes/osx-arm64/native ./runtimes/osx-arm64/native/libsodium.dylib ./testing ./testing.pdb ./testing.runtimeconfig.json ./testing.dll