Hi,
I am working on IPSEC using Security Accelerator (SA). My aim is that firstly to prepare IPSEC packet( with ESP protocol) and then to solve it with using SA. My design does not include Packet Accelerator (PA). Packet is sent from host to SA to encrypt and then SA pushes packet to Host. After encryption process, I manually send encrypted packet to SA and SA pushes packet to Host decryptedly. I tried to express below.
HOST----to encryption process----> SA ----encrypted packet-----> HOST ------to decryption process---->SA------decrypted packet------>HOST
I have created SA channel and opened it IPSEC MODE, encrypted and authenticated IP packet properly so far. There is no problem until here. I verified ipsec packet some ways.
However, I have trouble when I tried to decrypt packet which encrypted before. When I saw the SA statistics to understand what problem is, authentication failure counter is increased. To avoid authentication failure, I applied no authentication and SA worked this time but decrypted wrongly.
I discovered something that if I give data offset 4 byte more, SA decrypted packet properly. However if I use one of authentication method as well, problem is stil going on.
When I analyzed your example code (IPSec ESP TEST_1_1 of SA_UnitTest_K2KBiosTestProject), PA and SA are used together. My question is that can I use same SA channel with IPSEC mode to decrypt packet without using PA? Is that possible or not?
NOTE: By the way when I investigated "NWAL library", SA channels are opened in DATA MODE in order to decrypt packet without using PA. Do I have to open SA channel in DATA MODE when I dont want to use PA?
Thanks for your reply
Yakup