doc(lib):增加文档注释。
This commit is contained in:
parent
888b6354ae
commit
69a749b6a2
|
@ -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)?;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user