In blowfish.c,
The args src and dest to mch_memmove reversed from
the convention used by memmove, so code is zeroing out sbx_init
instead of initializing bfs->sbx
Reverse the src and dest in this line to fix the code.
/* Use "key" to initialize the P-array ("pax") and S-boxes ("sbx") of
* Blowfish. */
mch_memmove(bfs->sbx, sbx_init, 4 * 4 * 256);
Please check that the latest vim source doesn't have this problem.
In vim73, I was using a loop to init sbx, so this was not an issue.
Difficult to catch but for the self_test.
thanks,
---
https://www.linkedin.com/in/moshahmed
On 4/11/15, Yves Chevallier <[email protected]> wrote:
> I don't know whether or not I am in the good place for such questions but
> I'll give a try.
>
> I am trying to build VimCrypt02! on my own as a separated project. I've
> sucessfully extracted blowfish.c and sha256.c from mercurial. I've put my
> wrapper around it in order to build the project (available here:
> https://github.com/nowox/vim-blowfish)
>
> Unfortunately the blowfish selft test fail and I have absolutely no idea
> why. The two mentionned files are exactly the same as the the ones on
> mercurial. I have no warning and no errors during the build.
>
> I've also tried to build vim on the same arch and blowfish_self_test
> succeed. My idea is to narrow down the sources from vim until the test fail
> again. Unfortunately the other issue is that I don't find the entry point I
> tried to search \bmain\b.*argv and I found 5 or 6 main function. I still did
> not find the good one.
>
> Does anyone can suggest me something to investigate on this issue?
>
> Cheers,
> Yves
>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.