Code Monkey home page Code Monkey logo

go-crypto-winnative's Issues

Mentions of OpenSSL in cng package

I noticed these when I was doing a test run with the CNG backend in microsoft/go (and got a little confused how I'd ended up unning the OpenSSL backend on Windows ๐Ÿ˜„):

var errUnknownCurve = errors.New("openssl: unknown elliptic curve")
var errUnsupportedCurve = errors.New("openssl: unsupported elliptic curve")

And I searched for OpenSSL and saw this, too:

// Public key length should be at least of 2048 bits, else OpenSSL will report an error when running in FIPS mode.
n := fromBase36("14314132931241006650998084889274020608918049032671858325988396851334124245188214251956198731333464217832226406088020736932173064754214329009979944037640912127943488972644697423190955557435910767690712778463524983667852819010259499695177313115447116110358524558307947613422897787329221478860907963827160223559690523660574329011927531289655711860504630573766609239332569210831325633840174683944553667352219670930408593321661375473885147973879086994006440025257225431977751512374815915392249179976902953721486040787792801849818254465486633791826766873076617116727073077821584676715609985777563958286637185868165868520557")

I think the first one just needs to be updated, but with the second one I'm not sure if it's the same between OpenSSL and CNG.

Missing algorithms

This issue lists the algorithms that are implemented in dev.boringbranch by BoringSSL but not available in Windows CNG.

  • SHA methods don't implement BinaryMarshaller and BinaryUnmarshaller interfaces. I still haven't found a way to get the inner state of the SHAs and map it to Go binary representation.
  • SHA224.
  • MD5SHA1
  • AES and DES CTR mode. We might be able to implement it using AES in ECB mode and some custom logic: https://gist.github.com/hanswolff/8809275. Another option is to fallback to Go Crypto.
  • rsa.PSSSaltLengthAuto
  • RSA keys with more than 2 primes
  • RSA key lengths are more restrictive, i.e. must be bigger or equal than 512 and multiple of 8.
  • dsa.L2048N224

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.