Changeset 239520 in webkit
- Timestamp:
- Dec 21, 2018 3:06:54 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r239519 r239520 1 2018-12-21 Jiewen Tan <jiewen_tan@apple.com> 2 3 [WebAuthN] Import an APDU coder from Chromium 4 https://bugs.webkit.org/show_bug.cgi?id=192949 5 <rdar://problem/46879933> 6 7 Reviewed by Brent Fulgham. 8 9 This patch imports an APDU coder from Chromium. Here is the documentation: 10 https://fidoalliance.org/specs/fido-u2f-v1.2-ps-20170411/fido-u2f-raw-message-formats-v1.2-ps-20170411.html#u2f-message-framing 11 APDU is a binary format to frame any U2F requests/responses into binaries. It is equivalent to CBOR in CTAP2. 12 13 Here is a list of files that are imported from Chromium: 14 https://cs.chromium.org/chromium/src/components/apdu/apdu_command.cc?rcl=a2f290c10d132f53518e7f99d5635ee814ff8090 15 https://cs.chromium.org/chromium/src/components/apdu/apdu_command.h?rcl=867b103481f6f4ccc79a69bba16c11eefac3cdb6 16 https://cs.chromium.org/chromium/src/components/apdu/apdu_response.cc?rcl=867b103481f6f4ccc79a69bba16c11eefac3cdb6 17 https://cs.chromium.org/chromium/src/components/apdu/apdu_response.h?rcl=867b103481f6f4ccc79a69bba16c11eefac3cdb6 18 https://cs.chromium.org/chromium/src/components/apdu/apdu_unittest.cc?rcl=867b103481f6f4ccc79a69bba16c11eefac3cdb6 19 20 Covered by API tests. 21 22 * Modules/webauthn/apdu/ApduCommand.cpp: Added. 23 (apdu::ApduCommand::createFromMessage): 24 (apdu::ApduCommand::ApduCommand): 25 (apdu::ApduCommand::getEncodedCommand const): 26 * Modules/webauthn/apdu/ApduCommand.h: Added. 27 * Modules/webauthn/apdu/ApduResponse.cpp: Added. 28 (apdu::ApduResponse::createFromMessage): 29 (apdu::ApduResponse::ApduResponse): 30 (apdu::ApduResponse::getEncodedResponse const): 31 * Modules/webauthn/apdu/ApduResponse.h: Added. 32 * Sources.txt: 33 * WebCore.xcodeproj/project.pbxproj: 34 1 35 2018-12-21 Jer Noble <jer.noble@apple.com> 2 36 -
trunk/Source/WebCore/Sources.txt
r239515 r239520 257 257 Modules/webauthn/AuthenticatorCoordinatorClient.cpp 258 258 Modules/webauthn/PublicKeyCredential.cpp 259 Modules/webauthn/apdu/ApduCommand.cpp 260 Modules/webauthn/apdu/ApduResponse.cpp 259 261 Modules/webauthn/cbor/CBORReader.cpp 260 262 Modules/webauthn/cbor/CBORValue.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r239515 r239520 1782 1782 5706A6981DDE5E4600A03B14 /* JSRsaOaepParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 5706A6971DDE5E4600A03B14 /* JSRsaOaepParams.h */; }; 1783 1783 571252691E524EB1008FF369 /* CryptoAlgorithmAES_CFB.h in Headers */ = {isa = PBXBuildFile; fileRef = 571252681E524EB1008FF369 /* CryptoAlgorithmAES_CFB.h */; }; 1784 57152B5A21CB3E88000C37CA /* ApduCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = 57152B5821CB2E3B000C37CA /* ApduCommand.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1785 57152B5C21CC1902000C37CA /* ApduResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 57152B5621CB2E3A000C37CA /* ApduResponse.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1784 1786 571F21891DA57C54005C9EFD /* JSSubtleCrypto.h in Headers */ = {isa = PBXBuildFile; fileRef = 571F21881DA57C54005C9EFD /* JSSubtleCrypto.h */; }; 1785 1787 572093D31DDCEB9A00310AB0 /* CryptoAlgorithmAesCbcCfbParams.h in Headers */ = {isa = PBXBuildFile; fileRef = 572093D21DDCEB9A00310AB0 /* CryptoAlgorithmAesCbcCfbParams.h */; }; … … 8587 8589 571252681E524EB1008FF369 /* CryptoAlgorithmAES_CFB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CryptoAlgorithmAES_CFB.h; sourceTree = "<group>"; }; 8588 8590 5712526A1E52527C008FF369 /* CryptoAlgorithmAES_CFB.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CryptoAlgorithmAES_CFB.cpp; sourceTree = "<group>"; }; 8591 57152B5521CB2E3A000C37CA /* ApduResponse.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ApduResponse.cpp; path = Modules/webauthn/apdu/ApduResponse.cpp; sourceTree = SOURCE_ROOT; }; 8592 57152B5621CB2E3A000C37CA /* ApduResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ApduResponse.h; path = Modules/webauthn/apdu/ApduResponse.h; sourceTree = SOURCE_ROOT; }; 8593 57152B5721CB2E3A000C37CA /* ApduCommand.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ApduCommand.cpp; path = Modules/webauthn/apdu/ApduCommand.cpp; sourceTree = SOURCE_ROOT; }; 8594 57152B5821CB2E3B000C37CA /* ApduCommand.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ApduCommand.h; path = Modules/webauthn/apdu/ApduCommand.h; sourceTree = SOURCE_ROOT; }; 8589 8595 571F21881DA57C54005C9EFD /* JSSubtleCrypto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSSubtleCrypto.h; sourceTree = "<group>"; }; 8590 8596 571F218A1DA57C7A005C9EFD /* JSSubtleCrypto.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSSubtleCrypto.cpp; sourceTree = "<group>"; }; … … 19271 19277 sourceTree = "<group>"; 19272 19278 }; 19279 57152B5321CB2CE3000C37CA /* apdu */ = { 19280 isa = PBXGroup; 19281 children = ( 19282 57152B5721CB2E3A000C37CA /* ApduCommand.cpp */, 19283 57152B5821CB2E3B000C37CA /* ApduCommand.h */, 19284 57152B5521CB2E3A000C37CA /* ApduResponse.cpp */, 19285 57152B5621CB2E3A000C37CA /* ApduResponse.h */, 19286 ); 19287 path = apdu; 19288 sourceTree = "<group>"; 19289 }; 19273 19290 57303BB32006C6ED00355965 /* cbor */ = { 19274 19291 isa = PBXGroup; … … 19348 19365 isa = PBXGroup; 19349 19366 children = ( 19367 57152B5321CB2CE3000C37CA /* apdu */, 19350 19368 57303BB32006C6ED00355965 /* cbor */, 19351 19369 578A4BFA2166AE0000D08F34 /* fido */, … … 27863 27881 71025ECD1F99F0CE004A250C /* AnimationTimeline.h in Headers */, 27864 27882 0F580FAF149800D400FB5BD8 /* AnimationUtilities.h in Headers */, 27883 57152B5A21CB3E88000C37CA /* ApduCommand.h in Headers */, 27884 57152B5C21CC1902000C37CA /* ApduResponse.h in Headers */, 27865 27885 93309DD7099E64920056E581 /* AppendNodeCommand.h in Headers */, 27866 27886 A1DF5A941F7EC4320058A477 /* ApplePayContactField.h in Headers */, -
trunk/Tools/ChangeLog
r239511 r239520 1 2018-12-21 Jiewen Tan <jiewen_tan@apple.com> 2 3 [WebAuthN] Import an APDU coder from Chromium 4 https://bugs.webkit.org/show_bug.cgi?id=192949 5 <rdar://problem/46879933> 6 7 Reviewed by Brent Fulgham. 8 9 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: 10 * TestWebKitAPI/Tests/WebCore/ApduTest.cpp: Added. 11 (TestWebKitAPI::TEST): 12 1 13 2018-12-21 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
r239442 r239520 258 258 5714ECBB1CA8BFE400051AC8 /* DownloadRequestOriginalURLFrame.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = 5714ECBA1CA8BFD100051AC8 /* DownloadRequestOriginalURLFrame.html */; }; 259 259 5714ECBD1CA8C22A00051AC8 /* DownloadRequestOriginalURL2.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = 5714ECBC1CA8C21800051AC8 /* DownloadRequestOriginalURL2.html */; }; 260 57152B5E21CC2045000C37CA /* ApduTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 57152B5D21CC2045000C37CA /* ApduTest.cpp */; }; 260 261 571F7FD01F2961FB00946648 /* IndexedDBStructuredCloneBackwardCompatibility.sqlite3-wal in Copy Resources */ = {isa = PBXBuildFile; fileRef = 571F7FCF1F2961E100946648 /* IndexedDBStructuredCloneBackwardCompatibility.sqlite3-wal */; }; 261 262 572B403421769A88000AD43E /* CtapRequestTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 572B403321769A88000AD43E /* CtapRequestTest.cpp */; }; … … 1605 1606 5714ECBA1CA8BFD100051AC8 /* DownloadRequestOriginalURLFrame.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = DownloadRequestOriginalURLFrame.html; sourceTree = "<group>"; }; 1606 1607 5714ECBC1CA8C21800051AC8 /* DownloadRequestOriginalURL2.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = DownloadRequestOriginalURL2.html; sourceTree = "<group>"; }; 1608 57152B5D21CC2045000C37CA /* ApduTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ApduTest.cpp; sourceTree = "<group>"; }; 1607 1609 571F7FCF1F2961E100946648 /* IndexedDBStructuredCloneBackwardCompatibility.sqlite3-wal */ = {isa = PBXFileReference; lastKnownFileType = file; path = "IndexedDBStructuredCloneBackwardCompatibility.sqlite3-wal"; sourceTree = "<group>"; }; 1608 1610 572B403321769A88000AD43E /* CtapRequestTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CtapRequestTest.cpp; sourceTree = "<group>"; }; … … 2617 2619 ABF510632A19B8AC7EC40E17 /* AbortableTaskQueue.cpp */, 2618 2620 7A909A6F1D877475007E10F8 /* AffineTransform.cpp */, 2621 57152B5D21CC2045000C37CA /* ApduTest.cpp */, 2619 2622 6354F4D01F7C3AB500D89DF3 /* ApplicationManifestParser.cpp */, 2620 2623 93A720E518F1A0E800A848E1 /* CalculationValue.cpp */, … … 3838 3841 A1DF74321C41B65800A2F4D0 /* AlwaysRevalidatedURLSchemes.mm in Sources */, 3839 3842 2DE71AFE1D49C0BD00904094 /* AnimatedResize.mm in Sources */, 3843 57152B5E21CC2045000C37CA /* ApduTest.cpp in Sources */, 3840 3844 63F668221F97F7F90032EE51 /* ApplicationManifest.mm in Sources */, 3841 3845 6354F4D11F7C3AB500D89DF3 /* ApplicationManifestParser.cpp in Sources */,
Note: See TracChangeset
for help on using the changeset viewer.