otalk / sdp

SDP parsing and serialization utlities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add support for parsing/writing a=crypto

fippo opened this issue · comments

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

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

hrm. Looks like adding properties to the string isn't possible even. So this will have to be a separate method.