Move "use_mki" from a per packet parameter to a stream wide value. When using MKI all master keys need to have a valid MKI id.
Merge the MKI protect & unprotect functions. The MKI index is currently still passed per packet, this could also be moved up to stream level with a srtp_set_mki(ssrc) api as this is not likely to change per packet.
This started as an attempt to merge the protect & unprotect api's but became a more fundamental change to have MKI as a mode rather than a per packet thing.
The test vector was generated from the 2.5 branch.
Move "use_mki" from a per packet parameter to a stream wide value. When using MKI all master keys need to have a valid MKI id.
Merge the MKI protect & unprotect functions. The MKI index is currently still passed per packet, this could also be moved up to stream level with a srtp_set_mki(ssrc) api as this is not likely to change per packet.