aboutsummaryrefslogtreecommitdiffstats
path: root/library/sodium-plus/docs/README.md
blob: fad31de3df5128f01a9107653c99d3a893469b54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Table of Contents

* [Table of Contents](#table-of-contents) (you are here)
* [Getting Started](getting-started.md#getting-started)
  * [CryptographyKey](getting-started.md#cryptographykey)
  * [Sodium-Plus in the Browser](getting-started.md#sodium-plus-in-the-browser)
* [SodiumPlus Methods](SodiumPlus#sodiumplus-methods)
  * [AEAD (XChaCha20-Poly1305)](SodiumPlus/AEAD.md#aead)
    * [crypto_aead_xchacha20poly1305_ietf_decrypt](SodiumPlus/AEAD.md#crypto_aead_xchacha20poly1305_ietf_decrypt)
    * [crypto_aead_xchacha20poly1305_ietf_encrypt](SodiumPlus/AEAD.md#crypto_aead_xchacha20poly1305_ietf_encrypt)
    * [crypto_aead_xchacha20poly1305_ietf_keygen](SodiumPlus/AEAD.md#crypto_aead_xchacha20poly1305_ietf_keygen)
    * [Example for crypto_aead_xchacha20poly1305_ietf_*](SodiumPlus/AEAD.md#example-for-crypto_aead_xchacha20poly1305_ietf_)
  * [Shared-key authentication](SodiumPlus/shared-key-authentication.md)
    * [crypto_auth](SodiumPlus/shared-key-authentication.md#crypto_auth)
    * [crypto_auth_verify](SodiumPlus/shared-key-authentication.md#crypto_auth_verify)
    * [crypto_auth_keygen](SodiumPlus/shared-key-authentication.md#crypto_auth_keygen)
    * [Example for crypto_auth](SodiumPlus/shared-key-authentication.md#example-for-crypto_auth)
  * [Authenticated public-key encryption](SodiumPlus/authenticated-public-key-encryption.md)
    * [crypto_box](SodiumPlus/authenticated-public-key-encryption.md#crypto_box)
    * [crypto_box_open](SodiumPlus/authenticated-public-key-encryption.md#crypto_box_open)
    * [crypto_box_keypair](SodiumPlus/authenticated-public-key-encryption.md#crypto_box_keypair)
    * [crypto_box_keypair_from_secretkey_and_secretkey](SodiumPlus/authenticated-public-key-encryption.md#crypto_box_keypair_from_secretkey_and_secretkey)
    * [crypto_box_publickey](SodiumPlus/authenticated-public-key-encryption.md#crypto_box_publickey)
    * [crypto_box_secretkey](SodiumPlus/authenticated-public-key-encryption.md#crypto_box_secretkey)
    * [crypto_box_publickey_from_secretkey](SodiumPlus/authenticated-public-key-encryption.md#crypto_box_publickey_from_secretkey)
    * [Example for crypto_box](SodiumPlus/authenticated-public-key-encryption.md#example-for-crypto_box)
  * [Sealed boxes (anonymous public-key encryption)](SodiumPlus/sealed-boxes.md)
    * [crypto_box_seal](SodiumPlus/sealed-boxes.md#crypto_box_seal)
    * [crypto_box_seal_open](SodiumPlus/sealed-boxes.md#crypto_box_seal_open)
    * [Example for crypto_box_seal](SodiumPlus/sealed-boxes.md#example-for-crypto_box_seal)
  * [General-purpose cryptographic hash](SodiumPlus/general-purpose-cryptographic-hash.md)
    * [crypto_generichash](SodiumPlus/general-purpose-cryptographic-hash.md#crypto_generichash)
    * [crypto_generichash_init](SodiumPlus/general-purpose-cryptographic-hash.md#crypto_generichash_init)
    * [crypto_generichash_update](SodiumPlus/general-purpose-cryptographic-hash.md#crypto_generichash_update)
    * [crypto_generichash_final](SodiumPlus/general-purpose-cryptographic-hash.md#crypto_generichash_final)
    * [crypto_generichash_keygen](SodiumPlus/general-purpose-cryptographic-hash.md#crypto_generichash_keygen)
    * [Example for crypto_generichash](SodiumPlus/general-purpose-cryptographic-hash.md#example-for-crypto_generichash)
  * [Key derivation](SodiumPlus/key-derivation.md)
    * [crypto_kdf_derive_from_key](SodiumPlus/key-derivation.md#crypto_kdf_derive_from_key)
    * [crypto_kdf_keygen](SodiumPlus/key-derivation.md#crypto_kdf_keygen)
    * [Example for crypto_kdf](SodiumPlus/key-derivation.md#example-for-crypto_kdf)
  * [Key exchange](SodiumPlus/key-exchange.md)
    * [crypto_kx_keypair](SodiumPlus/key-exchange.md#crypto_kx_keypair)
    * [crypto_kx_seed_keypair](SodiumPlus/key-exchange.md#crypto_kx_seed_keypair)
    * [crypto_kx_client_session_keys](SodiumPlus/key-exchange.md#crypto_kx_client_session_keys)
    * [crypto_kx_server_session_keys](SodiumPlus/key-exchange.md#crypto_kx_server_session_keys)
    * [Example for crypto_kx](SodiumPlus/key-exchange.md#example-for-crypto_kx)
  * [One-time authentication](SodiumPlus/one-time-authentication.md)
    * [crypto_onetimeauth](SodiumPlus/one-time-authentication.md#crypto_onetimeauth)
    * [crypto_onetimeauth_verify](SodiumPlus/one-time-authentication.md#crypto_onetimeauth_verify)
    * [crypto_onetimeauth_keygen](SodiumPlus/one-time-authentication.md#crypto_onetimeauth_keygen)
    * [Example for crypto_onetimeauth](SodiumPlus/one-time-authentication.md#example-for-crypto_onetimeauth)
  * [Password-based key derivation](SodiumPlus/password-based-key-derivation.md)
    * [crypto_pwhash](SodiumPlus/password-based-key-derivation.md#crypto_pwhash)
    * [Example for crypto_pwhash](SodiumPlus/password-based-key-derivation.md#example-for-crypto_pwhash)
  * [Password hashing and storage](SodiumPlus/password-hashing-and-storage.md)
    * [crypto_pwhash_str](SodiumPlus/password-hashing-and-storage.md#crypto_pwhash_str)
    * [crypto_pwhash_str_needs_rehash](SodiumPlus/password-hashing-and-storage.md#crypto_pwhash_str_needs_rehash)
    * [crypto_pwhash_str_verify](SodiumPlus/password-hashing-and-storage.md#crypto_pwhash_str_verify)
    * [Example for crypto_pwhash_str](SodiumPlus/password-hashing-and-storage.md#example-for-crypto_pwhash_str)
  * [Scalar multiplication over Curve25519 (advanced)](SodiumPlus/scalar-multiplication.md)
    * [crypto_scalarmult](SodiumPlus/scalar-multiplication.md#crypto_scalarmult)
    * [crypto_scalarmult_base](SodiumPlus/scalar-multiplication.md#crypto_scalarmult_base)
    * [Example for crypto_scalarmult](SodiumPlus/scalar-multiplication.md#example-for-crypto_scalarmult)
  * [Shared-key authenticated encryption](SodiumPlus/shared-key-authenticated-encryption.md)
    * [crypto_secretbox](SodiumPlus/shared-key-authenticated-encryption.md#crypto_secretbox)
    * [crypto_secretbox_open](SodiumPlus/shared-key-authenticated-encryption.md#crypto_secretbox_open)
    * [crypto_secretbox_keygen](SodiumPlus/shared-key-authenticated-encryption.md#crypto_secretbox_keygen)
    * [Example for crypto_secretbox](SodiumPlus/shared-key-authenticated-encryption.md#example-for-crypto_secretbox)
  * [Encrypted streams](SodiumPlus/encrypted-streams.md)
    * [crypto_secretstream_xchacha20poly1305_init_push](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_init_push)
    * [crypto_secretstream_xchacha20poly1305_init_pull](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_init_pull)
    * [crypto_secretstream_xchacha20poly1305_push](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_push)
    * [crypto_secretstream_xchacha20poly1305_pull](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_pull)
    * [crypto_secretstream_xchacha20poly1305_keygen](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_keygen)
    * [crypto_secretstream_xchacha20poly1305_rekey](SodiumPlus/encrypted-streams.md#crypto_secretstream_xchacha20poly1305_rekey)
    * [Example for crypto_secretstream_xchacha20poly1305](SodiumPlus/encrypted-streams.md#example-for-crypto_secretstream_xchacha20poly1305)
  * [Short-input hashing](SodiumPlus/short-input-hashing.md)
    * [crypto_shorthash](SodiumPlus/short-input-hashing.md#crypto_shorthash)
    * [crypto_shorthash_keygen](SodiumPlus/short-input-hashing.md#crypto_shorthash_keygen)
    * [Example for crypto_shorthash](SodiumPlus/short-input-hashing.md#example-for-crypto_shorthash)
  * [Digital signatures](SodiumPlus/digital-signatures.md)
    * [crypto_sign](SodiumPlus/digital-signatures.md#crypto_sign)
    * [crypto_sign_open](SodiumPlus/digital-signatures.md#crypto_sign_open)
    * [crypto_sign_detached](SodiumPlus/digital-signatures.md#crypto_sign_detached)
    * [crypto_sign_verify_detached](SodiumPlus/digital-signatures.md#crypto_sign_verify_detached)
    * [crypto_sign_keypair](SodiumPlus/digital-signatures.md#crypto_sign_keypair)
    * [crypto_sign_publickey](SodiumPlus/digital-signatures.md#crypto_sign_publickey)
    * [crypto_sign_secretkey](SodiumPlus/digital-signatures.md#crypto_sign_secretkey)
    * [crypto_sign_ed25519_sk_to_curve25519](SodiumPlus/digital-signatures.md#crypto_sign_ed25519_sk_to_curve25519)
    * [crypto_sign_ed25519_pk_to_curve25519](SodiumPlus/digital-signatures.md#crypto_sign_ed25519_pk_to_curve25519)
    * [Example for crypto_sign](SodiumPlus/digital-signatures.md#example-for-crypto_sign)
  * [Randomness](SodiumPlus/randomness.md)
    * [randombytes_buf](SodiumPlus/randomness.md#randombytes_buf)
    * [randombytes_uniform](SodiumPlus/randomness.md#randombytes_uniform)
    * [Example for randombytes](SodiumPlus/randomness.md#example-for-randombytes)
  * [Utilities](SodiumPlus/utilities.md)
    * [sodium_bin2hex](SodiumPlus/utilities.md#sodium_bin2hex)
    * [sodium_hex2bin](SodiumPlus/utilities.md#sodium_bin2hex)