From c6d2747f53639e72e25218072fad342fe021a31f Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Mon, 10 Feb 2014 08:56:25 +0100 Subject: [PATCH] explaining comments and small change-around --- tools/fasc.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/fasc.pl b/tools/fasc.pl index a5e8ced..2307336 100644 --- a/tools/fasc.pl +++ b/tools/fasc.pl @@ -26,6 +26,12 @@ # non-source form of such a combination shall include the source code # for the parts of OpenSSL used as well as that of the covered work. +# This little perl program takes an input like: +# S9999F9999F999999F0F1F0000000000300001E +# and outputs that in hex, encoded in the 5-bit form described in +# "Technical Implementation Guidance: Smart Card Enabled Physical Access +# Control Systems" + use strict; use Bit::Vector; @@ -40,8 +46,8 @@ my %encoding = ( 7 => "01110", 8 => "10000", 9 => "10011", - S => "10110", - F => "11010", + S => "11010", # the examples and definitions of S and F differ + F => "10110", # but we'll go with the examples here.. E => "11111", );