Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Breakpoint 1, main () at test.c:15
- 15 unsigned char H[128/8] = {
- (gdb) c
- Continuing.
- Breakpoint 2, gcmHash_InitContext (ghash=0x7fffffffef90,
- H=0x7fffffffef18 "\270;S7\b\277S]\n\246\345)\200\325;x\376\355\372\316ޭ\276\357\376\355\372\316ޭ\276\357\253\255\332", <incomplete sequence \322>, sw=1) at gcm.c:81
- 81 SECStatus rv = SECSuccess;
- (gdb) n
- 83 ghash->cLen = 0;
- (gdb)
- 84 ghash->bufLen = 0;
- (gdb)
- 85 PORT_Memset(ghash->counterBuf, 0, sizeof(ghash->counterBuf));
- (gdb)
- 87 ghash->h_low = get64(H + 8);
- (gdb)
- 88 ghash->h_high = get64(H);
- (gdb)
- 90 if (1 && !sw) {
- (gdb)
- 101 ghash->ghash_mul = gcm_HashMult_sftw;
- (gdb)
- 105 ghash->x_high = ghash->x_low = 0;
- (gdb)
- 106 ghash->hw = PR_FALSE;
- (gdb) n
- 108 return rv;
- (gdb)
- main () at test.c:47
- 47 gcmHash_Reset(&ghashCtxSW,
- (gdb) p ghashCtxSW
- $2 = {x_low = 0, x_high = 0, h_high = 0, h_low = 0, buffer = '\000' <repeats 15 times>, bufLen = 0, counterBuf = '\000' <repeats 15 times>,
- cLen = 0, ghash_mul = 0x0, hw = 0, mem = 0x0}
- (gdb) p ghashCtxSW
- $3 = {x_low = 0, x_high = 0, h_high = 0, h_low = 0, buffer = '\000' <repeats 15 times>, bufLen = 0, counterBuf = '\000' <repeats 15 times>,
- cLen = 0, ghash_mul = 0x0, hw = 0, mem = 0x0}
- (gdb) p &ghashCtxSW
- $4 = (gcmHashContext *) 0x7fffffffef90
- (gdb) disassemble gcmHash_InitContext
- Dump of assembler code for function gcmHash_InitContext:
- 0x0000000100000e20 <+0>: addis r2,r12,2
- 0x0000000100000e24 <+4>: addi r2,r2,28896
- 0x0000000100000e28 <+8>: mflr r0
- 0x0000000100000e2c <+12>: std r31,-8(r1)
- 0x0000000100000e30 <+16>: std r0,16(r1)
- 0x0000000100000e34 <+20>: stdu r1,-128(r1)
- 0x0000000100000e38 <+24>: mr r31,r1
- 0x0000000100000e3c <+28>: mr r6,r5
- 0x0000000100000e40 <+32>: std r3,112(r31)
- 0x0000000100000e44 <+36>: std r4,104(r31)
- 0x0000000100000e48 <+40>: stw r6,100(r31)
- 0x0000000100000e4c <+44>: li r6,0
- 0x0000000100000e50 <+48>: stw r6,96(r31)
- 0x0000000100000e54 <+52>: ld r3,112(r31)
- 0x0000000100000e58 <+56>: li r4,0
- 0x0000000100000e5c <+60>: std r4,424(r3)
- 0x0000000100000e60 <+64>: ld r3,112(r31)
- 0x0000000100000e64 <+68>: stw r6,400(r3)
- 0x0000000100000e68 <+72>: ld r3,112(r31)
- 0x0000000100000e6c <+76>: addi r3,r3,404
- 0x0000000100000e70 <+80>: li r4,0
- 0x0000000100000e74 <+84>: std r4,8(r3)
- 0x0000000100000e78 <+88>: std r4,0(r3)
- 0x0000000100000e7c <+92>: ld r3,104(r31)
- 0x0000000100000e80 <+96>: addi r3,r3,8
- 0x0000000100000e84 <+100>: bl 0x100000dc0 <get64>
- --Type <RET> for more, q to quit, c to continue without paging--
- 0x0000000100000e88 <+104>: nop
- 0x0000000100000e8c <+108>: ld r4,112(r31)
- 0x0000000100000e90 <+112>: std r3,376(r4)
- 0x0000000100000e94 <+116>: ld r3,104(r31)
- 0x0000000100000e98 <+120>: bl 0x100000dc0 <get64>
- 0x0000000100000e9c <+124>: nop
- 0x0000000100000ea0 <+128>: ld r4,112(r31)
- 0x0000000100000ea4 <+132>: std r3,368(r4)
- 0x0000000100000ea8 <+136>: lwz r6,100(r31)
- 0x0000000100000eac <+140>: cmpwi r6,0
- 0x0000000100000eb0 <+144>: bne 0x100000ef4 <gcmHash_InitContext+212>
- 0x0000000100000eb4 <+148>: ld r3,104(r31)
- 0x0000000100000eb8 <+152>: addi r3,r3,8
- 0x0000000100000ebc <+156>: bl 0x100000dc0 <get64>
- 0x0000000100000ec0 <+160>: nop
- 0x0000000100000ec4 <+164>: ld r4,112(r31)
- 0x0000000100000ec8 <+168>: std r3,80(r4)
- 0x0000000100000ecc <+172>: ld r3,104(r31)
- 0x0000000100000ed0 <+176>: bl 0x100000dc0 <get64>
- 0x0000000100000ed4 <+180>: nop
- 0x0000000100000ed8 <+184>: ld r4,112(r31)
- 0x0000000100000edc <+188>: std r3,88(r4)
- 0x0000000100000ee0 <+192>: ld r3,112(r31)
- 0x0000000100000ee4 <+196>: bl 0x100002df8 <gcm_HashInit_hw+8>
- 0x0000000100000ee8 <+200>: nop
- 0x0000000100000eec <+204>: stw r3,96(r31)
- 0x0000000100000ef0 <+208>: b 0x100000f24 <gcmHash_InitContext+260>
- --Type <RET> for more, q to quit, c to continue without paging--
- 0x0000000100000ef4 <+212>: addis r3,r2,-2
- 0x0000000100000ef8 <+216>: addi r3,r3,-28592
- 0x0000000100000efc <+220>: ld r4,112(r31)
- 0x0000000100000f00 <+224>: std r3,432(r4)
- 0x0000000100000f04 <+228>: ld r3,112(r31)
- 0x0000000100000f08 <+232>: li r4,0
- 0x0000000100000f0c <+236>: std r4,352(r3)
- 0x0000000100000f10 <+240>: ld r3,112(r31)
- 0x0000000100000f14 <+244>: std r4,360(r3)
- 0x0000000100000f18 <+248>: ld r3,112(r31)
- 0x0000000100000f1c <+252>: li r5,0
- 0x0000000100000f20 <+256>: stw r5,440(r3)
- 0x0000000100000f24 <+260>: lwa r3,96(r31)
- 0x0000000100000f28 <+264>: addi r1,r1,128
- 0x0000000100000f2c <+268>: ld r0,16(r1)
- 0x0000000100000f30 <+272>: ld r31,-8(r1)
- 0x0000000100000f34 <+276>: mtlr r0
- 0x0000000100000f38 <+280>: blr
- 0x0000000100000f3c <+284>: .long 0x0
- 0x0000000100000f40 <+288>: .long 0x0
- 0x0000000100000f44 <+292>: .long 0x0
- End of assembler dump.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement