
Open SSL
文章平均质量分 71
sooner01
work hard, play hard
展开
-
有意思的中间人攻击
提到网络安全,不得不说说这个“中间人”攻击。 先讲个故事吧,2k年的时候很喜欢五子棋,不管上课下课找人就下,奈何周围高手甚众,屡战屡败,到263的网络游戏找菜鸟pk,也是败多胜少。于是在电脑上修炼,下个中级的电脑都很吃力。发现高级电脑计算精准,妙招频出,忽然想到个点子,可以用电脑帮我赢棋啊。操作如下: 到游戏室找人PK,让对方先手,同时自己先手与本机的高级电脑开局。我把网上对手的每一步原创 2008-07-12 16:09:00 · 1032 阅读 · 0 评论 -
BIO socket summary
Undoubtedly socket BIO is a splendid socket interface implemented in C language, to some extent it have Object Oriented Programming thinking in C language, and provides more OS compatibility. Well原创 2008-09-19 14:52:00 · 775 阅读 · 0 评论 -
The Implementation of ALG_DES_MAC8_ISO9797_1_M2_ALG3
In order to work with the Java Card, we need to implement the algorithm ALG_DES_MAC8_ISO9797_1_M2_ALG3 outside the card. Here is the instruction from Java Card Application Programming Interface:原创 2008-12-31 20:05:00 · 4673 阅读 · 0 评论 -
AES_ctr128
CTR is also an encryption mode, just use a counter as IV, and use IV’s cipher xor plain data by bytes.Cause x ^ y ^ y = x, we can see that the encrypt and decrypt function are the same. And as there原创 2008-11-27 21:18:00 · 6972 阅读 · 0 评论 -
Verify certificate with OPENSSL and CryptoAPI
Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 <!-- /*原创 2009-08-05 11:13:00 · 5795 阅读 · 1 评论 -
RSA in OPENSSL
Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 <!-- /* Fo原创 2009-08-06 16:01:00 · 14055 阅读 · 1 评论 -
Compile Open SSL in win NT/CE with VS2005
Well, with the commercial use of 3G,more and more application will flourish in the mobile platform. And most of theimplement is associated with security such as payment, E-bank, DRM and so on. So原创 2009-06-22 16:06:00 · 10493 阅读 · 4 评论 -
calling the OPENSSL libs in windows mobile
1. Steps to new a application a) New a smart device project b) Add additional include directory: ../celib; ../celib/openssl; ../celib/include; The last path is where the wcecompa原创 2009-07-02 17:51:00 · 2688 阅读 · 0 评论 -
RSA padding
Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 Accordingto PK原创 2010-02-04 15:18:00 · 2970 阅读 · 0 评论 -
Server socket BIO (BIO_s_accept)
BIO_s_accept can be used as an server socket object, and has it’s own data struct BIO_ACCEPT, which is stored in BIO.ptr. in the struct, a status value BIO_ACCEPT.state is introduced to record the cur原创 2008-09-10 08:44:00 · 2158 阅读 · 0 评论 -
ECC in OPEN SSL 1(background knowledge and data structure)
And still there is very little information on EC in OPEN SSL, I will explain more and give more code. Firstly introduce ECC(Elliptic Curve Cryptography), from the math book: In 1985, Elliptic原创 2008-09-02 17:47:00 · 1322 阅读 · 0 评论 -
Use EVP to generate random key and IV.
The EVP have provided a function EVP_BytesToKey() to generate session key and initial vector. And we can use the function to separate the input password to gain our secrete key or session key. And原创 2008-07-28 00:04:00 · 1253 阅读 · 0 评论 -
EVP cipher
Symmetric encryption with EVP Steps As follows: notes that cipher buffer length should be one block size longer. // 1, initial the CTX truct EVP_CIPHER_CTX_init(&ctx); // 2,原创 2008-07-28 00:14:00 · 3763 阅读 · 0 评论 -
EVP MD
Easy, nothing more to say.Sample code: const EVP_MD *md = EVP_sha1(); EVP_MD_CTX ctx; unsigned char md_buf[EVP_MAX_MD_SIZE]; unsigned int mdLen = 0; EVP_MD_CTX原创 2008-07-28 00:33:00 · 2929 阅读 · 0 评论 -
BIO md
A easier way to digest. Only notes that BIO_f_xx() algorithm is a filter BIO, can’t be used alone, you have to combine a BIO_s_xx() to go with it, which stands for a source BIO. Sample function c原创 2008-07-28 00:39:00 · 561 阅读 · 0 评论 -
BIO socket -- brief introduction
Well, it’s a little bit complicated and there are so little documents on socket BIO, so I will give more instruction and more sample codes. First introduce some key points. a) There are原创 2008-08-03 12:29:00 · 976 阅读 · 0 评论 -
BIO socket -- Client (BIO_s_connect)
BIO_s_connect can be used as an client socket object, and has its private data struct BIO_CONNECT, which is stored in BIO.ptr.In the struct, a status value int BIO_CONNECT.state is introduced to rec原创 2008-08-03 12:38:00 · 2129 阅读 · 0 评论 -
Memory leak control with hash table
It’s not an easy job, careful design and consideration is needed to make memory allocation and free robust and efficiency. Here just go through the way Open SSL conducting memory leak. Here just give原创 2008-08-26 17:29:00 · 697 阅读 · 0 评论 -
ECC in OPEN SSL 2(operations)
Key pair generation: 1, chooses a kind of Elliptic Curve. The OPEN provides 67 kinds of EC, and you can get the EC list by calling EC_get_builtin_curves(); 2, initial the group information,原创 2008-09-02 17:50:00 · 3420 阅读 · 0 评论 -
HMAC implementation based on OPENSSL, Crypto API(CSP) and third party algorithm library
HMAC implementation, OPENSSL, Crypto API(CSP), android native, windows mobile, Symbian原创 2011-03-30 16:55:00 · 1722 阅读 · 0 评论