Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwPTb-00011x-RG for pgsql-committers@arkaria.postgresql.org; Tue, 18 Oct 2016 08:10:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwPTb-0003J2-9q for pgsql-committers@arkaria.postgresql.org; Tue, 18 Oct 2016 08:10:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwPTa-0003It-O2 for pgsql-committers@postgresql.org; Tue, 18 Oct 2016 08:10:22 +0000 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bwPTT-0001ie-13; Tue, 18 Oct 2016 08:10:21 +0000 Received: by mail-lf0-x22c.google.com with SMTP id x79so342091870lff.0; Tue, 18 Oct 2016 01:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=xLyEo0ToDkFq13FBrPj91wqT4QpekbluYfmPw0acG88=; b=VbsoQHKXK/UwaqSgsJnxM0Q3Ohu3j9ZfZv6Z6DfEb8vsbhAT+buu5/G8O6tjzDdpL2 OBNkLjs4XcY2CZKHukVdCBcomO5qRp1m3vOG8COOD8lbhBSYfKQHjSUa+HQie+jH+yjf QlBOQvqS82E9eH9LtL0woU0btOWE4LuzoaoI0jwgAtG1AOERLFrRX5GrmJfnSqrwAKpA LS9s5E+0tjN86ufBWN9latKHD/uPFwmFhGSTjGI2n319W1pRooqFx4r52gNjXp+4J3Dq g8C2iupg5lK0Dd3TWlbyKaw2QsZOyg/vrecGtZEvO+h67AYvcPcZvYvVhyraGKhwS/Pv jSOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=xLyEo0ToDkFq13FBrPj91wqT4QpekbluYfmPw0acG88=; b=fy4HsYyef2zwexaFxhEZ8Y3YUp/m/1Wikv3nytEV0rcnoF12jH1o8shLbqAsIncvEl fhXM8bsgDZTT4ecTouPAQPqiWLkz34zbQsce1ML9bobEiJZ+jJjfUgVj1l6N3koxcv6/ 4Abci5tq48QFzvGWfvIkEqyLzzPMupsdJl4lJvID64SD67qyMv7xGSGBmlEZTuHa4PQl slwJdNyEF8Pl9ICiiJbBMxhLBa7ephj81d2LjhedQKZrxCqsH+g9rIlG0wQxpDZQ1VYQ lhnRN6wQe9FJfAIECjjULkCdlGtp9+iwnTabsT8hsYM3WO2bkXQ9c1kd+b3IT+3ecmZq 36Ww== X-Gm-Message-State: AA6/9RkNvZ0+yuoFtQ9x/xgARS6/QPeLnnz8FgNmcixxIi4Coh+0gPcplMPA1Xg+BVtDaQ== X-Received: by 10.25.133.198 with SMTP id h189mr16836135lfd.95.1476778213162; Tue, 18 Oct 2016 01:10:13 -0700 (PDT) Received: from [192.168.1.111] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id r20sm8838477lfr.19.2016.10.18.01.10.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Oct 2016 01:10:12 -0700 (PDT) Subject: Re: pgsql: Use OpenSSL EVP API for symmetric encryption in pgcrypto. To: Tom Lane References: <23007.1476739698@sss.pgh.pa.us> Cc: pgsql-committers@postgresql.org, dpage@postgresql.org From: Heikki Linnakangas Message-ID: <6207afd5-caa5-9444-c143-e2643a66afef@iki.fi> Date: Tue, 18 Oct 2016 11:10:07 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <23007.1476739698@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 10/18/2016 12:28 AM, Tom Lane wrote: > Heikki Linnakangas writes: >> Use OpenSSL EVP API for symmetric encryption in pgcrypto. > > BTW, "narwhal" seems to have a problem with this. > Not very clear what, maybe an incompatibility with old openssl versions? Dave, what version of OpenSSL are 'narwhal' and 'baiji' using? I've tried to reproduce this on my laptop, by compiling different versions of OpenSSL, between 0.9.8beta1 and 0.9.8 head, but without success.. Googling for the failed test vector, I found this: https://www.mail-archive.com/openssl-users@openssl.org/msg68108.html It looks like the same issue, given the symptoms, but AFAICS the pgcrypto code is correctly calling EVP_EncryptInit_ex() twice. - Heikki -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers