Giter Club home page Giter Club logo

ring-compat's People

Contributors

dependabot[bot] avatar etkneil avatar flier avatar jcsp avatar newpavlov avatar striezel avatar tarcieri avatar trevor-crypto avatar zonyitoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ring-compat's Issues

Teams?

How are we going to manage the teams for this? Should the AEAD team own ring-aead and the Digest team own ring-digest, or should we make a new team just for ring-wrappers?

Key Generation

I'm following the Ed25519 documentation for signing and verifying and I'm stuck
trying to generate a valid key that can be loaded by ring-compat.

Is there documentation for how to invoke openssl or ssh-keygen to generate keys, along with relevant code samples for loading keys?

@tarcieri suggested that ring-compat might want to support key generation. I'd be equally happy with that resolution.

Add support for PKCS#8 V1 keys for SigningKey

Context

I want to create a ring_compat::signature::ed25519::SigningKey from a Ed25519 PKCS#8 v1 private key. The existing functions for SigningKey is for PKCS8#8 v2 private keys (from_pkcs8).

The ring crate supports PKCS#8 v1 keys by supplying the from_pkcs8_maybe_unchecked function.
So you can create a ring::signature::Ed25519KeyPair using from_pkcs8_maybe_unchecked function but you cannot create the ring_compat::signature::ed25519::SigningKey once you have the Ed25519KeyPair because the field of the SigningKey struct is private.

Possible Solutions

  1. add from_pkcs8_maybe_unchecked to implementations of SigningKey for ring-compat
  2. create a constructor for SigningKey taking in Ed25519KeyPair

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.