sigurd(a)12move.de (Karl Pflästerer) writes:
Hi,
can someone explain me how to use the code from blowfish.el? I tried it
but encountered only errors. I tried it with Emacs and it worked fine.
I searched a bit and found that chars are written in that file like
that:
,----
| (defconst blowfish-p-array-inits
| [
| [?\x243f ?\x6a88] [?\x85a3 ?\x08d3] [?\x1319 ?\x8a2e] [?\x0370 ?\x7344]
| [?\xa409 ?\x3822] [?\x299f ?\x31d0] [?\x082e ?\xfa98] [?\xec4e ?\x6c89]
| [?\x4528 ?\x21e6] [?\x38d0 ?\x1377] [?\xbe54 ?\x66cf] [?\x34e9 ?\x0c6c]
| [?\xc0ac ?\x29b7] [?\xc97c ?\x50dd] [?\x3f84 ?\xd5b5] [?\xb547 ?\x0917]
| [?\x9216 ?\xd5d9] [?\x8979 ?\xfb1b]
| ])
`----
(and a lot more chars).
XEmacs (at least 21.5) doesn't accept chars written like that. Or am I
wrong here? If you look at the value of that variable it#s something
like that which seems to be wrong:
,----[ C-h v blowfish-p-array-inits RET ]
| `blowfish-p-array-inits' is a variable declared in Lisp.
| -- loaded from
"/usr/local/lib/xemacs/xemacs-packages/lisp/ecrypto/blowfish.el"
|
| Value: [[?$ 3f ?j 88] [?\^Å a3 ?\^H d3] [?\^S 19 ?\^Ê 2e] [?\^C 70 ?s 44] [?¤ 9 ?8 22]
[?\) 9f ?1 d0] [?\^H 2e ?ú 98] [?ì 4e ?l 89] [?E 28 ?! e6] [?8 d0 ?\^S 77] [?¾ 54 ?f cf]
[?4 e9 ?\^L 6c] [?À ac ?\) b7] [?É 7c ?P dd] [?\? 84 ?Õ b5] [?µ 47 ?\t 17] [?\^Ò 16 ?Õ d9]
[?\^É 79 ?û 1b]]
|
| Documentation:
| not documented as a variable.
`----
You are right. I guess the solution is to change blowfish.el so it
uses decimal integers, but it makes the array quite difficult to
compare with other tables. Is it difficult to make XEmacs understand
that ?\x243f means 9279? And other integers too, of course. I'd
prefer that. Other elisp packages may use it too.