yaSSL 1.9.8 ビルドメモ

yaSSL が更新され,4番と5番の手順が不要になった.

yaSSL って日本語情報少ないなあ - BiBoLoG でビルドできないなあとぼやいたが,出来るようになった.

環境

yaSSL

Cyassl and yaSSL are embedded SSL Libraries for programmers building security functionality into their applications and devices. Both products employ the dual licensing model, like MySQL, so they are available under the open source GPLv2 as well as a standard commercial license. Support and consulting are also available. If you have an interest in porting yaSSL to an operating environment or open source application we currently don't support, then please contact us, we'll be happy to support you.

wolfSSL Embedded SSL/TLS Library | Now Supporting TLS 1.3
  1. Download から GPL Download of yaSSL version 1.9.8 (complete) 10/14/09 を選ぶ
  2. yassl-1.9.8.zip を適当なところに展開する
    • C:\Software\Develop\src\yassl-1.9.8
  3. yassl.sln を VC++ で開く
    • VC9 形式に変換する
  4. taocrypt プロジェクトで Header に hc128.hpp と rabbit.hpp を追加する
  5. taocrypt プロジェクトで Source に hc128.cpp と rabbit.cpp を追加する
  6. メニューバー「ビルド」から「バッチビルド」を選び,「すべて選択」し「ビルド」する
    • うまくいかなかったら自己解決に励む
  7. testsuite プロジェクトをスタートアッププロジェクトにして,実行する
    • すぐにプロンプトが消えるだろうから,デバッグしないで実行する

testsuite の出力

SHA      test passed!
SHA-256  test passed!
SHA-224  test passed!
SHA-512  test passed!
SHA-384  test passed!
MD5      test passed!
MD2      test passed!
MD4      test passed!
RIPEMD   test passed!
HMAC     test passed!
ARC4     test passed!
Rabbit   test passed!
HC128    test passed!
DES      test passed!
AES      test passed!
Twofish  test passed!
Blowfish test passed!
RSA      test passed!
DH       test passed!
DSA      test passed!
PBKDF2   test passed!
peer's cert info:
 issuer : /C=US/ST=Oregon/L=Portland/O=yaSSL/CN=www.yassl.com/emailAddress=info@
yassl.com
 subject: /C=US/ST=Oregon/L=Portland/O=yaSSL/CN=www.yassl.com/emailAddress=info@
yassl.com
peer's cert info:
 issuer : /C=US/ST=Oregon/L=Portland/O=sawtooth/CN=www.sawtooth-consulting.com/e
mailAddress=info@yassl.com
 subject: /C=US/ST=Oregon/L=Portland/O=taoSoftDev/CN=www.taosoftdev.com/emailAdd
ress=info@yassl.com
Using Cipher Suite: DHE-RSA-AES256-SHA
cipherlist:DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA:DHE-RSA-AES128-SHA:D
HE-DSS-AES128-SHA:AES128-SHA:AES256-RMD:AES128-RMD:DES-CBC3-RMD:DHE-RSA-AES256-R
MD:DHE-RSA-AES128-RMD:DHE-RSA-DES-CBC3-RMD:DHE-DSS-AES256-RMD:DHE-DSS-AES128-RMD
:DHE-DSS-DES-CBC3-RMD:RC4-SHA:RC4-MD5:DES-CBC3-SHA:DES-CBC-SHA:EDH-RSA-DES-CBC3-
SHA:EDH-DSS-DES-CBC3-SHA:EDH-RSA-DES-CBC-SHA:EDH-DSS-DES-CBC-SHA
Using Cipher Suite: DHE-RSA-AES256-SHA
First client command: hello yassl!
Server response: I hear you, fa shizzle!
sending server shutdown command: quit!
client sent quit command: shutting down!
17835f16a6f21ffec09d13b4896c3915  input
17835f16a6f21ffec09d13b4896c3915  output

All tests passed!

ビルドした後どうしよう

ぼく暗号やメッセージダイジェストが使えたらいいし,taocrypt だけでいいや.

  • taocrypt/include を c:\software\develop\taocrypt にコピーして VC++ に include を登録
  • taocrypt/release/taocrypt.lib を c:\software\develop\taocrypt\lib にコピーして VC++ にlib を登録

たぶんこれでいける.