@@ -66,7 +66,7 @@ extension P256.Signing {
66
66
let combined = rawRepresentation
67
67
assert ( combined. count % 2 == 0 )
68
68
let half = combined. count / 2
69
- return ( combined. prefix ( upTo : half) , combined. suffix ( from : half) )
69
+ return ( combined. prefix ( half) , combined. suffix ( half) )
70
70
}
71
71
72
72
/// Creates a P-256 digital signature from a Distinguished Encoding
@@ -115,8 +115,8 @@ extension P256.Signing {
115
115
#else
116
116
let raw = rawRepresentation
117
117
let half = raw. count / 2
118
- let r = Array ( raw. prefix ( upTo : half) ) [ ... ]
119
- let s = Array ( raw. suffix ( from : half) ) [ ... ]
118
+ let r = Array ( raw. prefix ( half) ) [ ... ]
119
+ let s = Array ( raw. suffix ( half) ) [ ... ]
120
120
121
121
let sig = ASN1 . ECDSASignature ( r: r, s: s)
122
122
var serializer = ASN1 . Serializer ( )
@@ -229,7 +229,7 @@ extension P384.Signing {
229
229
let combined = rawRepresentation
230
230
assert ( combined. count % 2 == 0 )
231
231
let half = combined. count / 2
232
- return ( combined. prefix ( upTo : half) , combined. suffix ( from : half) )
232
+ return ( combined. prefix ( half) , combined. suffix ( half) )
233
233
}
234
234
235
235
/// Creates a P-384 digital signature from a Distinguished Encoding
@@ -278,8 +278,8 @@ extension P384.Signing {
278
278
#else
279
279
let raw = rawRepresentation
280
280
let half = raw. count / 2
281
- let r = Array ( raw. prefix ( upTo : half) ) [ ... ]
282
- let s = Array ( raw. suffix ( from : half) ) [ ... ]
281
+ let r = Array ( raw. prefix ( half) ) [ ... ]
282
+ let s = Array ( raw. suffix ( half) ) [ ... ]
283
283
284
284
let sig = ASN1 . ECDSASignature ( r: r, s: s)
285
285
var serializer = ASN1 . Serializer ( )
@@ -392,7 +392,7 @@ extension P521.Signing {
392
392
let combined = rawRepresentation
393
393
assert ( combined. count % 2 == 0 )
394
394
let half = combined. count / 2
395
- return ( combined. prefix ( upTo : half) , combined. suffix ( from : half) )
395
+ return ( combined. prefix ( half) , combined. suffix ( half) )
396
396
}
397
397
398
398
/// Creates a P-521 digital signature from a Distinguished Encoding
@@ -441,8 +441,8 @@ extension P521.Signing {
441
441
#else
442
442
let raw = rawRepresentation
443
443
let half = raw. count / 2
444
- let r = Array ( raw. prefix ( upTo : half) ) [ ... ]
445
- let s = Array ( raw. suffix ( from : half) ) [ ... ]
444
+ let r = Array ( raw. prefix ( half) ) [ ... ]
445
+ let s = Array ( raw. suffix ( half) ) [ ... ]
446
446
447
447
let sig = ASN1 . ECDSASignature ( r: r, s: s)
448
448
var serializer = ASN1 . Serializer ( )
0 commit comments