linux-integrity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mimi Zohar <zohar@linux.ibm.com>
To: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>,
	Petr Vorel <pvorel@suse.cz>, Vitaly Chikunov <vt@altlinux.org>,
	Stefan Berger <stefanb@linux.ibm.com>,
	linux-integrity@vger.kernel.org,
	Jia Zhang <zhang.jia@linux.alibaba.com>,
	"YiLin . Li" <YiLin.Li@linux.alibaba.com>
Subject: Re: [PATCH ima-evm-utils v7] ima-evm-utils: Support SM2/3 algorithm for sign and verify
Date: Wed, 21 Jul 2021 14:02:26 -0400	[thread overview]
Message-ID: <090dad3a30d709e6fbc9d20a4d283d68e27e1620.camel@linux.ibm.com> (raw)
In-Reply-To: <20210721031659.107568-1-tianjia.zhang@linux.alibaba.com>

Hi Tianjia,

On Wed, 2021-07-21 at 11:16 +0800, Tianjia Zhang wrote:
> Keep in sync with the kernel IMA, IMA signature tool supports SM2/3
> algorithm combination. Because in the current version of OpenSSL 1.1.1,
> the SM2 algorithm and the public key using the EC algorithm share the
> same ID 'EVP_PKEY_EC', and the specific algorithm can only be
> distinguished by the curve name used. This patch supports this feature.
> 
> Secondly, the openssl 1.1.1 tool does not fully support the signature
> of SM2/3 algorithm combination, so the openssl3 tool is used in the
> test case, and there is no this problem with directly calling the
> openssl 1.1.1 API in evmctl.
> 
> Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>

Other than the change noted below in .travis.yml, it's fine.  It's now
queued in next-testing.

> ---

> diff --git a/.travis.yml b/.travis.yml
> index 7a76273..ab030e5 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -9,7 +9,7 @@ matrix:
>      include:
>          # 32 bit build
>          - os: linux
> -          env: DISTRO=debian:stable VARIANT=i386 ARCH=i386 TSS=tpm2-tss
> +          env: DISTRO=debian:stable VARIANT=i386 ARCH=i386 TSS=tpm2-tss COMPILE_SSL: openssl-3.0.0-beta1


"COMPILE_SSL: openssl-3.0.0-beta1"  -> "COMPILE_SSL=openssl-3.0.0-
beta1"

thanks,

Mimi

>            compiler: gcc
>  
>          # cross compilation builds
> @@ -32,7 +32,7 @@ matrix:
>  
>          # glibc (gcc/clang)
>          - os: linux
> -          env: DISTRO=opensuse/tumbleweed TSS=ibmtss CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/runc --network=host"
> +          env: DISTRO=opensuse/tumbleweed TSS=ibmtss CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/runc --network=host" COMPILE_SSL: openssl-3.0.0-beta1
>            compiler: clang
>  
>          - os: linux
> @@ -40,7 +40,7 @@ matrix:
>            compiler: gcc
>  
>          - os: linux
> -          env: DISTRO=ubuntu:groovy TSS=ibmtss
> +          env: DISTRO=ubuntu:groovy TSS=ibmtss COMPILE_SSL: openssl-3.0.0-beta1
>            compiler: gcc
>  
>          - os: linux
> 



  parent reply	other threads:[~2021-07-21 18:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21  3:16 Tianjia Zhang
2021-07-21 15:35 ` Petr Vorel
2021-07-21 18:02 ` Mimi Zohar [this message]
2021-07-22  2:09   ` Tianjia Zhang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=090dad3a30d709e6fbc9d20a4d283d68e27e1620.camel@linux.ibm.com \
    --to=zohar@linux.ibm.com \
    --cc=YiLin.Li@linux.alibaba.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=pvorel@suse.cz \
    --cc=stefanb@linux.ibm.com \
    --cc=tianjia.zhang@linux.alibaba.com \
    --cc=vt@altlinux.org \
    --cc=zhang.jia@linux.alibaba.com \
    --subject='Re: [PATCH ima-evm-utils v7] ima-evm-utils: Support SM2/3 algorithm for sign and verify' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).