head 1.3; access; symbols pkgsrc-2026Q1:1.3.0.22 pkgsrc-2026Q1-base:1.3 pkgsrc-2025Q4:1.3.0.20 pkgsrc-2025Q4-base:1.3 pkgsrc-2025Q3:1.3.0.18 pkgsrc-2025Q3-base:1.3 pkgsrc-2025Q2:1.3.0.16 pkgsrc-2025Q2-base:1.3 pkgsrc-2025Q1:1.3.0.14 pkgsrc-2025Q1-base:1.3 pkgsrc-2024Q4:1.3.0.12 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.10 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.8 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.6 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.4 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.2 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.2.0.22 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.20 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.18 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.16 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.14 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.12 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.10 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.8 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.6 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.4 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.2 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.1.0.14 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.12 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.8 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.10 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.6 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.4 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.2 pkgsrc-2019Q1-base:1.1; locks; strict; comment @# @; 1.3 date 2023.07.12.21.17.16; author nia; state Exp; branches; next 1.2; commitid p1hvqRQP2EKUEywE; 1.2 date 2020.10.19.12.30.30; author mef; state Exp; branches; next 1.1; commitid DqE0ftPc0BsOKvsC; 1.1 date 2019.03.16.09.17.09; author maya; state Exp; branches; next ; commitid gWS9QbaJuFtzqzfB; desc @@ 1.3 log @monocypher: Fully honour CFLAGS. Append -std=c99, uses many C99 features. @ text @$NetBSD: patch-makefile,v 1.2 2020/10/19 12:30:30 mef Exp $ This uses many C99 features in its code. Allow overriding CC, DESTDIR and PREFIX Use the more standard MANDIR (that we override) --- makefile.orig 2020-04-22 00:00:00.000000000 +0000 +++ makefile @@@@ -49,14 +49,13 @@@@ # You should have received a copy of the CC0 Public Domain Dedication along # with this software. If not, see # -CC=gcc -std=gnu99 # speed tests don't work with -std=cxx, they need the POSIX extensions -CFLAGS= -pedantic -Wall -Wextra -O3 -march=native -DESTDIR= -PREFIX=usr/local +CFLAGS+= -std=c99 -Wall -Wextra +DESTDIR?= +PREFIX?=usr/local LIBDIR=$(PREFIX)/lib INCLUDEDIR=$(PREFIX)/include PKGCONFIGDIR=$(LIBDIR)/pkgconfig -MANDIR=$(PREFIX)/share/man/man3 +MANDIR?=$(PREFIX)/share/man/man3 SONAME=libmonocypher.so.3 VERSION=3.1.1 @ 1.2 log @(security/monocypher) Updated 2.0.5 to 3.1.1 3.1.1 ----- 2020/06/15 - Various documentation fixes. - Fixed various compiler warnings. - Fixed some integer overflows (16-bit platforms only). 3.1.0 ----- 2020/04/03 - Added Elligator 2 mappings (hash to curve, curve to hash). - Added OPRF support (with scalar inversion). - Added Edwards25519 -> Curve25519 conversions 3.0.0 ----- 2020/01/19 - Deprecated the incremental AEAD interface. - Deprecated the incremental Chacha20, added a direct interface. - Added IETF Chacha20 (96-bit nonce), as described in RFC 8439. - Moved deprecated interfaces to a separate `src/deprecated` folder. - Removed the `ED25519_SHA512` preprocessor flag. - `crypto_x25519()` and `crypto_key_exchange()` now return `void`. - Added a custom hash interface to EdDSA. Several instances of EdDSA can share the same binary. - Added optional support for HMAC SHA-512 - Moved all SHA-512 operations to `src/optional/monocypher-ed25519.(h|c)` - Optional support for Ed25519 no longer requires a preprocessor flag. Add `src/optional/monocypher-ed25519.(h|c)` to your project instead. 2.0.6 ----- 2019/10/21 - Added the `BLAKE2_NO_UNROLLING` preprocessor definition. Activating it makes the binary about 5KB smaller, and speeds up processing times on many embedded processors. - Reduced the stack usage of signature verification by about 40%. Signature verification now fits in smaller machines. - Fixed many implicit casts warnings. - Fixed the manual here and there. - Lots of small nitpicks. @ text @d1 1 a1 1 $NetBSD: patch-makefile,v 1.1 2019/03/16 09:17:09 maya Exp $ d3 1 d9 1 a9 1 @@@@ -49,14 +49,14 @@@@ d14 1 a14 2 +CC?=gcc -std=gnu99 # speed tests don't work with -std=cxx, they need the POSIX extensions CFLAGS= -pedantic -Wall -Wextra -O3 -march=native d17 1 @ 1.1 log @Add monocypher version 2.0.5 Monocypher is an easy to use crypto library. It is: - Small. Sloccount counts about 1700 lines of code, small enough to allow audits. The binaries are under 65KB. = Easy to deploy. Just add monocypher.c and monocypher.h to your project. They compile as C99 or C++, have no dependency, and are dedicated to the public domain. - Easy to use. The API is small, consistent, and cannot fail on correct input. - Fast. The primitives are fast to begin with, and performance wasn't needlessly sacrificed. Monocypher holds up pretty well against Libsodium, despite being closer in size to TweetNaCl. @ text @d1 1 a1 1 $NetBSD$ d6 1 a6 1 --- makefile.orig 2018-06-27 09:11:23.000000000 +0000 d8 4 a11 1 @@@@ -1,9 +1,9 @@@@ d19 6 a24 3 PKGCONFIG=$(DESTDIR)/$(PREFIX)/lib/pkgconfig -MAN_DIR=$(DESTDIR)/$(PREFIX)/share/man/man3 +MANDIR?=$(DESTDIR)/$(PREFIX)/share/man/man3 d26 1 a26 2 TARBALL_VERSION=$$(cat VERSION.md) TARBALL_DIR=. @