From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 979ECDA5 for ; Mon, 25 Jan 2016 11:58:33 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id E039FCB for ; Mon, 25 Jan 2016 11:58:32 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id r129so60913432wmr.0 for ; Mon, 25 Jan 2016 03:58:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to; bh=nnZensH94WHFi6abE4SJf+jOeXd5/9YzzyuDcbBFuys=; b=dNIW4AgSYh/79mL2/rxoCu4459YDUgObLIpV4e8fqvtNSM3q0aN6sGCFkJHvEzICHD 06szeuA/OObQcRSc7sGewo0Zhazrog6Fpzy4GhJgiSX+q5AD7jMKAUNRDQZPOXsB7qYe 9qrYOypGYyNSjki0wdL1pB5bhipEI5asjUqe4fkCcuiKoV0B21bqFfvuHesDHYNQF54D Hg+bUdgd2ebegN0XSwahPKsafHx257qLeRRrkOIL/aOz8037ZpPC2Uq2HhgYRWtJwkg+ APCAk4OQIpzaLGmN8L5StoznbP41KnfUkvMuqxgS5SUowoCtYHR9kjGfy3lSxx5oEu3E /eHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to; bh=nnZensH94WHFi6abE4SJf+jOeXd5/9YzzyuDcbBFuys=; b=CG+yCvWyyqK0Yo8sYTc9gfdKgzQq9JBHvNQeiZigO9Qt9d9v+fr+Kb1axzfATgfUpA M1N9KA/mLhW+rpnG4A+1ZWyLAMDVMaYTWajCCQ8xUP7erC2wzfKins/+UPTuXonzne+U iwIbFyKkqO9iWTTsQsp0BIf8ex3qSVjGjYfgf24KM+OTusrB7hRcl1V6+qdfxcuLE0sg 3NrTZVqzF+gEa4/4CbPq/InEya5vZ4g7CyT+JWJSrly9nBuglxjJuhWkrvAzJ4rrpw3o DVYTpVccN03d6U+nLZJ6fZ9xSFVxqPdwxVsATYqd5fmjcm9pPOWoMASIBNFkPsQkd85+ R/Sg== X-Gm-Message-State: AG10YOQ/ptXUwW6XbSXSMLbA4BlZbeItGFfDQw9ctCt97tIceioTvmASqwPeO4SOlQGsGw== X-Received: by 10.195.18.5 with SMTP id gi5mr17026390wjd.167.1453723111522; Mon, 25 Jan 2016 03:58:31 -0800 (PST) Received: from amethyst.visucore.com (dhcp-089-098-228-253.chello.nl. [89.98.228.253]) by smtp.gmail.com with ESMTPSA id cs4sm18920900wjc.10.2016.01.25.03.58.30 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 25 Jan 2016 03:58:30 -0800 (PST) Date: Mon, 25 Jan 2016 12:58:29 +0100 From: "Wladimir J. van der Laan" To: Jonas Schnelli Message-ID: <20160125115829.GA17769@amethyst.visucore.com> References: <56A08C00.8020403@jonasschnelli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <56A08C00.8020403@jonasschnelli.ch> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: bitcoin-dev@lists.linuxfoundation.org Subject: Re: [bitcoin-dev] What is OpenSSL still used for? X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 11:58:33 -0000 > > In the release notes for 0.12, it says that we have moved from > > using OpenSSL to libsecp256k1 for signature validation. So what > > else is it being used for that we need to keep it as a dependency? > > Openssl was dropped from the consensus layer (ECC) in 0.12, though, it > still used for... > > 1) ... getting random numbers (randomize the ECC signing context) > 2) [wallet only] ... AES256 encryption of private keys > 3) [GUI only] ... SSL/X.509 for BIP70 (payment protocol) > > Openssl dependency for 1) and 2) could be removed. There are some – > outdated – relevant PRs: > > Entropy: https://github.com/bitcoin/bitcoin/pull/5885 > AES: https://github.com/bitcoin/bitcoin/pull/5949 > > I guess for point 3) [BIP70] it makes sense to keep openssl. Exactly - the plan is that OpenSSL will, in due time, be a dependency only if the GUI is enabled. Most of the work for that is already done but it has to be made up to date and carefully tested and integrated. Wladimir