Module utils

Module utils 

Source

Functions§

aes_gcm_decrypt
extract_pubkey_from_cert
gen_nonce
get_cert_sn
从证书文件提取 SN(失败返回空字符串)
get_root_cert_sn
从根证书文件计算 root_sn(失败返回空字符串)
load_private_key
加载私钥字符串,自动识别 .pem 文件 / 原始字符串
now_ts
retry_async
rsa_sign_sha256_pem
rsa_verify_sha256_pem