~/bend-docscommunity

suite_ours.bend checks

raw source on the hub · import element-crypto@0.1.0.0/suite_ours.bend as Suite_ours

6 imports
import Base
import ./sha256.bend as Sha256
import ./hmac.bend as Hmac
import ./poly1305.bend as Poly
import ./gcm.bend as Gcm
import ./x25519.bend as X

Definitions

def digest source · line 11 · raw

@+bs:List<&2, U32> -> List<&2, U32>

def hmac source · line 14 · raw

@key:List<&2, U32> -> @msg:List<&2, U32> -> List<&2, U32>

def extract source · line 17 · raw

@salt:List<&2, U32> -> @ikm:List<&2, U32> -> List<&2, U32>

def expand source · line 20 · raw

@+prk:List<&2, U32> -> @+info:List<&2, U32> -> @+len:U32 -> List<&2, U32>

def chacha_seal source · line 23 · raw

@+key:List<&2, U32> -> @+nonce:List<&2, U32> -> @+aad:List<&2, U32> -> @+pt:List<&2, U32> -> List<&2, U32>

def chacha_open source · line 26 · raw

@+key:List<&2, U32> -> @+nonce:List<&2, U32> -> @+aad:List<&2, U32> -> @+sealed:List<&2, U32> -> Maybe<&2, List<&2, U32>>

def gcm_seal source · line 29 · raw

@+key:List<&2, U32> -> @+nonce:List<&2, U32> -> @+aad:List<&2, U32> -> @+pt:List<&2, U32> -> List<&2, U32>

def gcm_open source · line 32 · raw

@+key:List<&2, U32> -> @+nonce:List<&2, U32> -> @+aad:List<&2, U32> -> @+sealed:List<&2, U32> -> Maybe<&2, List<&2, U32>>

def x25519_public source · line 35 · raw

@+k:List<&2, U32> -> List<&2, U32>

def x25519_shared source · line 38 · raw

@+k:List<&2, U32> -> @+u:List<&2, U32> -> Maybe<&2, List<&2, U32>>

def eq_bytes source · line 41 · raw

@xs:List<&2, U32> -> @ys:List<&2, U32> -> Bool