diff options
Diffstat (limited to 'libnm-core/crypto.c')
-rw-r--r-- | libnm-core/crypto.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libnm-core/crypto.c b/libnm-core/crypto.c index e769bb4ab3..74063379fe 100644 --- a/libnm-core/crypto.c +++ b/libnm-core/crypto.c @@ -368,13 +368,13 @@ error: return NULL; } -static char * -make_des_aes_key (const char *cipher, - const char *salt, - const gsize salt_len, - const char *password, - gsize *out_len, - GError **error) +char * +crypto_make_des_aes_key (const char *cipher, + const char *salt, + const gsize salt_len, + const char *password, + gsize *out_len, + GError **error) { char *key; guint32 digest_len; @@ -439,7 +439,7 @@ decrypt_key (const char *cipher, return NULL; /* Convert the password and IV into a DES or AES key */ - key = make_des_aes_key (cipher, bin_iv, bin_iv_len, password, &key_len, error); + key = crypto_make_des_aes_key (cipher, bin_iv, bin_iv_len, password, &key_len, error); if (!key || !key_len) goto out; |