File tree Expand file tree Collapse file tree 11 files changed +154
-0
lines changed Expand file tree Collapse file tree 11 files changed +154
-0
lines changed Original file line number Diff line number Diff line change 1
1
// swift-tools-version:5.6
2
+ //===----------------------------------------------------------------------===//
3
+ //
4
+ // This source file is part of the WebAuthn Swift open source project
5
+ //
6
+ // Copyright (c) 2022 the WebAuthn Swift project authors
7
+ // Licensed under Apache License v2.0
8
+ //
9
+ // See LICENSE.txt for license information
10
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
11
+ //
12
+ // SPDX-License-Identifier: Apache-2.0
13
+ //
14
+ //===----------------------------------------------------------------------===//
15
+
2
16
import PackageDescription
3
17
4
18
let package = Package (
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the WebAuthn Swift open source project
4
+ //
5
+ // Copyright (c) 2022 the WebAuthn Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
import Foundation
2
16
3
17
public struct AssertionCredential : Codable {
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the WebAuthn Swift open source project
4
+ //
5
+ // Copyright (c) 2022 the WebAuthn Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
struct AttestedCredentialData {
2
16
let aaguid : [ UInt8 ]
3
17
let credentialID : [ UInt8 ]
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the WebAuthn Swift open source project
4
+ //
5
+ // Copyright (c) 2022 the WebAuthn Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
struct AuthenticatorFlags {
2
16
3
17
/**
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the WebAuthn Swift open source project
4
+ //
5
+ // Copyright (c) 2022 the WebAuthn Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
import Foundation
2
16
3
17
struct ClientDataObject : Codable {
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the WebAuthn Swift open source project
4
+ //
5
+ // Copyright (c) 2022 the WebAuthn Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
import Foundation
2
16
import Crypto
3
17
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the WebAuthn Swift open source project
4
+ //
5
+ // Copyright (c) 2022 the WebAuthn Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
import Foundation
2
16
3
17
public enum Endian {
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the WebAuthn Swift open source project
4
+ //
5
+ // Copyright (c) 2022 the WebAuthn Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
import Foundation
2
16
3
17
public struct RegisterWebAuthnCredentialData : Codable {
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the WebAuthn Swift open source project
4
+ //
5
+ // Copyright (c) 2022 the WebAuthn Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
import SwiftCBOR
2
16
import Crypto
3
17
import Logging
Original file line number Diff line number Diff line change
1
+ //===----------------------------------------------------------------------===//
2
+ //
3
+ // This source file is part of the WebAuthn Swift open source project
4
+ //
5
+ // Copyright (c) 2022 the WebAuthn Swift project authors
6
+ // Licensed under Apache License v2.0
7
+ //
8
+ // See LICENSE.txt for license information
9
+ // See CONTRIBUTORS.txt for the list of WebAuthn Swift project authors
10
+ //
11
+ // SPDX-License-Identifier: Apache-2.0
12
+ //
13
+ //===----------------------------------------------------------------------===//
14
+
1
15
public enum WebAuthnError : Error {
2
16
case authDataTooShort
3
17
case extensionDataMissing
You can’t perform that action at this time.
0 commit comments