Re: [Cfrg] GMAC algorithm

Michael StJohns <msj@nthpermutation.com> Wed, 08 April 2020 17:12 UTC

Return-Path: <msj@nthpermutation.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B9B523A10ED for <cfrg@ietfa.amsl.com>; Wed, 8 Apr 2020 10:12:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=nthpermutation-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EytPAxdYoO0f for <cfrg@ietfa.amsl.com>; Wed, 8 Apr 2020 10:12:21 -0700 (PDT)
Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D37413A10EB for <cfrg@irtf.org>; Wed, 8 Apr 2020 10:12:20 -0700 (PDT)
Received: by mail-qv1-xf29.google.com with SMTP id p60so4036183qva.5 for <cfrg@irtf.org>; Wed, 08 Apr 2020 10:12:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nthpermutation-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=T7ywoUnPrFXHI1J8an75YJr3nh/N2wJnFP6UmY/X+gA=; b=KxxXDW2a0HjOo9ZnViLNnYsS2S8Auos8YI4aGhl5jksYnyKHKxN/NO0ujwMH0jQ7vM 6qKC9X1zFul95gJfS90ZlBfCQFMJraTYHkyb3i5YFlue5hG1D/YBDMv3+8qdvpNpQQOP vXbjnL/dVvsOhVnSxuulAHYHGSNFyWdXIokMsy8yQ+TZuGcQ4CpjcPYx6FRAqYZHRCpM bfq3fGK6TXXZksK1DmjnHMCjpn03mb8/FsPWwvHiE9e8mLv/z0GLiQESLHv3/CzCu+Jo DX6fgjZEjzy8+/nfGcHoAYmw72QKb+RRuMDn+hrChMDCsMbZkWfE7/IsH5cO+PN9ghS7 JHMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=T7ywoUnPrFXHI1J8an75YJr3nh/N2wJnFP6UmY/X+gA=; b=HlkYHWGE8LfkBl2zjUR4m+pSJDG8p9ztupEt0hgnQqcF38USVs74xK4ZciZYUhWBZx 9f5UqgAIFccVQRyREHqWqLvsE8JFhYvXTZzXjxFqFo0ig6fYe5f3aJE7I0D70SNjjez3 ZGalGiAoFxaDCQ/mgk/fkCoHyns2odIKYDy6IKexsFsi9DtIAy3wkhGQmWV3tJLTIb2S 90bNL/2Ch9YNrgjua457Fy+9mNh92X6mUe/oC3d+6pGUw80daM3x61uKV61yC57BgQlY kjsIdePqojATh23M0pK8MEgXtKM4GG+pFxEUhtDP0P240jS5P4B5X41N/6QOtohTWQ46 jnqQ==
X-Gm-Message-State: AGi0PuaoQ2shUhvoRpK+tZXIZvyGZPCI7SdctN9KVRFrlZfykMf2R8t6 eouYYsfPXD0Zcmna24xcYmIwXCOMhw6yiw==
X-Google-Smtp-Source: APiQypLR7x0M4QlExNIhxfQt+EtXr/ceMp1ygNxD2yZOk2gsaJM1we2BcLQIKPSAi51sIU3M9e3J2g==
X-Received: by 2002:ad4:4b62:: with SMTP id m2mr2328932qvx.130.1586365939392; Wed, 08 Apr 2020 10:12:19 -0700 (PDT)
Received: from [192.168.1.115] (pool-71-163-188-115.washdc.fios.verizon.net. [71.163.188.115]) by smtp.gmail.com with ESMTPSA id r128sm2130040qke.95.2020.04.08.10.12.18 for <cfrg@irtf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Apr 2020 10:12:18 -0700 (PDT)
To: cfrg@irtf.org
References: <002901d60db6$59a1e740$0ce5b5c0$@x500.eu>
From: Michael StJohns <msj@nthpermutation.com>
Message-ID: <fd5f6570-e06b-e252-5e3f-40828b8be807@nthpermutation.com>
Date: Wed, 08 Apr 2020 13:12:16 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0
MIME-Version: 1.0
In-Reply-To: <002901d60db6$59a1e740$0ce5b5c0$@x500.eu>
Content-Type: multipart/alternative; boundary="------------C50B5C7B77352CDE08AC0388"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/pBoTxj_igP2SwPd_SI3ImGOVyRU>
Subject: Re: [Cfrg] GMAC algorithm
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Apr 2020 17:12:23 -0000

On 4/8/2020 10:59 AM, Erik Andersen wrote:
>
> I am trying to find the exact definition of the GMAC algorithm, 
> inclusive the OID. I have checked ISO/IEC 9797-3, which refer to 
> ISO/IEC 18033-3. They seems to use an OID structure very different 
> from NIST and IETF. For example, for AES they use the key length as a 
> parameter, while NIST and IETF defines a separate algorithm for each 
> key length. Also, the OIDs are quite different.
>
> What is the IETF view on the GMAC algorithm?
>
> Best regards,
>
> Erik
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg

Hi Erik -

GMAC isn't generally used as a standalone, but when it is, it's 
basically GCM with nothing encrypted (e.g. no plaintext, only AAD), so 
use the various NIST AES OIDS for those.

aes OBJECT IDENTIFIER ::= { joint-iso-itu-t(2) country(16) us(840)
           organization(1) gov(101) csor(3) nistAlgorithm(4) 1 }

       id-aes128-GCM OBJECT IDENTIFIER ::= { aes 6 }

       id-aes192-GCM OBJECT IDENTIFIER ::= { aes 26 }

       id-aes256-GCM OBJECT IDENTIFIER ::= { aes 46 }

RFC 5084

Mike