@agentdance/node-webrtc-srtp 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +2 -1
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @agentdance/node-webrtc-srtp
2
+
3
+ RFC 3711 SRTP / SRTCP for Node.js — part of the [`@agentdance/node-webrtc`](https://github.com/agent-dance/node-webrtc) pure-TypeScript WebRTC stack.
4
+
5
+ ## Features
6
+
7
+ - Profiles: AES-128-CM-HMAC-SHA1-80, AES-128-CM-HMAC-SHA1-32, AES-128-GCM
8
+ - RFC-verified key derivation (§4.3 test vectors)
9
+ - 64-bit sliding replay window; ROC rollover counter
10
+ - Zero native dependencies
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ npm install @agentdance/node-webrtc-srtp
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ ```typescript
21
+ import { createSrtpContext, srtpProtect, srtpUnprotect, ProtectionProfile } from '@agentdance/node-webrtc-srtp';
22
+
23
+ const ctx = createSrtpContext(ProtectionProfile.AES_128_CM_HMAC_SHA1_80, keyingMaterial);
24
+ const protected_ = srtpProtect(ctx, rtpPacket);
25
+ const unprotected = srtpUnprotect(ctx, protected_);
26
+ ```
27
+
28
+ ## Full Documentation
29
+
30
+ See the [main package README](https://github.com/agent-dance/node-webrtc#readme) for the complete API reference, usage examples, and architecture overview.
31
+
32
+ ## License
33
+
34
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentdance/node-webrtc-srtp",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "RFC 3711 SRTP/SRTCP — AES-128-CM-HMAC-SHA1-80/32 and AES-128-GCM, RFC-verified key derivation, 64-bit replay window. Part of the @agentdance/node-webrtc stack.",
5
5
  "keywords": [
6
6
  "webrtc",
@@ -35,6 +35,7 @@
35
35
  }
36
36
  },
37
37
  "files": [
38
+ "README.md",
38
39
  "dist",
39
40
  "src"
40
41
  ],