haikuwebkit/LayoutTests/webrtc/sframe-test-vectors-expecte...

35 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

Update SFrame implementation to latest version https://bugs.webkit.org/show_bug.cgi?id=224276 Reviewed by Eric Carlson. Source/WebCore: Update implementation according to latest draft at https://github.com/eomara/sframe/blob/master/draft-omara-sframe.md. In particular, we derive keys with new algorithm and the generation of the signature by including header and data length as well as nonce. Test: webrtc/sframe-test-vectors.html * Modules/mediastream/RTCRtpSFrameTransform.cpp: (WebCore::RTCRtpSFrameTransform::setCounterForTesting): * Modules/mediastream/RTCRtpSFrameTransform.h: * Modules/mediastream/RTCRtpSFrameTransformer.cpp: (WebCore::computeIV): (WebCore::RTCRtpSFrameTransformer::updateEncryptionKey): (WebCore::RTCRtpSFrameTransformer::decryptFrame): (WebCore::RTCRtpSFrameTransformer::encryptFrame): (WebCore::RTCRtpSFrameTransformer::computeEncryptedDataSignature): * Modules/mediastream/RTCRtpSFrameTransformer.h: * Modules/mediastream/RTCRtpSFrameTransformerCocoa.cpp: (WebCore::RTCRtpSFrameTransformer::computeSaltKey): (WebCore::createBaseSFrameKey): (WebCore::RTCRtpSFrameTransformer::computeAuthenticationKey): (WebCore::RTCRtpSFrameTransformer::computeEncryptionKey): (WebCore::encodeBigEndian): (WebCore::RTCRtpSFrameTransformer::computeEncryptedDataSignature): * testing/Internals.cpp: (WebCore::Internals::setSFrameCounter): * testing/Internals.h: * testing/Internals.idl: Tools: Update tests according new way of deriving keys and generating the signature. * TestWebKitAPI/Tests/WebCore/RTCRtpSFrameTransformerTests.cpp: (TestWebKitAPI::TEST): LayoutTests: * webrtc/sframe-test-vectors-expected.txt: Added. * webrtc/sframe-test-vectors.html: Added. Canonical link: https://commits.webkit.org/236292@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-08 10:53:44 +00:00
PASS Decryption test 1 for ciphersuite 1
PASS Encryption/Decryption test 1 for ciphersuite 1
PASS Decryption test 2 for ciphersuite 1
PASS Encryption/Decryption test 2 for ciphersuite 1
PASS Decryption test 3 for ciphersuite 1
PASS Encryption/Decryption test 3 for ciphersuite 1
PASS Decryption test 4 for ciphersuite 1
PASS Encryption/Decryption test 4 for ciphersuite 1
PASS Decryption test 5 for ciphersuite 1
PASS Encryption/Decryption test 5 for ciphersuite 1
PASS Decryption test 6 for ciphersuite 1
PASS Encryption/Decryption test 6 for ciphersuite 1
PASS Decryption test 7 for ciphersuite 1
PASS Encryption/Decryption test 7 for ciphersuite 1
PASS Decryption test 8 for ciphersuite 1
PASS Encryption/Decryption test 8 for ciphersuite 1
PASS Decryption test 1 for ciphersuite 2
PASS Encryption/Decryption test 1 for ciphersuite 2
PASS Decryption test 2 for ciphersuite 2
PASS Encryption/Decryption test 2 for ciphersuite 2
PASS Decryption test 3 for ciphersuite 2
PASS Encryption/Decryption test 3 for ciphersuite 2
PASS Decryption test 4 for ciphersuite 2
PASS Encryption/Decryption test 4 for ciphersuite 2
PASS Decryption test 5 for ciphersuite 2
PASS Encryption/Decryption test 5 for ciphersuite 2
PASS Decryption test 6 for ciphersuite 2
PASS Encryption/Decryption test 6 for ciphersuite 2
PASS Decryption test 7 for ciphersuite 2
PASS Encryption/Decryption test 7 for ciphersuite 2
PASS Decryption test 8 for ciphersuite 2
PASS Encryption/Decryption test 8 for ciphersuite 2