Lines Matching refs:sha1
43 HASHContext *sha1;
52 sha1 = HASH_Create(HASH_AlgSHA1);
53 if (!sha1) {
59 HASH_Begin(sha1);
60 HASH_Update(sha1, key, key_len);
61 HASH_End(sha1, ikey, &res_len, SSS_SHA1_LENGTH);
77 HASH_Begin(sha1);
78 HASH_Update(sha1, ikey, HMAC_SHA1_BLOCKSIZE);
79 HASH_Update(sha1, in, in_len);
80 HASH_End(sha1, hash, &res_len, SSS_SHA1_LENGTH);
82 HASH_Begin(sha1);
83 HASH_Update(sha1, okey, HMAC_SHA1_BLOCKSIZE);
84 HASH_Update(sha1, hash, SSS_SHA1_LENGTH);
85 HASH_End(sha1, out, &res_len, SSS_SHA1_LENGTH);
87 HASH_Destroy(sha1);