<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.sodium.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'ref.sodium.php',
    1 => 'Sodium 関数',
    2 => 'Sodium 関数',
  ),
  'up' => 
  array (
    0 => 'book.sodium.php',
    1 => 'Sodium',
  ),
  'prev' => 
  array (
    0 => 'sodium.constants.php',
    1 => '定義済み定数',
  ),
  'next' => 
  array (
    0 => 'function.sodium-add.php',
    1 => 'sodium_add',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/sodium/reference.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/ref.sodium.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ref.sodium" class="reference">
 <h1 class="title">Sodium 関数</h1>

 






















































































































































































































































































































































































































































































































































































































































































<h2>目次</h2><ul class="chunklist chunklist_reference"><li><a href="function.sodium-add.php">sodium_add</a> — 巨大な数を加算する</li><li><a href="function.sodium-base642bin.php">sodium_base642bin</a> — base64 エンコードされた文字列を、生バイナリにデコードする</li><li><a href="function.sodium-bin2base64.php">sodium_bin2base64</a> — 生バイナリを base64 文字列にエンコードする</li><li><a href="function.sodium-bin2hex.php">sodium_bin2hex</a> — 16進数にエンコードする</li><li><a href="function.sodium-compare.php">sodium_compare</a> — 巨大な数を比較する</li><li><a href="function.sodium-crypto-aead-aegis128l-decrypt.php">sodium_crypto_aead_aegis128l_decrypt</a> — AEGIS-128L を用いてメッセージを検証し、復号する</li><li><a href="function.sodium-crypto-aead-aegis128l-encrypt.php">sodium_crypto_aead_aegis128l_encrypt</a> — AEGIS-128L を使って暗号化し、認証を行う</li><li><a href="function.sodium-crypto-aead-aegis128l-keygen.php">sodium_crypto_aead_aegis128l_keygen</a> — ランダムな AEGIS-128L 暗号化キーを生成する</li><li><a href="function.sodium-crypto-aead-aegis256-decrypt.php">sodium_crypto_aead_aegis256_decrypt</a> — AEGIS-256 を用いてメッセージを検証し、復号する</li><li><a href="function.sodium-crypto-aead-aegis256-encrypt.php">sodium_crypto_aead_aegis256_encrypt</a> — AEGIS-256 を使って暗号化し、認証を行う</li><li><a href="function.sodium-crypto-aead-aegis256-keygen.php">sodium_crypto_aead_aegis256_keygen</a> — ランダムな AEGIS-256 暗号化キーを生成する</li><li><a href="function.sodium-crypto-aead-aes256gcm-decrypt.php">sodium_crypto_aead_aes256gcm_decrypt</a> — AES-256-GCM を用いてメッセージを検証し、復号する</li><li><a href="function.sodium-crypto-aead-aes256gcm-encrypt.php">sodium_crypto_aead_aes256gcm_encrypt</a> — AES-256-GCM を使って暗号化し、認証を行う</li><li><a href="function.sodium-crypto-aead-aes256gcm-is-available.php">sodium_crypto_aead_aes256gcm_is_available</a> — ハードウェアが AES256-GCM をサポートしているかを確認する</li><li><a href="function.sodium-crypto-aead-aes256gcm-keygen.php">sodium_crypto_aead_aes256gcm_keygen</a> — ランダムな AES-256-GCM 暗号化キーを生成する</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-decrypt.php">sodium_crypto_aead_chacha20poly1305_decrypt</a> — ChaCha20-Poly1305 を用いてメッセージを検証し、復号する</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-encrypt.php">sodium_crypto_aead_chacha20poly1305_encrypt</a> — ChaCha20-Poly1305 を使って暗号化し、認証を行う</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-ietf-decrypt.php">sodium_crypto_aead_chacha20poly1305_ietf_decrypt</a> — 暗号化されたテキストが、有効なタグを持っているかを調べる</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-ietf-encrypt.php">sodium_crypto_aead_chacha20poly1305_ietf_encrypt</a> — メッセージを暗号化する</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-ietf-keygen.php">sodium_crypto_aead_chacha20poly1305_ietf_keygen</a> — ランダムな ChaCha20-Poly1305 (IETF) 暗号化キーを生成する</li><li><a href="function.sodium-crypto-aead-chacha20poly1305-keygen.php">sodium_crypto_aead_chacha20poly1305_keygen</a> — ランダムな ChaCha20-Poly1305 暗号化キーを生成する</li><li><a href="function.sodium-crypto-aead-xchacha20poly1305-ietf-decrypt.php">sodium_crypto_aead_xchacha20poly1305_ietf_decrypt</a> — XChaCha20-Poly1305 を用いてメッセージを検証し、復号する(AEADモードのうちもっとも好ましい)</li><li><a href="function.sodium-crypto-aead-xchacha20poly1305-ietf-encrypt.php">sodium_crypto_aead_xchacha20poly1305_ietf_encrypt</a> — XChaCha20-Poly1305 を使って暗号化し、認証を行う(AEADモードのうちもっとも好ましい)</li><li><a href="function.sodium-crypto-aead-xchacha20poly1305-ietf-keygen.php">sodium_crypto_aead_xchacha20poly1305_ietf_keygen</a> — ランダムな XChaCha20-Poly1305 暗号化キーを生成する</li><li><a href="function.sodium-crypto-auth.php">sodium_crypto_auth</a> — メッセージに対応するタグを計算する</li><li><a href="function.sodium-crypto-auth-keygen.php">sodium_crypto_auth_keygen</a> — sodium_crypto_auth で使う、ランダムな鍵を生成する</li><li><a href="function.sodium-crypto-auth-verify.php">sodium_crypto_auth_verify</a> — メッセージのタグが有効かどうかを検証する</li><li><a href="function.sodium-crypto-box.php">sodium_crypto_box</a> — 認証付きの公開鍵による暗号化</li><li><a href="function.sodium-crypto-box-keypair.php">sodium_crypto_box_keypair</a> — 秘密鍵と、それに対応する公開鍵をランダムに生成する</li><li><a href="function.sodium-crypto-box-keypair-from-secretkey-and-publickey.php">sodium_crypto_box_keypair_from_secretkey_and_publickey</a> — 秘密鍵と公開鍵から、鍵ペアを生成する</li><li><a href="function.sodium-crypto-box-open.php">sodium_crypto_box_open</a> — 認証付きの公開鍵による復号</li><li><a href="function.sodium-crypto-box-publickey.php">sodium_crypto_box_publickey</a> — crypto_box 鍵ペアから、公開鍵を取り出す</li><li><a href="function.sodium-crypto-box-publickey-from-secretkey.php">sodium_crypto_box_publickey_from_secretkey</a> — 秘密鍵から公開鍵を計算する</li><li><a href="function.sodium-crypto-box-seal.php">sodium_crypto_box_seal</a> — 匿名の公開鍵暗号による暗号化</li><li><a href="function.sodium-crypto-box-seal-open.php">sodium_crypto_box_seal_open</a> — 匿名の公開鍵暗号による復号</li><li><a href="function.sodium-crypto-box-secretkey.php">sodium_crypto_box_secretkey</a> — crypto_box 鍵ペアから、秘密鍵を取り出す</li><li><a href="function.sodium-crypto-box-seed-keypair.php">sodium_crypto_box_seed_keypair</a> — 単一の鍵から、結果がひとつに定まる鍵ペアを派生させる</li><li><a href="function.sodium-crypto-core-ristretto255-add.php">sodium_crypto_core_ristretto255_add</a> — 要素を追加する</li><li><a href="function.sodium-crypto-core-ristretto255-from-hash.php">sodium_crypto_core_ristretto255_from_hash</a> — ベクトルをマップする</li><li><a href="function.sodium-crypto-core-ristretto255-is-valid-point.php">sodium_crypto_core_ristretto255_is_valid_point</a> — 座標が ristretto255 曲線上にあるかを調べる</li><li><a href="function.sodium-crypto-core-ristretto255-random.php">sodium_crypto_core_ristretto255_random</a> — ランダムな鍵を生成する</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-add.php">sodium_crypto_core_ristretto255_scalar_add</a> — スカラー値を追加する</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-complement.php">sodium_crypto_core_ristretto255_scalar_complement</a> — The sodium_crypto_core_ristretto255_scalar_complement purpose</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-invert.php">sodium_crypto_core_ristretto255_scalar_invert</a> — スカラー値を反転させる</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-mul.php">sodium_crypto_core_ristretto255_scalar_mul</a> — スカラー値を乗算する</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-negate.php">sodium_crypto_core_ristretto255_scalar_negate</a> — スカラー値の論理否定を行う</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-random.php">sodium_crypto_core_ristretto255_scalar_random</a> — ランダムな鍵を生成する</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-reduce.php">sodium_crypto_core_ristretto255_scalar_reduce</a> — スカラー値を縮小する</li><li><a href="function.sodium-crypto-core-ristretto255-scalar-sub.php">sodium_crypto_core_ristretto255_scalar_sub</a> — スカラー値を減らす</li><li><a href="function.sodium-crypto-core-ristretto255-sub.php">sodium_crypto_core_ristretto255_sub</a> — 要素の値を減らす</li><li><a href="function.sodium-crypto-generichash.php">sodium_crypto_generichash</a> — メッセージのハッシュ値を得る</li><li><a href="function.sodium-crypto-generichash-final.php">sodium_crypto_generichash_final</a> — ハッシュ値を計算する</li><li><a href="function.sodium-crypto-generichash-init.php">sodium_crypto_generichash_init</a> — ストリーミングのためにハッシュを初期化する</li><li><a href="function.sodium-crypto-generichash-keygen.php">sodium_crypto_generichash_keygen</a> — ランダムなハッシュキーを生成する</li><li><a href="function.sodium-crypto-generichash-update.php">sodium_crypto_generichash_update</a> — メッセージをハッシュに追加する</li><li><a href="function.sodium-crypto-kdf-derive-from-key.php">sodium_crypto_kdf_derive_from_key</a> — サブキーを派生させる</li><li><a href="function.sodium-crypto-kdf-keygen.php">sodium_crypto_kdf_keygen</a> — KDF インターフェイスのために、ランダムなルートキーを生成する</li><li><a href="function.sodium-crypto-kx-client-session-keys.php">sodium_crypto_kx_client_session_keys</a> — クライアント側のセッションキーを計算する</li><li><a href="function.sodium-crypto-kx-keypair.php">sodium_crypto_kx_keypair</a> — 新しい sodium の鍵ペアを生成する</li><li><a href="function.sodium-crypto-kx-publickey.php">sodium_crypto_kx_publickey</a> — crypto_kx 鍵ペアから、公開鍵を取り出す</li><li><a href="function.sodium-crypto-kx-secretkey.php">sodium_crypto_kx_secretkey</a> — crypto_kx 鍵ペアから、秘密鍵を取り出す</li><li><a href="function.sodium-crypto-kx-seed-keypair.php">sodium_crypto_kx_seed_keypair</a> — Description</li><li><a href="function.sodium-crypto-kx-server-session-keys.php">sodium_crypto_kx_server_session_keys</a> — サーバー側のセッションキーを計算する</li><li><a href="function.sodium-crypto-pwhash.php">sodium_crypto_pwhash</a> — Argon2 アルゴリズムを使い、パスワードからキーを導出する</li><li><a href="function.sodium-crypto-pwhash-scryptsalsa208sha256.php">sodium_crypto_pwhash_scryptsalsa208sha256</a> — scrypt を使い、パスワードからキーを導出する</li><li><a href="function.sodium-crypto-pwhash-scryptsalsa208sha256-str.php">sodium_crypto_pwhash_scryptsalsa208sha256_str</a> — ASCII 文字列でエンコードされたハッシュを得る</li><li><a href="function.sodium-crypto-pwhash-scryptsalsa208sha256-str-verify.php">sodium_crypto_pwhash_scryptsalsa208sha256_str_verify</a> — パスワードが、有効なパスワード検証文字列かを調べる</li><li><a href="function.sodium-crypto-pwhash-str.php">sodium_crypto_pwhash_str</a> — ASCII 文字でエンコードされたハッシュ値を得る</li><li><a href="function.sodium-crypto-pwhash-str-needs-rehash.php">sodium_crypto_pwhash_str_needs_rehash</a> — パスワードを再計算する必要があるかを判定する</li><li><a href="function.sodium-crypto-pwhash-str-verify.php">sodium_crypto_pwhash_str_verify</a> — パスワードが、ハッシュ値と一致するかを調べる</li><li><a href="function.sodium-crypto-scalarmult.php">sodium_crypto_scalarmult</a> — ユーザーの秘密鍵と、別のユーザーの公開鍵を使って、共有シークレットを計算する</li><li><a href="function.sodium-crypto-scalarmult-base.php">sodium_crypto_scalarmult_base</a> — sodium_crypto_box_publickey_from_secretkey のエイリアス</li><li><a href="function.sodium-crypto-scalarmult-ristretto255.php">sodium_crypto_scalarmult_ristretto255</a> — 共有シークレットを計算する</li><li><a href="function.sodium-crypto-scalarmult-ristretto255-base.php">sodium_crypto_scalarmult_ristretto255_base</a> — 秘密鍵から公開鍵を計算する</li><li><a href="function.sodium-crypto-secretbox.php">sodium_crypto_secretbox</a> — 認証付きの共有鍵による暗号化</li><li><a href="function.sodium-crypto-secretbox-keygen.php">sodium_crypto_secretbox_keygen</a> — sodium_crypto_secretbox で使うランダムな鍵を生成する</li><li><a href="function.sodium-crypto-secretbox-open.php">sodium_crypto_secretbox_open</a> — 認証付きの共有鍵による復号</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-init-pull.php">sodium_crypto_secretstream_xchacha20poly1305_init_pull</a> — 復号のためのシークレットストリームのコンテキストを初期化する</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-init-push.php">sodium_crypto_secretstream_xchacha20poly1305_init_push</a> — 暗号化のために、シークレットストリームのコンテキストを初期化する</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-keygen.php">sodium_crypto_secretstream_xchacha20poly1305_keygen</a> — ランダムなシークレットストリームのキーを生成する</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-pull.php">sodium_crypto_secretstream_xchacha20poly1305_pull</a> — 暗号化されたストリームから、データのチャンクを複号する</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-push.php">sodium_crypto_secretstream_xchacha20poly1305_push</a> — ストリーミングAPI で安全に復号できるように、データのチャンクを暗号化する</li><li><a href="function.sodium-crypto-secretstream-xchacha20poly1305-rekey.php">sodium_crypto_secretstream_xchacha20poly1305_rekey</a> — シークレットストリームのステート中で、鍵を入れ替える</li><li><a href="function.sodium-crypto-shorthash.php">sodium_crypto_shorthash</a> — メッセージと鍵のための短いハッシュ値を計算する</li><li><a href="function.sodium-crypto-shorthash-keygen.php">sodium_crypto_shorthash_keygen</a> — 鍵のためのランダムなバイト値を得る</li><li><a href="function.sodium-crypto-sign.php">sodium_crypto_sign</a> — メッセージに署名する</li><li><a href="function.sodium-crypto-sign-detached.php">sodium_crypto_sign_detached</a> — メッセージに署名する</li><li><a href="function.sodium-crypto-sign-ed25519-pk-to-curve25519.php">sodium_crypto_sign_ed25519_pk_to_curve25519</a> — Ed25519 公開鍵を、Curve25519 公開鍵に変換する</li><li><a href="function.sodium-crypto-sign-ed25519-sk-to-curve25519.php">sodium_crypto_sign_ed25519_sk_to_curve25519</a> — Ed25519 秘密鍵を、Curve25519 秘密鍵に変換する</li><li><a href="function.sodium-crypto-sign-keypair.php">sodium_crypto_sign_keypair</a> — 秘密鍵と、対応する公開鍵をランダムに生成する</li><li><a href="function.sodium-crypto-sign-keypair-from-secretkey-and-publickey.php">sodium_crypto_sign_keypair_from_secretkey_and_publickey</a> — 秘密鍵と公開鍵を結合する</li><li><a href="function.sodium-crypto-sign-open.php">sodium_crypto_sign_open</a> — 署名済みのメッセージが、有効な署名を持っているかを調べる</li><li><a href="function.sodium-crypto-sign-publickey.php">sodium_crypto_sign_publickey</a> — 鍵ペアから、Ed25519 形式の公開鍵を取り出す</li><li><a href="function.sodium-crypto-sign-publickey-from-secretkey.php">sodium_crypto_sign_publickey_from_secretkey</a> — 秘密鍵から、Ed25519 形式の公開鍵を取り出す</li><li><a href="function.sodium-crypto-sign-secretkey.php">sodium_crypto_sign_secretkey</a> — 鍵ペアから、Ed25519 形式の秘密鍵を取り出す</li><li><a href="function.sodium-crypto-sign-seed-keypair.php">sodium_crypto_sign_seed_keypair</a> — 単一の鍵から、結果がひとつに定まる鍵ペアを派生させる</li><li><a href="function.sodium-crypto-sign-verify-detached.php">sodium_crypto_sign_verify_detached</a> — メッセージの署名を検証する</li><li><a href="function.sodium-crypto-stream.php">sodium_crypto_stream</a> — シードから、結果がひとつに定まるバイト列を生成する</li><li><a href="function.sodium-crypto-stream-keygen.php">sodium_crypto_stream_keygen</a> — sodium_crypto_stream で用いる、ランダムな鍵を生成する</li><li><a href="function.sodium-crypto-stream-xchacha20.php">sodium_crypto_stream_xchacha20</a> — 秘密鍵と nonce を、疑似ランダムなバイト列の鍵ストリームに展開する</li><li><a href="function.sodium-crypto-stream-xchacha20-keygen.php">sodium_crypto_stream_xchacha20_keygen</a> — ランダムな暗号化キーを生成する</li><li><a href="function.sodium-crypto-stream-xchacha20-xor.php">sodium_crypto_stream_xchacha20_xor</a> — nonce と秘密鍵を使ってメッセージを暗号化する(認証なし)</li><li><a href="function.sodium-crypto-stream-xchacha20-xor-ic.php">sodium_crypto_stream_xchacha20_xor_ic</a> — nonce と秘密鍵を使ってメッセージを暗号化する(認証なし)</li><li><a href="function.sodium-crypto-stream-xor.php">sodium_crypto_stream_xor</a> — 認証を行わずにメッセージを暗号化する</li><li><a href="function.sodium-hex2bin.php">sodium_hex2bin</a> — 16進エンコードされたバイナリ文字列をデコードする</li><li><a href="function.sodium-increment.php">sodium_increment</a> — 巨大な数をインクリメントする</li><li><a href="function.sodium-memcmp.php">sodium_memcmp</a> — 定数時間での文字列の比較</li><li><a href="function.sodium-memzero.php">sodium_memzero</a> — 文字列をNUL文字で上書きする</li><li><a href="function.sodium-pad.php">sodium_pad</a> — パディングデータを追加する</li><li><a href="function.sodium-unpad.php">sodium_unpad</a> — パディングを削除する</li></ul>
</div>
<?php manual_footer($setup); ?>