From patchwork Fri Jul 25 11:55:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 34273 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D58EE20551 for ; Fri, 25 Jul 2014 11:55:51 +0000 (UTC) Received: by mail-ig0-f198.google.com with SMTP id h18sf2570335igc.9 for ; Fri, 25 Jul 2014 04:55:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:message-id:references :mime-version:in-reply-to:user-agent:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-disposition :content-type:content-transfer-encoding; bh=Ekre7QBcse3zmNO43hPtdbXhBl7nIChBHFVdmil/kD4=; b=K4xYuu+E5HCVD1EJLKVPQ37ou9/6Izi3Ys17pDzv9qtJtgfOAjXKVSJh2ii0fUmI2G 6X8OH2JldgQCVc1ZrnOi7RK680SDwOiFSTXJOLkBlt8yAzY0ECvw7KQiWiR1zhV3cRqj /gIMoctwp+MQVbs7fMjuK1+SujVD+YowgvPjaxEbY9E7e4lnVghdARlQ6pSB/fhv92z7 f/ucGIPo4lq4JE5wpDpwLK2z62sUhtxaJvDTQxjsm6igQy8bek4ppIWMhKrANQS+mgNX GC+S2FfqX/4h5Q4NdqoSOOJnpjNyvH5jkILYkwZDaL79OmMkLJ8SwkgmNHfG4ZH/B0re BEIA== X-Gm-Message-State: ALoCoQno+foElq2s1Wax2fHIwEZ1tQ00Ka8jRXJgE8ENG50sHsJewrsOjtGYU6JmmLF6QzeH29ir X-Received: by 10.182.66.234 with SMTP id i10mr7894062obt.12.1406289351203; Fri, 25 Jul 2014 04:55:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.75 with SMTP id f69ls1034485qga.96.gmail; Fri, 25 Jul 2014 04:55:51 -0700 (PDT) X-Received: by 10.220.105.201 with SMTP id u9mr19793416vco.11.1406289350941; Fri, 25 Jul 2014 04:55:50 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id z8si7216215ven.51.2014.07.25.04.55.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 25 Jul 2014 04:55:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id lf12so7114952vcb.26 for ; Fri, 25 Jul 2014 04:55:50 -0700 (PDT) X-Received: by 10.52.244.138 with SMTP id xg10mr16840221vdc.40.1406289350766; Fri, 25 Jul 2014 04:55:50 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp32221vcb; Fri, 25 Jul 2014 04:55:50 -0700 (PDT) X-Received: by 10.140.92.235 with SMTP id b98mr2596892qge.97.1406289350269; Fri, 25 Jul 2014 04:55:50 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 7si15953280qah.90.2014.07.25.04.55.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 04:55:50 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAe6F-0002OJ-HK; Fri, 25 Jul 2014 11:55:47 +0000 Received: from mail-la0-f47.google.com ([209.85.215.47]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XAe6A-0002OE-5e for lng-odp@lists.linaro.org; Fri, 25 Jul 2014 11:55:42 +0000 Received: by mail-la0-f47.google.com with SMTP id mc6so2927826lab.20 for ; Fri, 25 Jul 2014 04:55:36 -0700 (PDT) X-Received: by 10.152.10.42 with SMTP id f10mr2191593lab.79.1406289336017; Fri, 25 Jul 2014 04:55:36 -0700 (PDT) Received: from 8470w (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id go8sm15604668lbc.8.2014.07.25.04.55.34 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 04:55:35 -0700 (PDT) Date: Fri, 25 Jul 2014 13:55:32 +0200 From: Anders Roxell To: Taras Kondratiuk Message-ID: <20140725115532.GA22488@8470w> References: <1406224439-24226-1-git-send-email-robking@cisco.com> <20140724182734.GA21709@8470w> <53D22B14.4030305@linaro.org> MIME-Version: 1.0 In-Reply-To: <53D22B14.4030305@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Topics: crypto patch Cc: lng-odp@lists.linaro.org Subject: Re: [lng-odp] [PATCH 0/3] ODP Crypto API X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Content-Disposition: inline On 2014-07-25 13:01, Taras Kondratiuk wrote: > On 07/24/2014 09:27 PM, Anders Roxell wrote: > >Hi Robbie, > > > >On 2014-07-24 13:53, Robbie King wrote: > >>Hello all, > >> > >>Per the latest ODP crypto discussions, here are patches > >>to add the ODP crypto API header file as well as the > >>linux-generic implementation. The IPsec test application > >>will be in a separate patch set. > > > >I like what you've done. > > > >Just some nits. > >1. Copyright year 2013, change to 2014 > >2. Probably me that don't know how to do this but, how can I cross > > compile for arm? > > Hi Anders, > > I'm using OE's toolchain and sysroot which already have openssl in it. Hi, I did it like this: $ git clone git://git.openssl.org/openssl.git $ cd openssl Tested on both v8 and v7: v8 $ ./Configure linux-aarch64 --cross-compile-prefix=aarch64-linux-gnu- --prefix=/home/anders/src/install-openssl-aarch64 $ make $ make install v7: $ ./Configure linux-generic32 --cross-compile-prefix=arm-linux-gnueabihf- --prefix=/home/anders/src/install-openssl $ make $ make install added this patch ontop of Robbbies three patches: $ git df building ODP v8: $ ./configure --host=aarch64-linux-gnu --with-openssl-path=/home/anders/src/install-openssl-aarch64 $ make building ODP v7: $ ./configure --host=arm-linux-gnueabihf --with-openssl-path=/home/anders/src/install-openssl $ make Robbie we need to add this and probably something in the README howto build openssl right? Cheers, Anders diff --git a/configure.ac b/configure.ac index 95d5bdf..8cf4a83 100644 --- a/configure.ac +++ b/configure.ac @@ -90,10 +90,18 @@ AM_LDFLAGS="$AM_LDFLAGS $PTHREAD_LDFLAGS" # Check for openssl availability ########################################################################## +AC_ARG_WITH([openssl-path], +AC_HELP_STRING([--with-openssl-path=DIR Path to openssl libs and headers], + [(or in the default path if not specified).]), +[OPENSSL_PATH=$withval +AM_CFLAGS="$AM_CFLAGS -I$OPENSSL_PATH/include" +AM_LDFLAGS="$AM_LDFLAGS -L$OPENSSL_PATH/lib" +],[ AC_CHECK_LIB([crypto], [EVP_EncryptInit], [], [AC_MSG_FAILURE([can't find openssl crypto lib])]) AC_CHECK_HEADERS([openssl/des.h openssl/rand.h openssl/hmac.h openssl/evp.h], [], [AC_MSG_FAILURE([can't find openssl crypto headers])]) + ]) ########################################################################## # Default warning setup