You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XCTAssertEqual(encrypted.toHexString(),Data(base64Encoded: message.value.encryptedMessage["algid:encrypt:RSA:raw"]!)!.bytes.toHexString(),"Encryption<\(test.key)>::Failed to encrypt the message `\(message.key)`")
427
427
428
-
// Decryption requires access to the Private Key, therefore attempting to decrpyt with only a public key should throw an error
428
+
// Decryption requires access to the Private Key, therefore attempting to decrypt with only a public key should throw an error
429
429
XCTAssertThrowsError(try rsa.decrypt(Data(base64Encoded: message.value.encryptedMessage["algid:encrypt:RSA:raw"]!)!.bytes),"Encryption<\(test.key)>::Did not throw error while decrypting `\(message.key)`")
430
430
}
431
431
}else{
432
-
// Sometimes the message is too long to be safely encrypted by our key. When this happens we should encouter an error and our test value should be empty.
432
+
// Sometimes the message is too long to be safely encrypted by our key. When this happens we should encounter an error and our test value should be empty.
433
433
if test.value ==""{
434
434
XCTAssertThrowsError(try rsa.encrypt(message.key.bytes, variant: variant),"Encryption<\(test.key)>::Did not throw error while encrypting `\(message.key)`")
0 commit comments