Skip to content

Commit

Permalink
Fix #84
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgoedjen committed Apr 2, 2020
1 parent f1e8e43 commit 5b38ef0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions SecretAgentKitTests/AgentTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ class AgentTests: XCTestCase {
_ = inner.readNextChunk()
let signedData = inner.readNextChunk()
let rsData = OpenSSHReader(data: signedData)
let r = rsData.readNextChunk()
let s = rsData.readNextChunk()
var r = rsData.readNextChunk()
var s = rsData.readNextChunk()
// This is fine IRL, but it freaks out CryptoKit
if r[0] == 0 {
r.removeFirst()
}
if s[0] == 0 {
s.removeFirst()
}
var rs = r
rs.append(s)
let signature = try! P256.Signing.ECDSASignature(rawRepresentation: rs)
Expand Down

0 comments on commit 5b38ef0

Please sign in to comment.