Wed May 1 05:52:06 2013 UTC ()
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


(agc)
diff -r1.1.1.1 -r1.2 pkgsrc/security/libsodium/Makefile
diff -r1.1.1.1 -r1.2 pkgsrc/security/libsodium/PLIST
diff -r1.1.1.1 -r1.2 pkgsrc/security/libsodium/distinfo

cvs diff -r1.1.1.1 -r1.2 pkgsrc/security/libsodium/Makefile (expand / switch to unified diff)

--- pkgsrc/security/libsodium/Makefile 2013/02/28 15:43:25 1.1.1.1
+++ pkgsrc/security/libsodium/Makefile 2013/05/01 05:52:06 1.2
@@ -1,18 +1,24 @@ @@ -1,18 +1,24 @@
1# $NetBSD: Makefile,v 1.1.1.1 2013/02/28 15:43:25 agc Exp $ 1# $NetBSD: Makefile,v 1.2 2013/05/01 05:52:06 agc Exp $
2# 2#
3 3
4DISTNAME= libsodium-0.3 4DISTNAME= libsodium-0.4.1
5CATEGORIES= security 5CATEGORIES= security
6MASTER_SITES= http://download.dnscrypt.org/libsodium/releases/ 6MASTER_SITES= http://download.dnscrypt.org/libsodium/releases/
7 7
8MAINTAINER= csosstudy@gmail.com 8MAINTAINER= csosstudy@gmail.com
9HOMEPAGE= https://github.com/jedisct1/libsodium 9HOMEPAGE= https://github.com/jedisct1/libsodium
10COMMENT= Library for build higher-level cryptographic tools 10COMMENT= Library for build higher-level cryptographic tools
11LICENSE= isc 11LICENSE= isc
12 12
13GNU_CONFIGURE= yes 13GNU_CONFIGURE= yes
14USE_LIBTOOL= yes 14USE_LIBTOOL= yes
15 15
16TEST_TARGET= check 16TEST_TARGET= check
 17AUTO_MKDIRS= yes
 18
 19DOCDIR= share/doc/${PKGBASE}
 20
 21post-install:
 22 ${INSTALL_DATA} ${WRKSRC}/NEWS ${DESTDIR}${PREFIX}/${DOCDIR}
17 23
18.include "../../mk/bsd.pkg.mk" 24.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1.1.1 -r1.2 pkgsrc/security/libsodium/PLIST (expand / switch to unified diff)

--- pkgsrc/security/libsodium/PLIST 2013/02/28 15:43:25 1.1.1.1
+++ pkgsrc/security/libsodium/PLIST 2013/05/01 05:52:06 1.2
@@ -1,43 +1,55 @@ @@ -1,43 +1,55 @@
1@comment $NetBSD: PLIST,v 1.1.1.1 2013/02/28 15:43:25 agc Exp $ 1@comment $NetBSD: PLIST,v 1.2 2013/05/01 05:52:06 agc Exp $
2include/sodium.h 2include/sodium.h
 3include/sodium/core.h
3include/sodium/crypto_auth.h 4include/sodium/crypto_auth.h
4include/sodium/crypto_auth_hmacsha256.h 5include/sodium/crypto_auth_hmacsha256.h
5include/sodium/crypto_auth_hmacsha512256.h 6include/sodium/crypto_auth_hmacsha512256.h
6include/sodium/crypto_box.h 7include/sodium/crypto_box.h
7include/sodium/crypto_box_curve25519xsalsa20poly1305.h 8include/sodium/crypto_box_curve25519xsalsa20poly1305.h
8include/sodium/crypto_core_hsalsa20.h 9include/sodium/crypto_core_hsalsa20.h
9include/sodium/crypto_core_salsa20.h 10include/sodium/crypto_core_salsa20.h
10include/sodium/crypto_core_salsa2012.h 11include/sodium/crypto_core_salsa2012.h
11include/sodium/crypto_core_salsa208.h 12include/sodium/crypto_core_salsa208.h
 13include/sodium/crypto_generichash.h
 14include/sodium/crypto_generichash_blake2b.h
12include/sodium/crypto_hash.h 15include/sodium/crypto_hash.h
13include/sodium/crypto_hash_sha256.h 16include/sodium/crypto_hash_sha256.h
14include/sodium/crypto_hash_sha512.h 17include/sodium/crypto_hash_sha512.h
15include/sodium/crypto_hashblocks_sha256.h 18include/sodium/crypto_hashblocks_sha256.h
16include/sodium/crypto_hashblocks_sha512.h 19include/sodium/crypto_hashblocks_sha512.h
 20include/sodium/crypto_int32.h
 21include/sodium/crypto_int64.h
