package sm
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Pure OCaml Chinese National Cryptographic Algorithm Library (SM2/SM3/SM4/ZUC)
Install
dune-project
Dependency
Authors
Maintainers
Sources
sm-0.1.1.tbz
sha256=4d85071a2448f91c7d6d792c1563ca2690c20e22ba188ed7bd20356e4ba684dc
sha512=0e2bbcaaeeab12a9af1287ff4ae3e0197eb6f2eafdcc337d8baf9feefca0b1575fbc043517033b22b78918d214e9ae613c2db033fd51c97a5ca5a8d28cd2198c
doc/sm/Sm2/index.html
Module Sm2Source
Source
val key_exchange :
role:key_exchange_role ->
self_id:string ->
self_static:private_key ->
self_ephemeral:scalar ->
peer_id:string ->
peer_static:point ->
peer_ephemeral:point ->
key_length:int ->
key_exchange_result optionSource
val encode_private_key_encrypted_pem :
password:string ->
salt:bytes ->
iv:bytes ->
iterations:int ->
private_key ->
stringValidate a public key point according to GM/T 0003.1-2012. Checks that the point is not at infinity, coordinates are in range 0, p-1, and satisfy the curve equation y^2 = x^3 + a*x + b (mod p). Optionally performs the expensive order check nP = O if check_order is true.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>