Hi,
   I think there is bug in esp decrypt function.  The right parameter should be 
n_sync like esp encrypt. The current code may be
crash in  esp_process_ops becasuse bufs is not sync_bufs.

the current code:
esp_decrypt_prepare_sync_op (
 vm, node, ptd, &crypto_ops, &integ_ops, op, sa0, payload, len,
 cpd.icv_sz, cpd.iv_sz, pd, pd2, b[0], sync_next, b - bufs);
      /* next */

the right code:
  esp_decrypt_prepare_sync_op (
  vm, node, ptd, &crypto_ops, &integ_ops, op, sa0, payload, len,
  cpd.icv_sz, cpd.iv_sz, pd, pd2, b[0], sync_next, n_sync);
      /* next */

Guangming


zhangguangm...@baicells.com e 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22192): https://lists.fd.io/g/vpp-dev/message/22192
Mute This Topic: https://lists.fd.io/mt/95086868/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to