diff --git a/Sources/CryptoExtras/AES/BoringSSL/AES_GCM_SIV_boring.swift b/Sources/CryptoExtras/AES/BoringSSL/AES_GCM_SIV_boring.swift index 6185a0e7..92cb2ec2 100644 --- a/Sources/CryptoExtras/AES/BoringSSL/AES_GCM_SIV_boring.swift +++ b/Sources/CryptoExtras/AES/BoringSSL/AES_GCM_SIV_boring.swift @@ -92,7 +92,7 @@ enum OpenSSLAESGCMSIVImpl { ) } - return try AES.GCM._SIV.SealedBox(combined: combined, nonceByteCount: nonce.bytes.count) + return AES.GCM._SIV.SealedBox(combined: combined, nonceByteCount: nonce.bytes.count) } @inlinable diff --git a/Tests/CryptoTests/Authenticated Encryption/AES-GCM-Runner.swift b/Tests/CryptoTests/Authenticated Encryption/AES-GCM-Runner.swift index e860b71b..166a5120 100644 --- a/Tests/CryptoTests/Authenticated Encryption/AES-GCM-Runner.swift +++ b/Tests/CryptoTests/Authenticated Encryption/AES-GCM-Runner.swift @@ -151,7 +151,7 @@ class AESGCMTests: XCTestCase { let ciphertext = Array("This pretty clearly isn't ciphertext, but sure why not".utf8) let (contiguousCiphertext, discontiguousCiphertext) = ciphertext.asDataProtocols() - let contiguousSB = try orFail { try AES.GCM.SealedBox(combined: contiguousCiphertext) } + let contiguousSB = try orFail { AES.GCM.SealedBox(combined: contiguousCiphertext) } let discontiguousSB = try orFail { try AES.GCM.SealedBox(combined: discontiguousCiphertext) } XCTAssertEqual(contiguousSB.combined, discontiguousSB.combined) XCTAssertEqual(Array(contiguousSB.nonce), Array(discontiguousSB.nonce))