Index: crypto/openpgp_symmetric_encryption.cc |
diff --git a/crypto/openpgp_symmetric_encryption.cc b/crypto/openpgp_symmetric_encryption.cc |
index 7eb6737fe162758fbd58a1992126623fa0fb7862..702952b018719e8e6f8c04f128899d0c07cbfbca 100644 |
--- a/crypto/openpgp_symmetric_encryption.cc |
+++ b/crypto/openpgp_symmetric_encryption.cc |
@@ -150,7 +150,7 @@ void SaltedIteratedS2K(unsigned cipher_key_length, |
// in ECB mode and with no IV. |
bool CreateAESContext(const uint8* key, unsigned key_len, |
ScopedPK11Context* out_decryption_context) { |
- ScopedPK11Slot slot(PK11_GetBestSlot(CKM_AES_ECB, NULL)); |
+ ScopedPK11Slot slot(PK11_GetInternalSlot()); |
if (!slot.get()) |
return false; |
SECItem key_item; |