scoop:scoop.crypto:0.1.0
scoop.crypto.native
API
-
struct
CryptoResult
The native bridge's value/error pair. Interpret and consume it with the matching operation helper.
-
function
certificateHandle
Borrows the native handle of a live Certificate. The unsafe caller must keep the owner open throughout native use and must not free the borrowed handle.
-
function
consumeCryptoBytes
Copies an owned native byte result into a managed array and releases the native result handle.
-
function
cryptoBytes
Checks a native result and consumes its owned byte handle into a managed byte array.
-
function
cryptoValue
Converts a native result to its value or raises CryptoException after consuming the backend error.
-
function
peerIdentityData
Encodes an expected DNS or IP identity into the native certificate-verification representation.
-
function
privateKeyHandle
Borrows the native handle of a live PrivateKey. The unsafe caller must keep the owner open throughout native use and must not free the borrowed handle.
-
function
publicKeyHandle
Borrows the native handle of a live PublicKey. The unsafe caller must keep the owner open throughout native use and must not free the borrowed handle.
-
function
trustStoreHandle
Borrows the native handle of a live TrustStore. The unsafe caller must keep the owner open throughout native use and must not free the borrowed handle.