Skip to content

Commit 5351ab6

Browse files
feat: Frame Cryptor (aes gcm/cbc). (#54)
* feat: add frame crypto transformer using aes-128/256-gcm. * update. * feat: add aes-cbc. * update. * fix compile. * update. * chore: add getIvSize(). * rename. * update. * Add ObjC API for framecryptor. * add FrameCryptor interfaces for android. * chore: add jni native code. * update. * update * fix compile for iOS. * update. * fix. * update. * Add cryptor_id. * update. * update. * update. * update. * chore: Experimental encryption for h.264. * chore: export class FrameCryptorTransformer. * aes frame crypto for h.264. * chore: add decrypto failed callback. * fix: Fix FrameTransformer work with simulcast. * revert changes. * Fix h264 screen freezing in frame encryption. * chore: Improve the code and add FrameCryptionError. * feat: Add RTCFrameCryptorDelegate for darwin. * WIP observer for android. * observer for android. * Add kNew/kOk state. * [objc] fix bug for state callack. * fix issue for re-RegisterFrameTransformer. * dispose. * Update sdk/objc/api/peerconnection/RTCFrameCryptorKeyManager.mm Co-authored-by: Théo Monnom <[email protected]> * Update sdk/android/src/jni/pc/frame_cryptor_key_manager.h Co-authored-by: Théo Monnom <[email protected]> * Update sdk/objc/api/peerconnection/RTCFrameCryptorKeyManager.mm Co-authored-by: Théo Monnom <[email protected]> * update. * fix compile. --------- Co-authored-by: Théo Monnom <[email protected]>
1 parent 6d0d534 commit 5351ab6

24 files changed

+1835
-7
lines changed

api/crypto/BUILD.gn

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@ group("crypto") {
1616
]
1717
}
1818

19+
rtc_library("frame_crypto_transformer") {
20+
visibility = [ "*" ]
21+
sources = [
22+
"frame_crypto_transformer.cc",
23+
"frame_crypto_transformer.h",
24+
]
25+
26+
deps = [
27+
"//api:frame_transformer_interface",
28+
]
29+
30+
if (rtc_build_ssl) {
31+
deps += [ "//third_party/boringssl" ]
32+
} else {
33+
configs += [ ":external_ssl_library" ]
34+
}
35+
}
36+
1937
rtc_library("options") {
2038
visibility = [ "*" ]
2139
sources = [

0 commit comments

Comments
 (0)