add support for parsing/writing a=crypto
fippo opened this issue · comments
Philipp Hancke commented
a=crypto:<tag> <crypto-suite> <key-params> [<session-params>]
See https://rawgit.com/aboba/edgertc/master/msortc-rs4.html#dictionary-rtcsrtpsdesparameters-members for object format
Philipp Hancke commented
looks like I'll need to parse the keyParams... which can be done in a non-breaking fashion by adding properties to the string 😬
spec:
https://tools.ietf.org/html/rfc4568#section-6.1
which includes test vectors.
Needs to deal with this which is probably an extension (in sessionParam)
a=crypto:3 AES_CM_128_HMAC_SHA1_80 inline:euOChT6zI4zH6Wu9C4VQlaDbXCwCzF40QxOzMwQh|2^48 UNENCRYPTED_SRTCP
Philipp Hancke commented
hrm. Looks like adding properties to the string isn't possible even. So this will have to be a separate method.