Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769).

Hal Murray <> Fri, 03 March 2017 01:54 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id DC87A129431; Thu, 2 Mar 2017 17:54:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: 1.034
X-Spam-Level: *
X-Spam-Status: No, score=1.034 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_DYNAMIC_IPADDR=1.951, RDNS_DYNAMIC=0.982, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id JB97MqqNptY7; Thu, 2 Mar 2017 17:54:20 -0800 (PST)
Received: from ( []) by (Postfix) with ESMTP id E366E1279EB; Thu, 2 Mar 2017 17:54:19 -0800 (PST)
Received: from shuksan (localhost []) by (Postfix) with ESMTP id CC005406061; Thu, 2 Mar 2017 17:54:18 -0800 (PST)
X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3
To: Andrey Jivsov <>
From: Hal Murray <>
In-Reply-To: Message from Andrey Jivsov <> of "Thu, 02 Mar 2017 15:15:28 PST." <>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Thu, 02 Mar 2017 17:54:18 -0800
Message-Id: <>
Archived-At: <>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769).
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 03 Mar 2017 01:54:22 -0000 said:
> I also think that counting in blocks is cleaner. Counting in bytes is a
> close alternative. 

Does counting bytes work?  If the real limit is blocks, I think you will have 
to round up the byte count when you send a partial block.

If re-keying too often isn't too expensive, you could get a safe answer by 
counting bytes and assuming that every byte went in a separate block.

You might want to round down many more orders of magnitude so the re-key code 
gets exercised often enough.  Or maybe provide a back door to set the limit 
so that path can be tested with reasonable resources.

These are my opinions.  I hate spam.