On Tue, 2 Oct 2012, Martin Storsjö wrote:

On Tue, 2 Oct 2012, Martin Storsjö wrote:

---
libavutil/blowfish.c |    4 ++++
1 file changed, 4 insertions(+)

diff --git a/libavutil/blowfish.c b/libavutil/blowfish.c
index 7a571a8..1258e09 100644
--- a/libavutil/blowfish.c
+++ b/libavutil/blowfish.c
@@ -561,6 +561,10 @@ int main(void)
test_blowfish(&ctx, tmp, plaintext2, ciphertext2, 2, iv, 0, "CBC encryption");
    memcpy(iv, IV, 8);
test_blowfish(&ctx, tmp, ciphertext2, plaintext2, 2, iv, 1, "CBC decryption");
+    memcpy(iv, IV, 8);
+ test_blowfish(&ctx, tmp, tmp, ciphertext2, 2, iv, 0, "Inplace CBC encryption");
+    memcpy(iv, IV, 8);
+ test_blowfish(&ctx, tmp, tmp, plaintext2, 2, iv, 1, "Inplace CBC decryption");

memcpy(tmptext_l, plaintext_l, sizeof(*plaintext_l) * NUM_VARIABLE_KEY_TESTS); memcpy(tmptext_r, plaintext_r, sizeof(*plaintext_r) * NUM_VARIABLE_KEY_TESTS);
--
1.7.9.4

I guess I could squash patches 2, 3, and 5, that all add new tests.

The whole patchset was OK'd by Kostya on irc, will push in a little while.

// Martin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to