|
@@ -133,9 +133,6 @@ final class OCBTests: XCTestCase {
|
|
}
|
|
}
|
|
|
|
|
|
func testInvalidTag(fixture: TestFixture) -> Bool {
|
|
func testInvalidTag(fixture: TestFixture) -> Bool {
|
|
- if fixture.P.isEmpty {
|
|
|
|
- return true // TODO: solve the verification with empty plaintext
|
|
|
|
- }
|
|
|
|
let ocb = OCB(nonce: fixture.N, additionalAuthenticatedData: fixture.A, mode: .combined)
|
|
let ocb = OCB(nonce: fixture.N, additionalAuthenticatedData: fixture.A, mode: .combined)
|
|
let aes = try! AES(key: K, blockMode: ocb, padding: .noPadding)
|
|
let aes = try! AES(key: K, blockMode: ocb, padding: .noPadding)
|
|
var C_ = fixture.C.slice
|
|
var C_ = fixture.C.slice
|