9
9
10
10
11
11
def test_encrypt_and_decrypt_with_keyring_without_user_defined_keys ():
12
- """Test function for encrypt and decrypt using the Raw RSA Keyring example
13
- where user doesn't provide the public and private keys
12
+ """Test function for encrypt and decrypt using the Raw RSA Keyring example.
13
+
14
+ Here user doesn't provide the public and private keys
14
15
"""
15
16
encrypt_and_decrypt_with_keyring ()
16
17
17
18
18
19
def test_encrypt_and_decrypt_with_keyring_with_user_defined_keys ():
19
- """Test function for encrypt and decrypt using the Raw RSA Keyring example
20
- where user provides the public and private keys. To test this, we create the
20
+ """Test function for encrypt and decrypt using the Raw RSA Keyring example.
21
+
22
+ Here user provides the public and private keys. To test this, we create the
21
23
keys using the generate_rsa_keys function
22
24
"""
23
25
user_public_key , user_private_key = generate_rsa_keys ()
24
26
encrypt_and_decrypt_with_keyring (public_key = user_public_key , private_key = user_private_key )
25
27
26
28
27
29
def test_encrypt_and_decrypt_fails_if_user_provides_only_public_key ():
28
- """Test function for encrypt and decrypt using the Raw RSA Keyring example
29
- where user provides only the public key. The program should throw an Assertion error
30
+ """Test function for encrypt and decrypt using the Raw RSA Keyring example.
31
+
32
+ Here user provides only the public key. The program should throw an Assertion error
30
33
as this example requires the user to either provide both private and public keys to
31
34
test both encryption and decryption, or not provide any keys and the example generates both
32
35
"""
@@ -40,8 +43,9 @@ def test_encrypt_and_decrypt_fails_if_user_provides_only_public_key():
40
43
41
44
42
45
def test_encrypt_and_decrypt_fails_if_user_provides_only_private_key ():
43
- """Test function for encrypt and decrypt using the Raw RSA Keyring example
44
- where user provides only the private key. The program should throw an Assertion error
46
+ """Test function for encrypt and decrypt using the Raw RSA Keyring example.
47
+
48
+ Here user provides only the private key. The program should throw an Assertion error
45
49
as this example requires the user to either provide both private and public keys to
46
50
test both encryption and decryption, or not provide any keys and the example generates both
47
51
"""
0 commit comments