def pkcs_os2ip(x):
"""
Accepts a byte string as input parameter and return the associated long
value:
Input : x octet string to be converted
Output: x corresponding nonnegative integer
Reverse function is pkcs_i2osp()
"""
return number.bytes_to_long(x)
# IP2OS function defined in RFC 3447 for octet string to integer conversion
评论列表
文章目录