otalk / sdp

SDP parsing and serialization utlities
MIT License
46 stars 11 forks source link

add support for parsing/writing a=crypto #62

Closed fippo closed 4 years ago

fippo commented 4 years ago
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

fippo commented 4 years ago

looks like I'll need to parse the keyParams... which can be done in a non-breaking fashion by adding properties to the string :grimacing:

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

fippo commented 4 years ago

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