I have a client which uses mbedTLS and server which uses OpenSSL libraries. After performing DTLS handshake I'm trying to get keying material with next function calls
mbedTLS:
mbedtls_ssl_export_srtp_keys
OpenSSL:
SSL_export_keying_material
But returned values are different hence I am not able to encrypt/decrypt messages. If I am using OpenSSL for client implementation then all the thing are going good and encryption/decryption works as expected.
Does someone know what could be the reason of the behavior above?