Laurence,
>I think this has come up before, but I'll ask again.
>
>Encrypt.h includes a declaration for EncDigestMD5(). Can we count on having
>that in all versions of PalmOS? Even if it is only PalmOS 3 and higher it
>would be help. There is a freely available C implementation of MD5 that
>compiles to about 3Kb of object code, but I'd like to avoid that extra 3Kb.
EncDigestMD5() was added in Palm OS 2.0, I believe.
On a related topic, while EncDigestMD5() should always be available on 2.0
or later versions of Palm OS, note that EncDES() (also added in 2.0) is
conditionally implemented - if you're running on a non-US device, then
calling that trap generates a "DES Not Supported" fatal alert. To check for
the presence of this support, you'd need to use FtrGet, as in:
UInt32 attributes;
Boolean hasDES;
hasDES = (FtrGet(sysFtrCreator, sysFtrNumEncryption, &attributes) == errNone)
&& ((attributes & 0x01) != 0);
>Also, if this is going to be added or officially supported in the future,
>it would be nice if the implementation was more along the lines of the
>freely available one. It allows you to feed data to be hashed in chunks,
>rather than all at once. This can drastically reduce memory requirements.
I'll pass your note along...
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200 (direct) +1 408-261-7550 (main)