AnsweredAssumed Answered

Failed to encrypt the ipsec packet by caam(SEC4)

Question asked by siminsyou on Jun 20, 2013
Latest reply on Aug 2, 2013 by Yuri Muhin
Branched to a new discussion

I am trying to encrypt and decrypt the ipsec packet by SEC4, but failed. Who can help me.

 

the following is some desc.

 

 

shrdesc@446: cc67a000: b88a1217 00000008 00000000 00000000  ................

 

shrdesc@446: cc67a010: f81be8e7 8d765a2e 63339fc9 9a66320d  .....vZ.c3...f2.

 

shrdesc@446: cc67a020: 00000000 00000000 a700600c 04430028  ..........`..C.(

 

shrdesc@446: cc67a030: 0c626000 02800020 38e321bb f78a515f  .b`.... 8.!...Q_

 

shrdesc@446: cc67a040: c9684d58 a58192e5 8497aba4 01f2eb2e  .hMX............

 

shrdesc@446: cc67a050: bb66d827 b43f2368 87010c02 00000000  .f.'.?#h........

 

shrdesc@446: cc67a060: 00000000 00000000 00000000 00000000  ................

 

shrdesc@446: cc67a070: 00000000 00000000 00000000 00000000  ................

 

shrdesc@446: cc67a080: 00000000 00000000 00000000 00000000  ................

 

shrdesc@446: cc67a090: 00000000 00000000 00000000 00000000  ................

 

shrdesc@446: cc67a0a0: 00000000 00000000 00000000 00000000  ................

 

shrdesc@446: cc67a0b0: 00000000 00000000 00000000 00000000  ................

 

shrdesc@446: cc67a0c0: cc67a180 04000400 04000400 04000400  .g..............

 

shrdesc@446: cc67a0d0: 04000400 04000400 04000400 04000400  ................

 

shrdesc@446: cc67a0e0: 04000400 04000400 04000400 04200400  ............. ..

 

shrdesc@446: cc67a0f0: 04000400 04000400 04000400 04000400  ................

 

shrdesc@446: cc67a100: 04000400 04000400 04000400 04000400  ................

 

shrdesc@446: cc67a110: 04000400 04000400 04000400 04000400  ................

 

shrdesc@446: cc67a120: 04000400 04000400 04000400 04000400  ................

 

shrdesc@446: cc67a130: 04000400 04000400 04000400 04000400  ................

 

shrdesc@446: cc67a140: 04000400 04000400 04000400 04000400  ................

 

shrdesc@446: cc67a150: 04000400 04000400 04000400 04000400  ................

 

shrdesc@446: cc67a160: 04000400 04000400 04000400 03e00400  ................

 

shrdesc@446: cc67a170: 04000400  ....

 

[00] 0xb88a1217    shrdesc: stidx=10 share=serial savectx len=23

 

                     (pdb): [00] 0x00000008 0x00000000 0x00000000 0xf81be8e7

 

                     (pdb): [04] 0x8d765a2e 0x63339fc9 0x9a66320d 0x00000000

 

                     (pdb): [08] 0x00000000

 

[10] 0xa700600c       jump: both local all share-skip share-ctx ->12 [22]

 

[11] 0x04430028        key: class2->md-split len=40 enc

 

                            @0x0c626000

 

[13] 0x02800020        key: class1->keyreg len=32 imm

 

                            [00] 0x38e321bb 0xf78a515f 0xc9684d58 0xa58192e5

 

                            [04] 0x8497aba4 0x01f2eb2e 0xbb66d827 0xb43f2368

 

[22] 0x87010c02  operation: encap ipsec aes-cbc hmac-sha1-96

 

[00] 0xb88a1217    shrdesc: stidx=10 share=serial savectx len=23

 

                     (pdb): [00] 0x00000008 0x00000000 0x00000001 0xf81be8e7

 

                     (pdb): [04] 0x8d765a2e 0x63339fc9 0x9a66320d 0x2e55e867

 

                     (pdb): [08] 0x00000000

 

[10] 0xa700600c       jump: both local all share-skip share-ctx ->12 [22]

 

[11] 0x04430028        key: class2->md-split len=40 enc

 

                            @0x0c626000

 

[13] 0x02800020        key: class1->keyreg len=32 imm

 

                            [00] 0x38e321bb 0xf78a515f 0xc9684d58 0xa58192e5

 

                            [04] 0x8497aba4 0x01f2eb2e 0xbb66d827 0xb43f2368

 

[22] 0x87010c02  operation: encap ipsec aes-cbc hmac-sha1-96

 

 

assoclen 88 cryptlen 64 authsize 0

 

iphdrin@898: cc67afec: 04000400 04000400 04000400 04000400  ................

 

iphdrin@898: cc67affc: 04000400 2e55e867 00000001 f81be8e7  .....U.g........

 

iphdrin@898: cc67b00c: 8d765a2e 63339fc9 9a66320d 4500003c  .vZ.c3...f2.E..<

 

iphdrin@898: cc67b01c: 6fbd0000 3f0187af c0a80102 c0a80202  o...?...........

 

iphdrin@898: cc67b02c: 0800935a 0100b901 61626364 65666768  ...Z....abcdefgh

 

iphdrin@898: cc67b03c: 696a6b6c 6d6e6f70 71727374 75767761  ijklmnopqrstuvwa

 

iphdrin@898: cc67b04c: 62636465 66676869 01020204 04000400  bcdefghi........

 

iphdrin@898: cc67b05c: 04000400 04000400 04000400 04000400  ................

 

iphdrin@898: cc67b06c: 040003ff 04200420 04200400 04200400  ..... . . ... ..

 

iphdrin@898: cc67b07c: 04200400 04000400 04200400 04000400  . ....... ......

 

iphdrin@898: cc67b08c: 04200400 04000400 04000400 04000400  . ..............

 

iphdrin@898: cc67b09c: 04200400 04000400 04000400 04000400  . ..............

 

iphdrin@898: cc67b0ac: 04200400 04000400 04000400  . ..........

 

pad length is 2

 

next header is 4

 

jobdesc@1097: cba23200: b0971a08 0c67a000 f000003c 08cf1740  .....g.....<...@

 

jobdesc@1097: cba23210: f80000a8 0c67b000 16870004 80000004  .....g..........

 

jobdesc@1097: cba23220: ffffffff  ....

 

[00] 0xb0971a08    jobdesc: shrsz=23 share=serial getshared reversed len=8

 

                             sharedesc->0x0c67a000

 

[02] 0xf000003c   seqinptr: @0x08cf1740 60

 

[04] 0xf80000a8  seqoutptr: @0x0c67b000 168

 

[06] 0x16870004         ld: deco->deco-povrd len=4 offs=0 imm

 

                            [00] 0x80000004

 


Outcomes