Python port of cisco-decrypt.c.