Giter Site home page Giter Site logo

Comments (4)

eduser25 avatar eduser25 commented on June 11, 2024 2

Is there any specific code example to tell me how to choose an algorithm

Language wrappers will provide proto implementation to fill in the algorithm details when attempting to create a client or server. Here's an example for golang to define specific KEMs to be used on a client or server:
https://github.com/sandbox-quantum/sandwich/blob/main/examples/go/tls_client/main.go#L30C1-L35C1

create a pub/pri key

I think the keys need to be created offband by either using openssl or any other tool today, I believe we don't provide capabilities todo that as of now directly on the library.

and implement the encryption or signature function

The encryption primitives are provided by the libraries used underneath, but take a look at the APIs our rust layer defines to later plug the library-provided primitives, specifically for tls.
https://github.com/sandbox-quantum/sandwich/blob/main/rust/implementation/ossl/mod.rs

from sandwich.

RideDi avatar RideDi commented on June 11, 2024

Thank you very much for your reply.I have another question about using the Echo_tls_server/client example.I try to use the way in the documentation.
bazelisk run //examples/go/echo_tls_server:echo_tls_server -- -port 4444 -server_cert testdata/localhost.cert.pem -server_key testdata/localhost.key.pem

And this error occurs when I try to run the server with the certificate and key in the testdata.
% bazelisk run //examples/go/echo_tls_server:echo_tls_server -- -port 4444 -server_cert testdata/localhost.cert.pem -server_key testdata/localhost.key.pem Starting local Bazel server and connecting to it... INFO: Analyzed target //examples/go/echo_tls_server:echo_tls_server (396 packages loaded, 41264 targets configured). INFO: Found 1 target... Target //examples/go/echo_tls_server:echo_tls_server up-to-date: bazel-bin/examples/go/echo_tls_server/echo_tls_server_/echo_tls_server INFO: Elapsed time: 17.613s, Critical Path: 1.42s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action INFO: Running command line: bazel-bin/examples/go/echo_tls_server/echo_tls_server_/echo_tls_server -port 4444 -server_cert testdata/localhost.cert.pem -server_key testdata/localhost.key.pem 2023/08/31 17:11:33 invalid configuration;
How can I locate the problem and solve it?

from sandwich.

jameshoweee avatar jameshoweee commented on June 11, 2024

we've just release a blog with some examples that may be useful: https://cryptographycaffe.sandboxaq.com/posts/sandwich-tutorial1/

from sandwich.

RideDi avatar RideDi commented on June 11, 2024

we've just release a blog with some examples that may be useful: https://cryptographycaffe.sandboxaq.com/posts/sandwich-tutorial1/

oh, I just checked this blog. It's very detailed. Thank you very much for your addition.

from sandwich.

Related Issues (3)

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.