From 519869fed7019227148bc4b3a12f5e686406a84b Mon Sep 17 00:00:00 2001 From: agc Date: Wed, 1 May 2013 05:52:06 +0000 Subject: Update security/libsodium from version 0.3 to 0.4.1 Provided in pkg PR/47767 by csosstudy Changes from previous version: * Version 0.4.1 - sodium_version_*() functions were not exported in version 0.4. They are now visible as intended. - sodium_init() now calls randombytes_stir(). - optimized assembly version of salsa20 is now used on amd64. - further cleanups and enhanced compatibility with non-C99 compilers. * Version 0.4 - Most constants and operations are now available as actual functions instead of macros, making it easier to use from other languages. - New operation: crypto_generichash, featuring a variable key size, a variable output size, and a streaming API. Currently implemented using Blake2b. - The package can be compiled in a separate directory. - aes128ctr functions are exported. - Optimized versions of curve25519 (curve25519_donna_c64), poly1305 (poly1305_53) and ed25519 (ed25519_ref10) are available. Optionally calling sodium_init() once before using the library makes it pick the fastest implementation. - New convenience function: sodium_memzero() in order to securely wipe a memory area. - A whole bunch of cleanups and portability enhancements. - On Windows, a .REF file is generated along with the shared library, for use with Visual Studio. The installation path for these has become $prefix/bin as expected by MingW. pkgsrc change: * install the NEWS file under share/ hierarchy --- security/libsodium/Makefile | 10 ++++++++-- security/libsodium/PLIST | 14 +++++++++++++- security/libsodium/distinfo | 8 ++++---- 3 files changed, 25 insertions(+), 7 deletions(-) (limited to 'security/libsodium') diff --git a/security/libsodium/Makefile b/security/libsodium/Makefile index 6f8c6c4ca59..77e4cb1c1b4 100644 --- a/security/libsodium/Makefile +++ b/security/libsodium/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.1.1.1 2013/02/28 15:43:25 agc Exp $ +# $NetBSD: Makefile,v 1.2 2013/05/01 05:52:06 agc Exp $ # -DISTNAME= libsodium-0.3 +DISTNAME= libsodium-0.4.1 CATEGORIES= security MASTER_SITES= http://download.dnscrypt.org/libsodium/releases/ @@ -14,5 +14,11 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes TEST_TARGET= check +AUTO_MKDIRS= yes + +DOCDIR= share/doc/${PKGBASE} + +post-install: + ${INSTALL_DATA} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/${DOCDIR} .include "../../mk/bsd.pkg.mk" diff --git a/security/libsodium/PLIST b/security/libsodium/PLIST index 7dff0e1a835..eff439714a5 100644 --- a/security/libsodium/PLIST +++ b/security/libsodium/PLIST @@ -1,5 +1,6 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2013/02/28 15:43:25 agc Exp $ +@comment $NetBSD: PLIST,v 1.2 2013/05/01 05:52:06 agc Exp $ include/sodium.h +include/sodium/core.h include/sodium/crypto_auth.h include/sodium/crypto_auth_hmacsha256.h include/sodium/crypto_auth_hmacsha512256.h @@ -9,13 +10,20 @@ include/sodium/crypto_core_hsalsa20.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_hashblocks_sha256.h include/sodium/crypto_hashblocks_sha512.h +include/sodium/crypto_int32.h +include/sodium/crypto_int64.h include/sodium/crypto_onetimeauth.h include/sodium/crypto_onetimeauth_poly1305.h +include/sodium/crypto_onetimeauth_poly1305_53.h +include/sodium/crypto_onetimeauth_poly1305_ref.h +include/sodium/crypto_scalarmult.h include/sodium/crypto_scalarmult_curve25519.h include/sodium/crypto_secretbox.h include/sodium/crypto_secretbox_xsalsa20poly1305.h @@ -26,6 +34,7 @@ include/sodium/crypto_sign_ed25519.h include/sodium/crypto_sign_edwards25519sha512batch.h include/sodium/crypto_stream.h include/sodium/crypto_stream_aes128ctr.h +include/sodium/crypto_stream_aes256estream.h include/sodium/crypto_stream_salsa20.h include/sodium/crypto_stream_salsa2012.h include/sodium/crypto_stream_salsa208.h @@ -36,8 +45,11 @@ include/sodium/crypto_uint64.h include/sodium/crypto_uint8.h include/sodium/crypto_verify_16.h include/sodium/crypto_verify_32.h +include/sodium/export.h include/sodium/randombytes.h include/sodium/randombytes_salsa20_random.h include/sodium/randombytes_sysrandom.h +include/sodium/utils.h include/sodium/version.h lib/libsodium.la +share/doc/libsodium/NEWS diff --git a/security/libsodium/distinfo b/security/libsodium/distinfo index 34b7e48fee5..42f690889fa 100644 --- a/security/libsodium/distinfo +++ b/security/libsodium/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.1.1.1 2013/02/28 15:43:25 agc Exp $ +$NetBSD: distinfo,v 1.2 2013/05/01 05:52:06 agc Exp $ -SHA1 (libsodium-0.3.tar.gz) = 3d486dc40e7cbd9542d00088d3b73a719d7746fa -RMD160 (libsodium-0.3.tar.gz) = 8e33538bf8d44255a7e9ea9f919d462cf1b514e7 -Size (libsodium-0.3.tar.gz) = 727213 bytes +SHA1 (libsodium-0.4.1.tar.gz) = ccb46ad72aaabb59e85a3380e0b1a59b62f363e1 +RMD160 (libsodium-0.4.1.tar.gz) = 9f95afdefb2e5144fc340c776f286a40ca3521ba +Size (libsodium-0.4.1.tar.gz) = 497132 bytes -- cgit v1.2.3