Well, the combination of the options "engine padlock" and
"ping/keepalive" results in problematic connections. Without the other
option each option seems to run flawless.
Hm. Strange. What distinguishes "ping" traffic from other encrypted
traffic? Smaller packets perhaps?
Yes -- smaller packets, definitely. I'm thinking that this is more likely
a problem with the padlock and/or padlock OpenSSL interface than with
ping.
I've seen issues like this with the padlock accelerator before, where
cipher final fails on packets which encrypt/decrypt fine without padlock.
I'm wondering if perhaps the padlock has a stricter API than the standard
software-implemented EVP layer in OpenSSL, with regard to length, buffer
alignment, etc.
You might try a crypto loopback test:
openvpn --genkey --secret key
openvpn --test-crypto --secret key --cipher AES-128-CBC --engine padlock --verb 0
James
It must be the packet size indeed: