aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2024-06-03 08:23:51 -0400
committerGitHub <noreply@github.com>2024-06-03 05:23:51 -0700
commit064a463eae1a67d4a4fcdc5305fc115c98f207f9 (patch)
treea9f2d8ee0a672fcb5f9b6b67d940928b45d81f4f /tests
parent99de528c1229363f4435eac25f54abac4ba65072 (diff)
downloadpyca-cryptography-064a463eae1a67d4a4fcdc5305fc115c98f207f9.zip
pyca-cryptography-064a463eae1a67d4a4fcdc5305fc115c98f207f9.tar.gz
pyca-cryptography-064a463eae1a67d4a4fcdc5305fc115c98f207f9.tar.bz2
added tests for PKCS12Certificate with encryption builder (#11060)
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/test_pkcs12.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_pkcs12.py b/tests/hazmat/primitives/test_pkcs12.py
index 5b97121..8397750 100644
--- a/tests/hazmat/primitives/test_pkcs12.py
+++ b/tests/hazmat/primitives/test_pkcs12.py
@@ -423,6 +423,12 @@ class TestPKCS12Creation:
("encryption_algorithm", "password"),
[
(serialization.BestAvailableEncryption(b"password"), b"password"),
+ (
+ serialization.PrivateFormat.PKCS12.encryption_builder().build(
+ b"not a password"
+ ),
+ b"not a password",
+ ),
(serialization.NoEncryption(), None),
],
)