Skip to content

Commit c58a33d

Browse files
arc: Switch to using stored property for ciphersuite
1 parent 177cc12 commit c58a33d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/_CryptoExtras/ARC/ARC+API.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ extension P256 {
2727
internal typealias Ciphersuite = ARC.Ciphersuite<H2G>
2828
fileprivate typealias Server = ARC.Server<H2G>
2929

30-
// TODO: ARC internals changed recently to use this a lot more——might benefit from being a stored property.
31-
internal static var ciphersuite: Ciphersuite { Ciphersuite(H2G.self) }
30+
internal static let ciphersuite = Ciphersuite(H2G.self)
3231
}
3332
}
3433

@@ -408,8 +407,7 @@ extension P384 {
408407
internal typealias Ciphersuite = ARC.Ciphersuite<H2G>
409408
fileprivate typealias Server = ARC.Server<H2G>
410409

411-
// TODO: ARC internals changed recently to use this a lot more——might benefit from being a stored property.
412-
internal static var ciphersuite: Ciphersuite { Ciphersuite(H2G.self) }
410+
internal static let ciphersuite = Ciphersuite(H2G.self)
413411
}
414412
}
415413

0 commit comments

Comments
 (0)