jump to navigation

Junk Code Result … September 18, 2007

Posted by Wildan Maulana in cryptsetup.
trackback

For personal doc only … 🙂 :

bash-3.2# cryptsetup –cipher aes luksOpen /dev/mmcblk0p2 rahasia

Before entering passphrase

Entering … –> get_key function

Entering spot 5 , fd = options->passphrase_fd = 0

Entering spot 6

Entering interactive_pass()…
Masukkan LUKS passphrase:
spot 1 @ interactive_pass()

Entering untimed_read()….

fd = 4

pass =

maxlen = 512

<!— Enter Passphrase –>

read(fd, pass, maxlen) = 6

End of untimed_read() with return value = 0

NOT failed on …: interactive_pass()

spot 2 @ interactive_pass()

Pass = 12345

failed variable value = 0

Entering spot 8

passLen value = 2140294212

key Value =

Entering spot 14 = 1

Password value @setup.c:

Entering LUKS_open_any_key(), chek the parameters Value …:

Device = /dev/mmcblk0p2

Password = 12345

i = 0

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 0

password = 12345

passwordLen = 5

————————

AFEKSize = 64000

AfKey value = P

PBKDF2_HMAC_SHA1() Parameter value …, BEGIN :

password = 12345

passwordLen = 5

hdr->keyblock[keyIndex].passwordSalt = €¬Ö™½çö–KÍÆËÖ@ù¿^

LUKS_SALTSIZE = 32

hdr->keyblock[keyIndex].passwordIterations = 55328

derivedKey = *¬>ü

hdr->keyBytes = 16

PBKDF2_HMAC_SHA1() Parameter value …, END

Entering PBKDF2_HMAC_SHA1, BEGIN
Entering LUKS_decrypt_from_storage()…
LUKS_decrypt_from_storage() value = 0

Entering AF_merge() function …

End of AF_merge() function …

r = AF_merge() ==> 0

Entering PBKDF2_HMAC_SHA1, BEGIN

r = (memcmp) ==> -1

End of LUKS_open_key()… with r value = r

The return value of LUKS_open_key() = -1

i = 1

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 1

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 2

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 2

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 3

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 3

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 4

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 4

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 5

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 5

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 6

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 6

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 7

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 7

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

End of LUKS_open_any_key() function

Before entering passphrase

Entering … –> get_key function

Entering spot 5 , fd = options->passphrase_fd = 0

Entering spot 6

Entering interactive_pass()…
Masukkan LUKS passphrase:
spot 1 @ interactive_pass()

Entering untimed_read()….

fd = 3

pass =

maxlen = 512

<!— Enter Passphrase  2 –>

read(fd, pass, maxlen) = 6

End of untimed_read() with return value = 0

NOT failed on …: interactive_pass()

spot 2 @ interactive_pass()

Pass = 12345

failed variable value = 0

Entering spot 8

passLen value = 2140294212

key Value =

Entering spot 14 = 1

Password value @setup.c:

Entering LUKS_open_any_key(), chek the parameters Value …:

Device = /dev/mmcblk0p2

Password = 12345

i = 0

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 0

password = 12345

passwordLen = 5

————————

AFEKSize = 64000

AfKey value = Ø

PBKDF2_HMAC_SHA1() Parameter value …, BEGIN :

password = 12345

passwordLen = 5

hdr->keyblock[keyIndex].passwordSalt = €¬Ö™½çö–KÍÆËÖ@ù¿^

LUKS_SALTSIZE = 32

hdr->keyblock[keyIndex].passwordIterations = 55328

derivedKey = *¬>ü

hdr->keyBytes = 16

PBKDF2_HMAC_SHA1() Parameter value …, END

Entering PBKDF2_HMAC_SHA1, BEGIN
Entering LUKS_decrypt_from_storage()…
LUKS_decrypt_from_storage() value = 0

Entering AF_merge() function …

End of AF_merge() function …

r = AF_merge() ==> 0

Entering PBKDF2_HMAC_SHA1, BEGIN

r = (memcmp) ==> -1

End of LUKS_open_key()… with r value = r

The return value of LUKS_open_key() = -1

i = 1

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 1

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 2

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 2

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 3

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 3

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 4

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 4

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 5

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 5

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 6

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 6

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 7

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 7

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

End of LUKS_open_any_key() function

Before entering passphrase

Entering … –> get_key function

Entering spot 5 , fd = options->passphrase_fd = 0

Entering spot 6

Entering interactive_pass()…
Masukkan LUKS passphrase:
spot 1 @ interactive_pass()

Entering untimed_read()….

fd = 3

pass = *°’”

maxlen = 512

read(fd, pass, maxlen) = 6

End of untimed_read() with return value = 0

NOT failed on …: interactive_pass()

spot 2 @ interactive_pass()

Pass = 12345

failed variable value = 0

Entering spot 8

passLen value = 2140294212

key Value =

Entering spot 14 = 1

Password value @setup.c:

Entering LUKS_open_any_key(), chek the parameters Value …:

Device = /dev/mmcblk0p2

Password = 12345

i = 0

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 0

password = 12345

passwordLen = 5

————————

AFEKSize = 64000

AfKey value = `

PBKDF2_HMAC_SHA1() Parameter value …, BEGIN :

password = 12345

passwordLen = 5

hdr->keyblock[keyIndex].passwordSalt = €¬Ö™½çö–KÍÆËÖ@ù¿^

LUKS_SALTSIZE = 32

hdr->keyblock[keyIndex].passwordIterations = 55328

derivedKey = *¬>ü

hdr->keyBytes = 16

PBKDF2_HMAC_SHA1() Parameter value …, END

Entering PBKDF2_HMAC_SHA1, BEGIN
Entering LUKS_decrypt_from_storage()…
LUKS_decrypt_from_storage() value = 0

Entering AF_merge() function …

End of AF_merge() function …

r = AF_merge() ==> 0

Entering PBKDF2_HMAC_SHA1, BEGIN

r = (memcmp) ==> -1

End of LUKS_open_key()… with r value = r

The return value of LUKS_open_key() = -1

i = 1

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 1

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 2

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 2

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 3

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 3

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 4

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 4

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 5

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 5

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 6

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 6

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

i = 7

Entering loop @LUKS_open_any_key()

lUKS_NUMKEYS Value = 8

Entering LUKS_open_key()…

Print paramater value …

————————

device = /dev/mmcblk0p2

keyIndex = 7

password = 12345

passwordLen = 5

————————

The return value of LUKS_open_key() = -22

End of LUKS_open_any_key() function
Command failed: No key available with this passphrase.

bash-3.2#

Leave a comment