MCPcopy
hub / github.com/streetwriters/notesnook / ISodium

Interface ISodium

packages/sodium/src/types.ts:29–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29export interface ISodium {
30 initialize(): Promise<void>;
31
32 get crypto_generichash(): typeof sodium.crypto_generichash;
33
34 get crypto_pwhash(): typeof sodium.crypto_pwhash;
35 get crypto_pwhash_ALG_ARGON2ID13(): typeof sodium.crypto_pwhash_ALG_ARGON2ID13;
36 get crypto_pwhash_SALTBYTES(): typeof sodium.crypto_pwhash_SALTBYTES;
37 get crypto_pwhash_ALG_ARGON2I13(): typeof sodium.crypto_pwhash_ALG_ARGON2I13;
38 get crypto_pwhash_ALG_DEFAULT(): typeof sodium.crypto_pwhash_ALG_DEFAULT;
39 get crypto_pwhash_OPSLIMIT_INTERACTIVE(): typeof sodium.crypto_pwhash_OPSLIMIT_INTERACTIVE;
40 get crypto_pwhash_OPSLIMIT_MODERATE(): typeof sodium.crypto_pwhash_OPSLIMIT_MODERATE;
41 get crypto_pwhash_OPSLIMIT_SENSITIVE(): typeof sodium.crypto_pwhash_OPSLIMIT_SENSITIVE;
42 get crypto_pwhash_MEMLIMIT_INTERACTIVE(): typeof sodium.crypto_pwhash_MEMLIMIT_INTERACTIVE;
43 get crypto_pwhash_MEMLIMIT_MODERATE(): typeof sodium.crypto_pwhash_MEMLIMIT_MODERATE;
44 get crypto_pwhash_MEMLIMIT_SENSITIVE(): typeof sodium.crypto_pwhash_MEMLIMIT_SENSITIVE;
45
46 // helpers
47 from_base64(input: string, variant?: base64_variants): Uint8Array;
48 to_base64(input: string | Uint8Array, variant?: base64_variants): string;
49 get randombytes_buf(): typeof sodium.randombytes_buf;
50 get to_string(): typeof sodium.to_string;
51 get from_hex(): typeof sodium.from_hex;
52
53 // aead
54 get crypto_aead_xchacha20poly1305_ietf_KEYBYTES(): typeof sodium.crypto_aead_xchacha20poly1305_ietf_KEYBYTES;
55 get crypto_aead_xchacha20poly1305_ietf_encrypt(): typeof sodium.crypto_aead_xchacha20poly1305_ietf_encrypt;
56 get crypto_aead_xchacha20poly1305_ietf_decrypt(): typeof sodium.crypto_aead_xchacha20poly1305_ietf_decrypt;
57 get crypto_secretstream_xchacha20poly1305_init_push(): typeof sodium.crypto_secretstream_xchacha20poly1305_init_push;
58 get crypto_secretstream_xchacha20poly1305_push(): typeof sodium.crypto_secretstream_xchacha20poly1305_push;
59 get crypto_secretstream_xchacha20poly1305_init_pull(): typeof sodium.crypto_secretstream_xchacha20poly1305_init_pull;
60 get crypto_secretstream_xchacha20poly1305_pull(): typeof sodium.crypto_secretstream_xchacha20poly1305_pull;
61 get crypto_aead_xchacha20poly1305_ietf_NPUBBYTES(): typeof sodium.crypto_aead_xchacha20poly1305_ietf_NPUBBYTES;
62 get crypto_secretstream_xchacha20poly1305_TAG_FINAL(): typeof sodium.crypto_secretstream_xchacha20poly1305_TAG_FINAL;
63 get crypto_secretstream_xchacha20poly1305_TAG_MESSAGE(): typeof sodium.crypto_secretstream_xchacha20poly1305_TAG_MESSAGE;
64}

Callers 48

initMethod · 0.65
mainFunction · 0.65
streamingEncryptFunction · 0.65
streamingDecryptFunction · 0.65
decryptFunction · 0.65
encryptFunction · 0.65
getKeyFunction · 0.65
hashFunction · 0.65
hashMethod · 0.65
hashFunction · 0.65
hashMethod · 0.65
deriveKeyMethod · 0.65

Implementers 2

Sodiumpackages/sodium/src/browser.ts
Sodiumpackages/sodium/src/node.ts

Calls

no outgoing calls

Tested by

no test coverage detected