Skip to main content

Module crypto

Module crypto 

Source
Expand description

Cryptographic utilities for node authentication.

Structsยง

CryptoError
Errors produced by the node-authentication crypto helpers.
NodeKeypair
Ed25519 signing keypair used by nodes to authenticate with the control plane.

Enumsยง

CryptoErrorKind ๐Ÿ”’
CryptoInput
Encoded input that failed a node-authentication crypto operation.

Constantsยง

ED25519_PRIVATE_KEY_LEN ๐Ÿ”’
ED25519_PUBLIC_KEY_LEN ๐Ÿ”’
ED25519_SIGNATURE_LEN ๐Ÿ”’

Functionsยง

build_sign_message
Build the message to sign for a node request.
keypair_from_base64
Build a keypair from a base64-encoded private key.
sha256_hex
Compute SHA256 hash of data and return as hex string.
verify_signature
Verify a signature against a public key.
verify_signature_base64
Verify a signature using base64-encoded inputs.