I think a good place to ask for help regarding the SHA1 (or potentially
SHA2) algorythm is the FFMPEG list.
There are people at that list that know how to implement it and how it
works as FFMPEG has an implementation for encoder and decoder.
You can also search the internet for "FFMPEG flashsv.c" or "FFMPEG