]> git.ipfire.org Git - thirdparty/strongswan.git/blobdiff - scripts/aes-test.c
android: Use activity when reconnecting without (or a possibly wrong) password
[thirdparty/strongswan.git] / scripts / aes-test.c
index f326b7ee1205fded3483d366bbd93efc3710e1fc..509abe46f56704f7c00829386a4a7642f909f9d0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2013 Tobias Brunner
- * Hochschule fuer Technik Rapperswil
+ * HSR Hochschule fuer Technik Rapperswil
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License as published by the
@@ -313,7 +313,7 @@ static bool do_test_gcm(test_vector_t *test)
                        return FALSE;
        }
 
-       aead = lib->crypto->create_aead(lib->crypto, alg, test->key.len);
+       aead = lib->crypto->create_aead(lib->crypto, alg, test->key.len, 4);
        if (!aead)
        {
                DBG1(DBG_APP, "algorithm %N or key length (%d bits) not supported",
@@ -556,7 +556,7 @@ int main(int argc, char *argv[])
        ctx.in = stdin;
        ctx.out = stdout;
 
-       library_init(NULL);
+       library_init(NULL, "aes-test");
        atexit(library_deinit);
 
        while (true)