Augment references of pkcs1 with oaep
Rightly the system in use is RSAES-OAEP, part of the PKCS#1 standard.
"PKCS#1" is not enough information to communicate to someone the
encryption scheme in use. Refer to the scheme Zuul uses as "PKCS#1-OAEP"
or "pkcs1-oaep" to clarify.
Change-Id: I74dcde6fa3756354ce65233c64c6189d1b241e90
diff --git a/tests/unit/test_encryption.py b/tests/unit/test_encryption.py
index 28ed76d..4dda78b 100644
--- a/tests/unit/test_encryption.py
+++ b/tests/unit/test_encryption.py
@@ -39,14 +39,14 @@
self.assertEqual(self.public.public_numbers(),
public2.public_numbers())
- def test_pkcs1(self):
+ def test_pkcs1_oaep(self):
"Verify encryption and decryption"
orig_plaintext = "some text to encrypt"
- ciphertext = encryption.encrypt_pkcs1(orig_plaintext, self.public)
- plaintext = encryption.decrypt_pkcs1(ciphertext, self.private)
+ ciphertext = encryption.encrypt_pkcs1_oaep(orig_plaintext, self.public)
+ plaintext = encryption.decrypt_pkcs1_oaep(ciphertext, self.private)
self.assertEqual(orig_plaintext, plaintext)
- def test_openssl_pkcs1(self):
+ def test_openssl_pkcs1_oaep(self):
"Verify that we can decrypt something encrypted with OpenSSL"
orig_plaintext = "some text to encrypt"
pem_public = encryption.serialize_rsa_public_key(self.public)
@@ -65,5 +65,5 @@
finally:
os.unlink(public_file.name)
- plaintext = encryption.decrypt_pkcs1(ciphertext, self.private)
+ plaintext = encryption.decrypt_pkcs1_oaep(ciphertext, self.private)
self.assertEqual(orig_plaintext, plaintext)