On Sun, May 28, 2017 at 4:43 PM, Nikos Mavrogiannopoulos
<[email protected]> wrote:
> Could you catch this fpe using gdb and send if along with the contents of
> /proc/cpuinfo?
>
Here's the code again. Seems like it was scrubbed from the archives
--------------------------
#include <glib.h>
#include <string.h>
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
int main (int argc, char *argv[]) {
gchar *input = argv[1];
gchar encrypted[1024];
memset (encrypted, 0, 1024);
gsize size;
gnutls_cipher_hd_t handle;
gnutls_datum_t key;
gsize length;
key.data = "abcdabcdabcdabcdabcdabcdabcdabcd";
key.size = 32;
g_message ("Init: %d", gnutls_cipher_init (&handle,
GNUTLS_CIPHER_AES_256_CBC, &key, NULL));
g_message ("Encrypt: %d", gnutls_cipher_encrypt2 (handle, (void *)
input, strlen(input), encrypted, strlen(input)));
g_message ("%s", g_base64_encode (encrypted, strlen(input)));
return 0;
}
--------------------------------------
_______________________________________________
Gnutls-help mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnutls-help