Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pointers to cipher implementations #1

Open
chrysn opened this issue Sep 1, 2022 · 3 comments
Open

Pointers to cipher implementations #1

chrysn opened this issue Sep 1, 2022 · 3 comments
Assignees
Milestone

Comments

@chrysn
Copy link

chrysn commented Sep 1, 2022

For using this project (even for practical evaluation), it is necessary to find implemetations fo CoseEncrypt0Cipher et cetera. Are there any around?

There are good backends around implemented in Rust (eg. the various implementations of the aead crate's traits), but a gap remains.

I haven'f found any in dcaf's reverse dependencies on crates.io, or outside this crate in the namib-project organization. If there are such crates, please consider adding a pointer to them to the dcaf documentation (or publishing the crates as to become discoverable).

@falko17
Copy link
Member

falko17 commented Sep 1, 2022

That's a good point, thanks for your comment.

We've actually implemented the cipher traits in an unreleased project for the AES_CCM_16_64_128 algorithm, using the aead and ccm crates. My idea would be to integrate that cipher implementation into this crate, but gating it behind a feature flag, with the possibility to add other implementations later on.

I'm currently still occupied with developing a python implementation of ACE-OAuth, but once that's done in a week or two, I'll work on a new version of dcaf-rs which includes this initial cipher implementation and updates the documentation to point to the now released RFC rather than the previous internet draft. If you're interested in testing this crate before then, I've made the implementation available in this gist.

@falko17 falko17 changed the title Pointers to cipher implemetations Pointers to cipher implementations Sep 1, 2022
@falko17 falko17 added this to the Version 1.0 milestone Sep 14, 2022
@chrysn
Copy link
Author

chrysn commented Oct 11, 2022 via email

chrysn added a commit to coap-security/ace-oscore-helpers that referenced this issue Nov 16, 2023
including the AES-CCM implementation pointed to in
namib-project/dcaf-rs#1 (comment)
@pulsastrix
Copy link
Member

@chrysn FYI in case there is still interest in this topic, #13 has completely reworked the COSE-related code in dcaf-rs and should simplify the implementation of new cryptographic backends by a lot,as everything that is not directly related to the cryptographic operations is now handled by dcaf-rs.

Related information:

As of now, the new COSE module only supports a limited subset of algorithms (AES-GCM, ECDSA, HMAC, AES-KW), but we'll be adding more algorithms in the near future (starting with AES-CCM), see #16, #17, #18 and #19.

Also, there is a pre-defined backend based on OpenSSL that can be added with the openssl feature.
A RustCrypto based backend should follow in the next few days (already got most of it working locally).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants