Topic: "Bad record mac" during handshake
Hi,
We are currently evaluating the WolfSSL for a commercial embedded product as a potential SSL implementation.
The following problem is encountered during a client <-> server handshake:
2017.03.23 19:35:12 LOG3[0]: SSL_accept: 1408F119: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac
Client receives alert 20 which is "bad record mac". Connection does not succeed.
We are using certificates and keys provided in WolfSSL example code.
The TCP/IP stack is LWIP.
The user settings are set as follows:
#define DEBUG_WOLFSSL
#define NO_WOLFSSL_SERVER
#define NO_MAIN_DRIVER
#define BENCH_EMBEDDED
#define NO_FILESYSTEM
#define NO_STDIO_FILESYSTEM
#define NO_WRITEV
#define WOLFSSL_USER_IO
#define NO_DEV_RANDOM
#define USE_CERT_BUFFERS_2048
#define WOLFSSL_USER_CURRTIME
#define SIZEOF_LONG_LONG 8
#define HAVE_STUNNEL
#define SEMEL_SETTINGS
#define USER_TIME
For further information see the attached logs.
Regards Jarkko Reijonaho