]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - crypto/dh_helper.c
crypto: dh - return unsigned value for crypto_dh_key_len()
[thirdparty/kernel/stable.git] / crypto / dh_helper.c
index 69869dad344ad1217c08336c97d63d9b6ad1f34c..a413b311e5689be8c9b2670766ab09e3974b587b 100644 (file)
@@ -33,7 +33,7 @@ static inline unsigned int dh_data_size(const struct dh *p)
        return p->key_size + p->p_size + p->g_size;
 }
 
-int crypto_dh_key_len(const struct dh *p)
+unsigned int crypto_dh_key_len(const struct dh *p)
 {
        return DH_KPP_SECRET_MIN_SIZE + dh_data_size(p);
 }