以下は JE2BWM ほかが作成した翻訳 です。 原文は University of California より GFDL で配付されており、 この翻訳も GFDL に従います。
原文: The encryption utility   (翻訳対象の更新日付は 7:31 PM UTC, February 17 2006 です)。

暗号化ユーティリティ

boinc.gif
(英語のみ)

プログラム lib/crypt_prog は、種々の暗号化処理を実行します。

crypt_prog は、Unix システムで標準的な手順でビルドされます。 Windows の上でも(Visual Studio 2003 を使って) ビルドできます。 そのときは、プロジェクトファイルwin_build/crypt_prog.vcproj を使います。

秘密鍵の生成

crypt_prog -genkey n private_keyfile public_keyfile
n ビットの長さの鍵ペアを作ります。 (いつも、長さ n には 1024 を使って下さい)。 生成した鍵ペアは ASCII 形式で符号化され、指定した2つのファイル(秘密鍵は private_keyfile へ、 公開鍵は public_keyfile へ)書き出されます。

暗号化鍵の作成

下記のコマンド使って、ファイル・アップロードとコード署名のための 鍵ペアを作成します。 鍵は BOINC_KEY_DIR というディレクトリに格納されます。 コードに署名するための秘密鍵は、安全性がとくに高いホスト (つまり、[ネットワークから] 隔離され、物理的に安全な場所にあるホスト) にだけ、格納するべきです。
crypt_prog -genkey 1024 BOINC_KEY_DIR/upload_private BOINC_KEY_DIR/upload_public
crypt_prog -genkey 1024 BOINC_KEY_DIR/code_sign_private BOINC_KEY_DIR/code_sign_public
とコマンドを打つか、あるいは、test/ ディレクトリで、下記を実行します。
gen_keys.php

署名を生成する

crypt_prog -sign file private_keyfile
指定したファイルのデジタル署名を作成します。 ASCII形式で符号化された結果が、標準出力(stdout)に書き出されます。
crypt_prog -sign_string string private_keyfile
指定した文字列(string) のデジタル署名を作成します。 ASCII形式で符号化された結果が、標準出力(stdout)に書き出されます。
crypt_prog -verify file signature_file public_keyfile
指定したファイルの署名を検証します。
crypt_prog -test_crypt private_keyfile public_keyfile
暗号化したものが復号化できるか、という内部テストを実行します。

 


BOINCの訳のメインページに戻る | (原文のメインページに戻る)
 

最終更新時刻 00:49:16, 2006年08月12日(JST)
Copyright © 2009 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
Copyright © 2009 Komori Hitoshi(je2bwm at jarl.com). Japanese translation from English web pages on BOINC. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.