From nobody Sun Mar 12 09:50:22 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PZFQR16VRz3xg1v; Sun, 12 Mar 2023 09:50:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PZFQR0cd0z4J3H; Sun, 12 Mar 2023 09:50:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678614623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KSz9PD6iauxO4fGcxDRdyyOWM8/XdDsd5fw7yX5xFlM=; b=RzXwt14/r1dX+lYnPl4iQQcfR1jA6HqbPLzFpJhcafly8WOVplGchbdH30V5PWuf6s33ba lqLXiibdaEUyAsMO5Jha6aqR7xA+YhuEib2oCy9594Nbu45ibF8VapMMsxkCEppwIL+Wuk vXzU1OaKxCf78ix6mrscIpE493yyIxHCoaylo23zmThLZhgaf8IIn9/I57YOvtXYJuXKA2 lf6LbTQ4DM1FKrZDN4avhAkkFziDnJ6Y6Nkym3NE2C89LWGyDFoFNXeWbYDZhysp/nQ5kd HzvWJzWcvZkwNev12pBeP2dHtlSsyNAIpL4jMKuWJWiO4Dwwta/LsUzu2JUe1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678614623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KSz9PD6iauxO4fGcxDRdyyOWM8/XdDsd5fw7yX5xFlM=; b=X8qwDgmFZ2BRo3rPda+zjPE69cj6qHD4SgwoeJixSCar1B6Tfdp8Vr0kHFn0ZcVb3V3Gnd BCLYFhxiuFX2e3ONZC6IMZKucbQKE1AfDdjOgkN2FUtRfV7Qls6Gu91TbtTWKzsh2SpdIT QkmlrDZdxkoryZkDWXy0jcBenWPKUiqM3RiZREIQaqjnw3WxzhAY9azXM7FjSCroqQwbE0 kCgKfFjhGVUNvoSFNnvY2J6NdyCjwo1WUaAnxN94gTprHNNQyqp8K8/my+A9Z+lWB/BKcg yIMO+TVUKFGf4J1qHzOQaG/sfto8w0FLaLjCcxBVDtxb2NmWhO9LLpsyjVCy9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678614623; a=rsa-sha256; cv=none; b=uGKGYXb225bQZHNXdx+X3xZg2T3nDMiKXGgWL5Bjl4SwzQz9C3YCzTyeCgG5PadYMCbXPB 9kPALOEmaSob/mphFWUkyFT0SvHJ4mLzz9n8MGaUNFi+2OPaKLSE8uxeS2p3+4a/hEWa/o oFpx45s4ZxTPfkjpASBFyrRMVkSnphAKx0iUltBj25cAx13xtOsmX0gwdOVGJ8gfs3nEUh pmCw01GYDD1kOxw3B6+atrR6hxw9NEkjpVy1sMBkF+6avyOrt09SA4wTz9J8UpjtXxVots qRSa931NUdSCH/YjbpDiR1a+luUGSUdTG6U/yqbNHAsMnYKRdOj+NSP7/6jq+A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PZFQQ6nW5z15xG; Sun, 12 Mar 2023 09:50:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32C9oM39074142; Sun, 12 Mar 2023 09:50:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32C9oMIV074141; Sun, 12 Mar 2023 09:50:22 GMT (envelope-from git) Date: Sun, 12 Mar 2023 09:50:22 GMT Message-Id: <202303120950.32C9oMIV074141@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Tobias C. Berner" Subject: git: 0656fbec6420 - main - security/libomemo-c: new port -- for of libsignal-protocol-c with OMEMO support List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tcberner X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0656fbec64201587a96be14c3fbc7fa7697ec4b6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tcberner: URL: https://cgit.FreeBSD.org/ports/commit/?id=0656fbec64201587a96be14c3fbc7fa7697ec4b6 commit 0656fbec64201587a96be14c3fbc7fa7697ec4b6 Author: Tobias C. Berner AuthorDate: 2023-03-12 09:35:07 +0000 Commit: Tobias C. Berner CommitDate: 2023-03-12 09:50:19 +0000 security/libomemo-c: new port -- for of libsignal-protocol-c with OMEMO support This is a fork of libsignal-protocol-c, an implementation of Signal's ratcheting forward secrecy protocol that works in synchronous and asynchronous messaging. The fork adds support for OMEMO as defined in XEP-0384 versions 0.3.0 and later. * OMEMO version 0.3.0 uses the original libsignal-protocol-c implementation with its protocol versions 2 and 3. * OMEMO version 0.4.0+ is implemented using a new protocol version 4 internally. In comparison with protocol version 3, it changes: * HKDF info strings * Protocol buffer encoding * Signature scheme (uses XEd25519 instead of custom "Curve25519 signatures") * Specification-compliant double ratchet * Support for Ed25519 public keys * Various serializations * Removes unused functionality WWW: https://github.com/dino/libomemo-c --- security/Makefile | 1 + security/libomemo-c/Makefile | 17 +++++++++++++++++ security/libomemo-c/distinfo | 3 +++ security/libomemo-c/pkg-descr | 17 +++++++++++++++++ security/libomemo-c/pkg-plist | 19 +++++++++++++++++++ 5 files changed, 57 insertions(+) diff --git a/security/Makefile b/security/Makefile index 14ae5cc7a0a2..715197e17fc3 100644 --- a/security/Makefile +++ b/security/Makefile @@ -292,6 +292,7 @@ SUBDIR += libnitrokey SUBDIR += libntlm SUBDIR += libomemo + SUBDIR += libomemo-c SUBDIR += liboqs SUBDIR += libotr SUBDIR += libotr3 diff --git a/security/libomemo-c/Makefile b/security/libomemo-c/Makefile new file mode 100644 index 000000000000..c072f18bfa79 --- /dev/null +++ b/security/libomemo-c/Makefile @@ -0,0 +1,17 @@ +PORTNAME= libomemo-c +DISTVERSIONPREFIX= v +DISTVERSION= 0.5.0 +CATEGORIES= security + +MAINTAINER= kde@FreeBSD.org +COMMENT= Implementation of the ratcheting forward secrecy protocol + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= dino +CMAKE_ON= BUILD_SHARED_LIBS + +.include diff --git a/security/libomemo-c/distinfo b/security/libomemo-c/distinfo new file mode 100644 index 000000000000..40f270594966 --- /dev/null +++ b/security/libomemo-c/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1678613499 +SHA256 (dino-libomemo-c-v0.5.0_GH0.tar.gz) = 03195a24ef7a86c339cdf9069d7f7569ed511feaf55e853bfcb797d2698ba983 +SIZE (dino-libomemo-c-v0.5.0_GH0.tar.gz) = 260987 diff --git a/security/libomemo-c/pkg-descr b/security/libomemo-c/pkg-descr new file mode 100644 index 000000000000..d0617676a23a --- /dev/null +++ b/security/libomemo-c/pkg-descr @@ -0,0 +1,17 @@ +This is a fork of libsignal-protocol-c, an implementation of Signal's +ratcheting forward secrecy protocol that works in synchronous and asynchronous +messaging. The fork adds support for OMEMO as defined in XEP-0384 versions +0.3.0 and later. + + * OMEMO version 0.3.0 uses the original libsignal-protocol-c implementation + with its protocol versions 2 and 3. + + * OMEMO version 0.4.0+ is implemented using a new protocol version 4 + internally. In comparison with protocol version 3, it changes: + * HKDF info strings + * Protocol buffer encoding + * Signature scheme (uses XEd25519 instead of custom "Curve25519 signatures") + * Specification-compliant double ratchet + * Support for Ed25519 public keys + * Various serializations + * Removes unused functionality diff --git a/security/libomemo-c/pkg-plist b/security/libomemo-c/pkg-plist new file mode 100644 index 000000000000..d49694ebed2c --- /dev/null +++ b/security/libomemo-c/pkg-plist @@ -0,0 +1,19 @@ +include/omemo/curve.h +include/omemo/hkdf.h +include/omemo/key_helper.h +include/omemo/protocol.h +include/omemo/ratchet.h +include/omemo/sender_key.h +include/omemo/sender_key_record.h +include/omemo/sender_key_state.h +include/omemo/session_builder.h +include/omemo/session_cipher.h +include/omemo/session_pre_key.h +include/omemo/session_record.h +include/omemo/session_state.h +include/omemo/signal_protocol.h +include/omemo/signal_protocol_types.h +lib/libomemo-c.so +lib/libomemo-c.so.0 +lib/libomemo-c.so.0.5.0 +libdata/pkgconfig/libomemo-c.pc