From nobody Tue Apr 19 04:36:22 2022 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 216F111C9972 for ; Tue, 19 Apr 2022 04:36:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kj9x26MMRz3GNr for ; Tue, 19 Apr 2022 04:36:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B51A320B8A for ; Tue, 19 Apr 2022 04:36:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23J4aM95060135 for ; Tue, 19 Apr 2022 04:36:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23J4aMTn060134 for net@FreeBSD.org; Tue, 19 Apr 2022 04:36:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 263379] [regression] [ipsec] compatibility broken between stable/12 and stable/13 opencrypto in AEAD mode Date: Tue, 19 Apr 2022 04:36:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jhb@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650342982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YtUqbZm6SMCbpIv+sv7M5w/2o1257tS24ZZmG4rPfaQ=; b=L2jtGVlQUbUxwF1QAumSD+M8J/l7hFMMqh6mRwIpafeQHdKGF3V7pI151Njj4bqTGq0X7c aRuBgIGj2V/pWv6rY8FJFVbj3VvOek8eLVEdtRaqcIbHnODN1VJtRUE1MfU8ouNYTgxxr6 Rj4xWfuMuAq7YUS4EgB13SECayOiA2SXPe1hWHMq64ChQT7/CxZDujzUDgAIbh1+crLCzY 6+SAcdYNMynqHAht3JiroJ/4nz10shawAMY5AyihWxPFUCm40e9i8b4c8AF7maDtB34IvY v+93vHDDlDtPx1sw3P3ICc9yNirQExvMa+J0iwENWq/CG0+bU6gZgFWddQpOHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650342982; a=rsa-sha256; cv=none; b=cFJDz4iuhQbTtwrbUyQUsQMR3LzL1t/fOdBtijvU8+DlT0eFSqmFCBa4Z7XrXPEx/mbwVk /6gLUfDbqWrl37tLKgJ5y0DsfuBOt0mlarYqH5n2yDjVKhSnCA2VPXxdFVFhybBCKlqU/B HQrpPVS5vsfQ2AL2MMbqcSGRBSoZxl63Yz/wvICB4l6KC2tKfKjivbD3CGCR0Kw0y3w/SA FwqM+HpJtDpLxxIY6iNZJPZyHTJrgG41wBcgT5zXiAFP1k3UbEoNxq17N2T0RgCN/WZkkL TPhLwWCHb18A08p+JwQzrAGsj5OCOII2nH3hpIHQkbxRz6+WyVe3RhGwzbwzOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263379 --- Comment #9 from Eugene Grosbein --- (In reply to John Baldwin from comment #8) > Static keys are not good for AES-GCM or AES-CTR as the sequence number ca= n rollover yes. Maybe it's worth mentioning in the setkey(8), too. > stable/13 should work fine with ETA combos such as AES-CBC with SHA1/256/= 512 HMACs. But it does not for me. > Note that the key for AES-CBC is shorter than for AES-CTR/GCM as it is "o= nly" the actual AES key (so 16, 24, or 32 bytes) and doesn't include the ex= tra 4 bytes for the implicit part of the IV. I am aware of this. > (And setkey just reports "EINVAL" for all manner of errors, so it's rathe= r hard to figure out why setkey fails in my experience, so my best guess is= you are reusing the GCM key but need to remove the last 4 bytes.) First, I did modify the key to shorter it. Second, setkey utility has its o= wn syntax checks that include checks for the length and it does not even try to sent ADD request to the kernel for wrong key length issuing a bit more read= able error with line number of /etc/ipsec.conf > The kyua tests test AES-CBC (both 128 and 256 bit keys) with SHA1-HMAC an= d SHA2-256-HMAC. Would you please point me to the corresponding kyua test? --=20 You are receiving this mail because: You are on the CC list for the bug.=