Created
May 29, 2014 21:53
-
-
Save daviddahl/e12eb3bee174ccf80897 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gdb) break gcry_kdf_derive | |
Breakpoint 3 at 0x7ffff7b65180 | |
(gdb) r | |
Starting program: /home/ddahl/code/spideroak/daviddahl/crypton/client/native/src/./pbkdf | |
Breakpoint 3, 0x00007ffff7b65180 in gcry_kdf_derive () from /lib/x86_64-linux-gnu/libgcrypt.so.11 | |
(gdb) s | |
Single stepping until exit from function gcry_kdf_derive, | |
which has no line number information. | |
generateKeyFromPassword (passphrase=0x401a5b "password", item=0x7fffffffe118) at pbkdf2.c:45 | |
45 if (err) { | |
(gdb) info locals | |
i = 32767 | |
salt = 0x603280 "\252jF\370\210\306ـ\335\342q\331\063\370A\037 " | |
keyBuffer = 0x7fffffffe0d0 "\265\375)n\206\240\031\346$\323\323\bO!\265\n\241)\355/\274db\261\200I\033\263\355\343", <incomplete sequence \355> | |
keySize = 32 | |
err = 0 | |
iterations = 10000 | |
(gdb) p keyBuffer | |
$1 = 0x7fffffffe0d0 "\265\375)n\206\240\031\346$\323\323\bO!\265\n\241)\355/\274db\261\200I\033\263\355\343", <incomplete sequence \355> | |
(gdb) p salt | |
$2 = (unsigned char *) 0x603280 "\252jF\370\210\306ـ\335\342q\331\063\370A\037 " | |
(gdb) n | |
52 printf("Key: \n"); | |
(gdb) | |
Key: | |
53 printf("%s\n", keyBuffer); | |
(gdb) | |
��)n���$�O!� | |
�)�/�db��I��� | |
54 item->key = keyBuffer; | |
(gdb) | |
55 item->salt = salt; | |
(gdb) | |
56 item->name = (unsigned char)"masterKey"; | |
(gdb) | |
58 return 0; | |
(gdb) p item | |
$3 = (struct keyItem *) 0x7fffffffe118 | |
(gdb) p item->key | |
$4 = 0x7fffffffe0d0 "\265\375)n\206\240\031\346$\323\323\bO!\265\n\241)\355/\274db\261\200I\033\263\355\343", <incomplete sequence \355> | |
(gdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment