svnno****@sourc*****
svnno****@sourc*****
2014年 3月 16日 (日) 18:27:37 JST
Revision: 5541 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5541 Author: yutakapon Date: 2014-03-16 18:27:37 +0900 (Sun, 16 Mar 2014) Log Message: ----------- ECDSA秘密鍵ファイルの読み込み処理で、 bcrypt KDF 形式に対応した。 hash idとcipher idを取り違えていたのを修正した。 Modified Paths: -------------- branches/ssh_ed25519/ttssh2/ttxssh/key.c -------------- next part -------------- Modified: branches/ssh_ed25519/ttssh2/ttxssh/key.c =================================================================== --- branches/ssh_ed25519/ttssh2/ttxssh/key.c 2014-03-16 09:09:52 UTC (rev 5540) +++ branches/ssh_ed25519/ttssh2/ttxssh/key.c 2014-03-16 09:27:37 UTC (rev 5541) @@ -1722,10 +1722,10 @@ BIGNUM *exponent = NULL; EC_POINT *q = NULL; - nid = keytype_to_hash_nid(type); + nid = keytype_to_cipher_nid(type); curve = buffer_get_string_msg(blob, NULL); skt = key_curve_name_to_keytype(curve); - if (nid != keytype_to_hash_nid(skt)) + if (nid != keytype_to_cipher_nid(skt)) goto ecdsa_error; k->ecdsa = EC_KEY_new_by_curve_name(nid);