Executing a hashing algorithm
hey all,
i'm writing lightroom plugin needs execute sha-256 hash algorithm on photos prior performing other actions on them.
lightroom namespace provides lrmd5, doesn't provide sha256. found following implementation of algorithm in lua, if try require script, "could no load toolkit script" error.
any suggestions?
it seems lr not supporting bit32, native in lua 5.2 (but not 5.1).
gonna hard port code, since implementations you're find depend on 'c' code lr not support.
you may have write own emulation of bit32 code working (or use jeffrey's).
note: played enough know these routines need capability work 64-bit temporary results, despite 32 in name. beware: lrmath's equivalent functions undefined inputs greater 2**32-1, you'd have write own functions replace them too.
cheers,
rob
More discussions in Lightroom SDK
adobe
Comments
Post a Comment