Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Wei, Changzheng
It works. Thanks a lot! From: openssl-dev [mailto:openssl-dev-boun...@openssl.org] On Behalf Of Peter Waltenberg Sent: Friday, December 23, 2016 8:56 AM To: openssl-dev@openssl.org Subject: Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Dmitry Belyavsky
Dear Wei, You will need hardcoded NIDs for many protocols implemented in OpenSSL (TLS, PKCS12). For most other purposes the dynamic allocation of objects using OBJ_ functions works fine, but some years ago I had problems with some applications when I used engine that allocated objects

Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Short, Todd
Easiest way is to fork the OpenSSL Github repo and then clone it down to your local machine where you can do the work locally. Once you are happy, push it back up to your forked Github repo, and then make a pull request back to the OpenSSL repo. There are lots of places you can get information

Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Joey Yandle
May I suggest you have a look at the GOST engine? It does implement the algorithm entirely in the engine. The only things added in the OpenSSL code are the OIDs (not strictly necessary) and the TLS ciphersuites (I don't think that can be done dynamically at all, at least yet). How are the

Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Richard Levitte
In message <20161222.225335.92995302056231655.levi...@openssl.org> on Thu, 22 Dec 2016 22:53:35 +0100 (CET), Richard Levitte said: levitte> In message on Thu, 22 Dec 2016 13:33:16 -0800, Joey Yandle said:

Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Richard Levitte
In message <936be946f26e274a8595dbf91a05bd767c4fa...@shsmsx101.ccr.corp.intel.com> on Thu, 22 Dec 2016 13:12:36 +, "Wei, Changzheng" said: changzheng.wei> Hi, changzheng.wei> changzheng.wei> I want to implement some new algorithm. To make my future work

Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Richard Levitte
In message on Thu, 22 Dec 2016 13:33:16 -0800, Joey Yandle said: xoloki> > May I suggest you have a look at the GOST engine? It does implement xoloki> > the algorithm entirely in the engine. The only things added in the

Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Wei, Changzheng
Hi Thanks for your reply. My question is that, I add a new subdir(named abc) in openssl/crypto/abc, and implement codes , Makefile and build.info in the crypt/abc directory, but when I re-build OpenSSL, I found that this new added sub dir is not involved into the build system, any source file

Re: [openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Peter Waltenberg
It's changed in recent OpenSSL. 1.1.0c the directories are in Configure. # Top level directories to build $config{dirs} = [ "crypto", "ssl", "engines", "apps", "test", "util", "tools", " fuzz" ]; # crypto/ subdirectories to build $config{sdirs} = [ "objects", "md2", "md4", "md5",

[openssl-dev] Add a new algorithm in "crypto" dir, how to add the source code into the build system

2016-12-22 Thread Wei, Changzheng
Hi, I want to implement some new algorithm. To make my future work smoothly, I want to add a new algorithm method like "RSA_METHOD" in OpenSSL framework so as to I can use an "engine" to support such algorithm. So I add a new subdir in "crypto" and implement the code and build.info refer to