Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp26471pxb; Tue, 28 Sep 2021 14:33:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqxKSHtg3Q8lb0kdKyqgGvrQxxmUiqS+YoXNkj6mZdWJdz7u5geq62AuT4JcMpdUJFAc0t X-Received: by 2002:a62:1702:0:b0:444:d085:6a61 with SMTP id 2-20020a621702000000b00444d0856a61mr7490223pfx.14.1632864831017; Tue, 28 Sep 2021 14:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632864831; cv=none; d=google.com; s=arc-20160816; b=OivElhop9jWCavfLfK3pi0lT1n21ehrlDvT93p2Wk4MbORdpxaNO8ks/R9yFvc7N4c 2lERXQQW/04G+yK/Q+S3IIWNQHKmRqvjRa1j/qb4jDI/rAYieqBkhwQknPu8lzJSByhI uxQZ7xOdn88E+/PoZ1XyGcirJ+a7Pt6B3oyFsCE0NrZlmBetZ382/IXKNcP6Puoa9ZXH 5V8OIlo9DMdlOYIMwuQb0x17fOPzp0AMewfCvAlhWk9O0MauKETpQThnMAmZ4HkylWv5 8Z1PPnck39m5/WE/cAM6zJ92Ir4tJHk4vRroF47JqwUEXI3UBrnyeyncUJ14JuT61gaK D3OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature:dkim-filter; bh=dMDBA38/uSXkbxTsH/bk7zHUowoegagawy/x+WXzhDI=; b=0yz2HemfhAWamEMY8VYKUTLBCjL7FaQV1l7I6E8vQ4xl32FBYXdTNYh4VQ+mTKNYQ/ KL46ZL3OUFptAntIgzv6xJzoKity42OdLHg4Z9y2r5BmWITRwEo8s0ztQSXqYDHH2ouu h6g4fqNMHykSEWS3gFZBRj+fj2G4cQHIY3W2+QHsWqaQlMQbnKmQW9SqbGDE/Xl4cBhW jE6FjJ/3Hkogd/wtNFQWh79pXhcD6F8q8sEVId5o6Ej+bZRcsVVBtglaCPKbwJet+EcP FxHEPp2Nm91t5dmncZ3Y5+LLmVuoZQZIuni1EHaEc7uENHnZeVBMqNnmM8Do7ePXF7n8 8u8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@novek.ru header.s=mail header.b=S4KOd7zh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si259231plk.110.2021.09.28.14.33.37; Tue, 28 Sep 2021 14:33:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@novek.ru header.s=mail header.b=S4KOd7zh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241482AbhI1Vdp (ORCPT + 99 others); Tue, 28 Sep 2021 17:33:45 -0400 Received: from novek.ru ([213.148.174.62]:33418 "EHLO novek.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232003AbhI1Vdo (ORCPT ); Tue, 28 Sep 2021 17:33:44 -0400 X-Greylist: delayed 445 seconds by postgrey-1.27 at vger.kernel.org; Tue, 28 Sep 2021 17:33:44 EDT Received: from [192.168.0.18] (unknown [37.228.234.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by novek.ru (Postfix) with ESMTPSA id 1455F503C31; Wed, 29 Sep 2021 00:21:03 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru 1455F503C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1632864064; bh=dMDBA38/uSXkbxTsH/bk7zHUowoegagawy/x+WXzhDI=; h=Subject:To:References:From:Date:In-Reply-To:From; b=S4KOd7zhhRoVWuK9SFxV5Doqcdkl1IQNqAGuM5nVznKr+6OKHwhJ9BdDoJgSeHmNU 1BKvsj23z7lNdr/MhiYGPmXnyEp6fnkm4OWWZMAqKPjtsS43Y6EW2hN+2emut14JSC KuUJm259NlPxMD6zvEX2VeDmPF4V6a46q1AorKG4= Subject: Re: [PATCH] net/tls: support SM4 CCM algorithm To: Tianjia Zhang , "David S. Miller" , Jakub Kicinski , Boris Pismenny , John Fastabend , Daniel Borkmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210928062843.75283-1-tianjia.zhang@linux.alibaba.com> From: Vadim Fedorenko Message-ID: <1761d06d-0958-7872-04de-cde6ddf8a948@novek.ru> Date: Tue, 28 Sep 2021 22:24:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210928062843.75283-1-tianjia.zhang@linux.alibaba.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gate.novek.ru Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28.09.2021 07:28, Tianjia Zhang wrote: > The IV of CCM mode has special requirements, this patch supports CCM > mode of SM4 algorithm. > Have you tried to connect this implementation to application with user-space implementation of CCM mode? I wonder just because I have an issue with AES-CCM Kernel TLS implementation when it's connected to OpenSSL-driven server, but still have no time to fix it correctly.