Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80975 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17463 invoked from network); 22 Jan 2015 15:22:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2015 15:22:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=kobrasrealm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kobrasrealm@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.180 as permitted sender) X-PHP-List-Original-Sender: kobrasrealm@gmail.com X-Host-Fingerprint: 74.125.82.180 mail-we0-f180.google.com Received: from [74.125.82.180] ([74.125.82.180:55541] helo=mail-we0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F8/09-61273-89511C45 for ; Thu, 22 Jan 2015 10:22:01 -0500 Received: by mail-we0-f180.google.com with SMTP id m14so2359941wev.11 for ; Thu, 22 Jan 2015 07:21:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=vYGCHQm6R+vA2tJFeDGMpXTjpnx6y8PDjHi1gNtMHvA=; b=H1YBqtcy+ooHZH71yEPlZZbbP8rbVxJIp/AHGVeV2cx6JbW7gIWjqoFGCAPnXY1GbK r7+OuqerDS+ZFDjFoQu3bGSvJXLN+z0KSkGnUcmBL5rLQfKnr3ZiIVjgdu7Iwt2mZ4wo RK1t4enlL0QCvfgt8F+jJIcUAt3HcKP8j0Q3JrtLV8hE2mARURSxfIeI0eJVJFo74bXp wwSy8e4r0Hf5ss8Ri+5Tgtb3vsUJjT+JykX053WMTxpcZhVzFv5ERsWC0mILIq1ZtU7k KBSHRbXjw0ptPlInwx29kVWfdNiPDO5VPFbDUv1S4xcngWBj7bzOMzKaUAWVbai/tGzT BpTQ== MIME-Version: 1.0 X-Received: by 10.180.95.9 with SMTP id dg9mr38734697wib.1.1421940117631; Thu, 22 Jan 2015 07:21:57 -0800 (PST) Sender: kobrasrealm@gmail.com Received: by 10.27.32.85 with HTTP; Thu, 22 Jan 2015 07:21:57 -0800 (PST) Date: Thu, 22 Jan 2015 10:21:57 -0500 X-Google-Sender-Auth: TPFnSrNh8ao55wIQ-oD_HDO2mzA Message-ID: To: "inter >> PHP internals" Content-Type: multipart/alternative; boundary=f46d0421a87f9a7710050d3f3b1a Subject: Constant-Time Encoding Functions From: scott@arciszewski.me (Scott Arciszewski) --f46d0421a87f9a7710050d3f3b1a Content-Type: text/plain; charset=UTF-8 Hi everybody, I've squashed and rebased my pull request that adds a cache-timing-safe bin2hex implementation (named ts_bin2hex) to PHP. https://github.com/php/php-src/pull/909 Before I put more effort into the inverse operation (which, from what I can tell, is already constant-time), does anyone have a better naming convention suggestion? Furthermore, should a similar effort be expended for base64 encoding/decoding functions? Scott --f46d0421a87f9a7710050d3f3b1a--