Re: [Lake] EDHOC example implementations

Geovane Fedrecheski <geovane.fedrecheski@inria.fr> Wed, 28 February 2024 15:43 UTC

Return-Path: <geovane.fedrecheski@inria.fr>
X-Original-To: lake@ietfa.amsl.com
Delivered-To: lake@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D1E04C14F5EC for <lake@ietfa.amsl.com>; Wed, 28 Feb 2024 07:43:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.102
X-Spam-Level:
X-Spam-Status: No, score=-2.102 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=inria.fr
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q1Y49eOm2O2d for <lake@ietfa.amsl.com>; Wed, 28 Feb 2024 07:43:52 -0800 (PST)
Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 91945C14F5F3 for <lake@ietf.org>; Wed, 28 Feb 2024 07:43:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:message-id:in-reply-to:references: subject:mime-version; bh=I4rlhmf02uL+pt6tkAb5Jt7dA0OAJVVFtMH43Kmt53w=; b=vReFIhZwFDgvT1y0M1YqEAOJn4B4GJuvq2jVmr4Gz3E0l4lnTe4Pq2pG xLeDV3Ocj3Pc3lPM/tC19FxMbIvSdlRXTiyqX59/PnQwbjXTZgXHEmZbH jNqy/DWk9WBo5bHN0x/BPp9u3qNmLW3Ab8H+cygOVgP67zxk+HUQxpuwn g=;
Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=geovane.fedrecheski@inria.fr; spf=None smtp.helo=postmaster@zcs2-store3.inria.fr
Received-SPF: Pass (mail2-relais-roc.national.inria.fr: domain of geovane.fedrecheski@inria.fr designates 128.93.142.8 as permitted sender) identity=mailfrom; client-ip=128.93.142.8; receiver=mail2-relais-roc.national.inria.fr; envelope-from="geovane.fedrecheski@inria.fr"; x-sender="geovane.fedrecheski@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 include:mailout.safebrands.com a:basic-mail.safebrands.com a:basic-mail01.safebrands.com a:basic-mail02.safebrands.com ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:89.107.174.7 mx ~all"
Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@zcs2-store3.inria.fr) identity=helo; client-ip=128.93.142.8; receiver=mail2-relais-roc.national.inria.fr; envelope-from="geovane.fedrecheski@inria.fr"; x-sender="postmaster@zcs2-store3.inria.fr"; x-conformance=spf_only
X-IronPort-AV: E=Sophos;i="6.06,190,1705359600"; d="scan'208,217";a="154247096"
Received: from zcs2-store3.inria.fr ([128.93.142.8]) by mail2-relais-roc.national.inria.fr with ESMTP; 28 Feb 2024 16:43:48 +0100
Date: Wed, 28 Feb 2024 16:43:48 +0100
From: Geovane Fedrecheski <geovane.fedrecheski@inria.fr>
To: "Sipos, Brian J." <Brian.Sipos@jhuapl.edu>
Cc: lake <lake@ietf.org>
Message-ID: <1853018057.1737410.1709135028248.JavaMail.zimbra@inria.fr>
In-Reply-To: <0eea5f1ce63a4049aefefd796ce9994c@jhuapl.edu>
References: <0eea5f1ce63a4049aefefd796ce9994c@jhuapl.edu>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_1762861a-8c20-41dc-a44a-f1dc56ecb155"
X-Originating-IP: [128.93.162.88]
X-Mailer: Zimbra 10.0.6_GA_4585 (ZimbraWebClient - FF123 (Linux)/10.0.6_GA_4585)
Thread-Topic: EDHOC example implementations
Thread-Index: AdpqVRNEDzrcCXbySAuiFTvMAfwg+Z0v9dAf
Archived-At: <https://mailarchive.ietf.org/arch/msg/lake/-sdiIP2BuHDNTGjT_oTFhomkCTM>
Subject: Re: [Lake] EDHOC example implementations
X-BeenThere: lake@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Lightweight Authenticated Key Exchange <lake.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lake>, <mailto:lake-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lake/>
List-Post: <mailto:lake@ietf.org>
List-Help: <mailto:lake-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lake>, <mailto:lake-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Feb 2024 15:43:55 -0000

Hello Brian, 

I work on a Rust implementation of EDHOC that also provides bindings for C (and Python), and it is up to date with the latest draft. 
Please find the source code at [1], as well as pre-compiled static libraries and generated headers in the releases page [2] (or else see the README in `lakers-c` to build it by yourself). Finally, there are also examples [3] of how to use it in native and embedded targets. 

I hope it can help you -- and feel free to contact me with questions or feedback. 

Geovane. 

[1] [ https://github.com/openwsn-berkeley/lakers | https://github.com/openwsn-berkeley/lakers ] 
[2] [ https://github.com/openwsn-berkeley/lakers/releases/ | https://github.com/openwsn-berkeley/lakers/releases/ ] 
[3] [ https://github.com/openwsn-berkeley/lakers/tree/main/examples | https://github.com/openwsn-berkeley/lakers/tree/main/examples ] 

> De: "Sipos, Brian J." <Brian.Sipos@jhuapl.edu>
> À: "lake" <lake@ietf.org>
> Envoyé: Mercredi 28 Février 2024 16:19:39
> Objet: [Lake] EDHOC example implementations

> All,

> I’ve been doing some prototyping recently with COSE, based on a [
> https://github.com/cose-wg/COSE-C/ | COSE-C ] library example from the COSE WG,
> and would like to do some similar experimentation with an EDHOC C or C++
> implementation. I see that there have been several references on this list to [
> https://github.com/openwsn-berkeley/EDHOC-C | EDHOC-C ] repository but it seems
> like that implementation has not been kept up-to-date with draft changes for a
> while now.

> Are there any recommendations from this WG for existing open source EDHOC
> implementations in C or C++ that are usable out of the box (meaning don’t
> require a lot of binding or integration work) even if they might be inefficient
> of duplicative of some COSE things?

> Thanks for any pointers,

> Brian S.

> --
> Lake mailing list
> Lake@ietf.org
> https://www.ietf.org/mailman/listinfo/lake