17include/sodium/crypto_onetimeauth.h 22include/sodium/crypto_onetimeauth.h
18include/sodium/crypto_onetimeauth_poly1305.h 23include/sodium/crypto_onetimeauth_poly1305.h
 24include/sodium/crypto_onetimeauth_poly1305_53.h
 25include/sodium/crypto_onetimeauth_poly1305_ref.h
 26include/sodium/crypto_scalarmult.h
19include/sodium/crypto_scalarmult_curve25519.h 27include/sodium/crypto_scalarmult_curve25519.h
20include/sodium/crypto_secretbox.h 28include/sodium/crypto_secretbox.h
21include/sodium/crypto_secretbox_xsalsa20poly1305.h 29include/sodium/crypto_secretbox_xsalsa20poly1305.h
22include/sodium/crypto_shorthash.h 30include/sodium/crypto_shorthash.h
23include/sodium/crypto_shorthash_siphash24.h 31include/sodium/crypto_shorthash_siphash24.h
24include/sodium/crypto_sign.h 32include/sodium/crypto_sign.h
25include/sodium/crypto_sign_ed25519.h 33include/sodium/crypto_sign_ed25519.h
26include/sodium/crypto_sign_edwards25519sha512batch.h 34include/sodium/crypto_sign_edwards25519sha512batch.h
27include/sodium/crypto_stream.h 35include/sodium/crypto_stream.h
28include/sodium/crypto_stream_aes128ctr.h 36include/sodium/crypto_stream_aes128ctr.h
 37include/sodium/crypto_stream_aes256estream.h
29include/sodium/crypto_stream_salsa20.h 38include/sodium/crypto_stream_salsa20.h
30include/sodium/crypto_stream_salsa2012.h 39include/sodium/crypto_stream_salsa2012.h
31include/sodium/crypto_stream_salsa208.h 40include/sodium/crypto_stream_salsa208.h
32include/sodium/crypto_stream_xsalsa20.h 41include/sodium/crypto_stream_xsalsa20.h
33include/sodium/crypto_uint16.h 42include/sodium/crypto_uint16.h
34include/sodium/crypto_uint32.h 43include/sodium/crypto_uint32.h
35include/sodium/crypto_uint64.h 44include/sodium/crypto_uint64.h
36include/sodium/crypto_uint8.h 45include/sodium/crypto_uint8.h
37include/sodium/crypto_verify_16.h 46include/sodium/crypto_verify_16.h
38include/sodium/crypto_verify_32.h 47include/sodium/crypto_verify_32.h
 48include/sodium/export.h
39include/sodium/randombytes.h 49include/sodium/randombytes.h
40include/sodium/randombytes_salsa20_random.h 50include/sodium/randombytes_salsa20_random.h
41include/sodium/randombytes_sysrandom.h 51include/sodium/randombytes_sysrandom.h
 52include/sodium/utils.h
42include/sodium/version.h 53include/sodium/version.h
43lib/libsodium.la 54lib/libsodium.la
 55share/doc/libsodium/NEWS

cvs diff -r1.1.1.1 -r1.2 pkgsrc/security/libsodium/distinfo (expand / switch to unified diff)

--- pkgsrc/security/libsodium/distinfo 2013/02/28 15:43:25 1.1.1.1
+++ pkgsrc/security/libsodium/distinfo 2013/05/01 05:52:06 1.2
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.1.1.1 2013/02/28 15:43:25 agc Exp $ 1$NetBSD: distinfo,v 1.2 2013/05/01 05:52:06 agc Exp $
2 2
3SHA1 (libsodium-0.3.tar.gz) = 3d486dc40e7cbd9542d00088d3b73a719d7746fa 3SHA1 (libsodium-0.4.1.tar.gz) = ccb46ad72aaabb59e85a3380e0b1a59b62f363e1
4RMD160 (libsodium-0.3.tar.gz) = 8e33538bf8d44255a7e9ea9f919d462cf1b514e7 4RMD160 (libsodium-0.4.1.tar.gz) = 9f95afdefb2e5144fc340c776f286a40ca3521ba
5Size (libsodium-0.3.tar.gz) = 727213 bytes 5Size (libsodium-0.4.1.tar.gz) = 497132 bytes