doc(lib):增加文档注释。

This commit is contained in:
徐涛 2024-04-01 15:24:06 +08:00
parent 888b6354ae
commit 69a749b6a2

View File

@ -80,6 +80,8 @@ fn ensure_path_exists<P: AsRef<Path>>(target_path: P) -> Result<(), io::Error> {
} }
/// 计算用于net-filter中power插件中Equal所使用的值。 /// 计算用于net-filter中power插件中Equal所使用的值。
///
/// - `cert`用于生成EQUAL值的X509证书
pub fn calculate_power_euqal_result(cert: X509) -> anyhow::Result<String> { pub fn calculate_power_euqal_result(cert: X509) -> anyhow::Result<String> {
let x = BigNum::from_slice(cert.signature().as_slice())?; let x = BigNum::from_slice(cert.signature().as_slice())?;
let y = BigNum::from_u32(65537)?; let y = BigNum::from_u32(65537)?;