Subject: [netmod] crypt-hash

From: Ladislav Lhotka <[email-masked]>
Date: Mon, 14 Nov 2011 12:00:28 +0800

Hi,

in the ietf-system module, the regex pattern used in the "crypt-hash" typedef is incorrect. At least, parentheses must be used to enclose the alternative values for hash function id:

$0$.*|$(1|5|6)$[a-zA-Z0-9./]{2,16}$.*

The hash value is also base-64 encoded, right? So the regex pattern should only allow "[a-zA-Z0-9./]" instead of ".". Can the hash value be empty? If not, the asterisks should be replaced with "+".

Lada

--
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C