From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web09.10861.1624984438997177684 for ; Tue, 29 Jun 2021 09:33:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gblwXo9C; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624984438; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=us3RcUs5ntJ/UmF2gsuhBJ+CXyPGhwHTlWUiweGX+y4=; b=gblwXo9CcxJsy7ol0o07yJA2OglLd3bMy1NWbQFWT+UWfL0sFQwxh4X3msOK2aZq58FYQ5 jAgjmqZ6HSOaG/jyn/TS9Jadd5DCWZr0ur9YWSbdfq30UaTHhlW/RyhEJXZVLSenVGSGZg r0pyEVIKKJz8cDapxD3o2+MQz2lkZLk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-224-vDLqD3CHNVuywTH8SxXXng-1; Tue, 29 Jun 2021 12:33:56 -0400 X-MC-Unique: vDLqD3CHNVuywTH8SxXXng-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 91CBE91271; Tue, 29 Jun 2021 16:33:55 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-158.ams2.redhat.com [10.36.114.158]) by smtp.corp.redhat.com (Postfix) with ESMTP id 98AC760875; Tue, 29 Jun 2021 16:33:52 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Jiaxin Wu , Maciej Rabeda , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Siyuan Fu Subject: [PATCH v2 5/6] NetworkPkg/IScsiDxe: support SHA256 in CHAP Date: Tue, 29 Jun 2021 18:33:36 +0200 Message-Id: <20210629163337.14120-6-lersek@redhat.com> In-Reply-To: <20210629163337.14120-1-lersek@redhat.com> References: <20210629163337.14120-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 SW5zZXJ0IGEgU0hBMjU2IENIQVBfSEFTSCBzdHJ1Y3R1cmUgYXQgdGhlIHN0YXJ0IG9mICJtQ2hh cEhhc2giLgoKVXBkYXRlIElTQ1NJX0NIQVBfTUFYX0RJR0VTVF9TSVpFIHRvIFNIQTI1Nl9ESUdF U1RfU0laRSAoMzIpLgoKVGhpcyBlbmFibGVzIHRoZSBpbml0aWF0b3IgYW5kIHRoZSB0YXJnZXQg dG8gbmVnb3RpYXRlIFNIQTI1NiBmb3IgQ0hBUCwgaW4KcHJlZmVyZW5jZSB0byBNRDUuCgpDYzog SmlheGluIFd1IDxqaWF4aW4ud3VAaW50ZWwuY29tPgpDYzogTWFjaWVqIFJhYmVkYSA8bWFjaWVq LnJhYmVkYUBsaW51eC5pbnRlbC5jb20+CkNjOiBQaGlsaXBwZSBNYXRoaWV1LURhdWTDqSA8cGhp bG1kQHJlZGhhdC5jb20+CkNjOiBTaXl1YW4gRnUgPHNpeXVhbi5mdUBpbnRlbC5jb20+ClJlZjog aHR0cHM6Ly9idWd6aWxsYS50aWFub2NvcmUub3JnL3Nob3dfYnVnLmNnaT9pZD0zMzU1ClNpZ25l ZC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