Re: [COSE] Rust code for draft-ietf-cose-cbor-encoded-cert

Joel Höglund <joel.hoglund@gmail.com> Thu, 04 April 2024 17:17 UTC

Return-Path: <joel.hoglund@gmail.com>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 02D55C15152C for <cose@ietfa.amsl.com>; Thu, 4 Apr 2024 10:17:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 (2048-bit key) header.d=gmail.com
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 BpLepQFJA3OL for <cose@ietfa.amsl.com>; Thu, 4 Apr 2024 10:17:42 -0700 (PDT)
Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E4690C14F71D for <cose@ietf.org>; Thu, 4 Apr 2024 10:17:42 -0700 (PDT)
Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-6ea838bf357so1138786b3a.0 for <cose@ietf.org>; Thu, 04 Apr 2024 10:17:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712251062; x=1712855862; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GlPXstQOF8eHJM1mdzNehe322WMFKd+Ai3OFhG4I5Tk=; b=KuKHHBpao5NmsOupBNwM7IwCfVb1vnyUQ8CVA+mJOOaIF3db6xmDF06A1SFLexSKpT fiGijNmmKX3nOect3oH2wbkbFFfTd4FjrigvIZEvGvaNMkU8KepL3MG6V6WYrNlMB+Y7 M5NVLBQHvesYAMaKHRjNsuREwo4kmtZletHif4g/cHRJWyBsa3Nc0L/2vT8zVH9Qylba xuWCgmlrJ14lxNfIb4Qo1LVLw19IFIo8K0U+Kou2vYw23EwnzpQj2CvsK1y2/BlWTeYn mUqaAgJ5tyE3tIHNm9nbAWpzx/AV2UuVDv/Aw+F2ymPp1BIMAzLgrIvIcjpTdcBM3iIx rzAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712251062; x=1712855862; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GlPXstQOF8eHJM1mdzNehe322WMFKd+Ai3OFhG4I5Tk=; b=hj6aoqy/g+ZGbqGy6TE7NFlx2BIP9A40E6ycI95sEA9rIzHpaFw376zqrITs1O6Apf DH4n/wBOrLHcHAXwp6MH7FJpZhEUCupTlFz58nj/FshwbMkwz9fSOiwMGcV/7SCulWvV WALfARn1uUKbHQK0gGgEwxoTvX+stPc+dtLwcul7jUtNazKKzkjoGpGU0O0BDBCANJwy Nhk3Okhe5XiS1auBqW22dN3z3LfRACFbMvk+siE9bOhq1bkvZvT1vWuKbEiOQ6Eqr4sN 4zPU5hUyFRhD6kUq30NtKw3U0R4AByNwleEdON0kPQSB8pFHh9dEkLEcroa7nq6iCjLr ToiQ==
X-Gm-Message-State: AOJu0YzOuVh/MWXCQo33jRV7fU6yh5jrnGW+B1aF1hnJ0SY5LY/xG2in TRc3ba2SuAidEfxcxsxP7FwFWqW9AP3dHt0uISCK4lguHfgbKwJ/jW+BFrXv2pol/48RX4UM898 vG2GhUqsGayqbG8nELeTzOq3CBRseluMya0Y=
X-Google-Smtp-Source: AGHT+IGtPEZu4D3F3p4uhJwx4Nyk9p6757I+EPEwHp47rzhFLBETIABOxFSlo4PkmM281y6zB+fsDz09MipeC71yHXY=
X-Received: by 2002:a05:6a20:394e:b0:1a3:e22f:86dc with SMTP id r14-20020a056a20394e00b001a3e22f86dcmr3299769pzg.40.1712251061867; Thu, 04 Apr 2024 10:17:41 -0700 (PDT)
MIME-Version: 1.0
References: <CAN8C-_LT6sPPhj1Q7L5f-wmGFs92TiYNe_Y-GhbftErxELJ4Ew@mail.gmail.com> <dcec2ce9-1b86-4b56-91be-430f24ff2f71@htt-consult.com>
In-Reply-To: <dcec2ce9-1b86-4b56-91be-430f24ff2f71@htt-consult.com>
From: Joel Höglund <joel.hoglund@gmail.com>
Date: Thu, 04 Apr 2024 19:17:28 +0200
Message-ID: <CAHszGELBZ8S3WktsPBYN-fdtuZdcPQzhBx2Fdsm6jfWZiT-M6Q@mail.gmail.com>
To: Robert Moskowitz <rgm-sec@htt-consult.com>
Cc: cose <cose@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000004f274a0615488413"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/N6RcQVsISp3poUL08PXj5HtSgIU>
Subject: Re: [COSE] Rust code for draft-ietf-cose-cbor-encoded-cert
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Apr 2024 17:17:47 -0000

Dear Robert Moskowitz,

To follow up on the issue of using RUST code from/together with Python:

The easiest alternative that we have found is using the functionality
offered by PyO3, https://pyo3.rs/v0.21.1/. The user guide includes a
step-by-step example of how RUST functions can be exported and used within
a Python environment.

Our current RUST demo implementation is just printing the c509-encoded
certificate to screen, a functionality which is easy to wrap but perhaps of
limited usefulness. The ongoing work to provide also a c509 to X.509
converter will not bring the implementation beyond demo status, but we
intend to format it with an API that would make it easier to test in
different environments, for instance through a PyO3 wrapper.

Best Regards

Joel Höglund

On Tue, 19 Mar 2024 at 19:42, Robert Moskowitz <rgm-sec@htt-consult.com>
wrote:

> I went to
>
> https://github.com/cose-wg/CBOR-certificates
>
> And did not find any RUST code can someone point me to it?
>
> I guess I will have to learn how to do a build of it for Fedora to use
> it...
>
> Bob
>
> _______________________________________________
> COSE mailing list
> COSE@ietf.org
> https://www.ietf.org/mailman/listinfo/cose
>