search for: sha1_upd

Displaying 7 results from an estimated 7 matches for "sha1_upd".

Did you mean: sha1_end
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published -@@ -381,7 +382,7 @@ static int encode_message(int type, uint - msg[0] = 0x00; - get_random_bytes(&msg[1], SHA1_DIGEST_LENGTH); - sha1_init(&ctx); -- sha1_update(&ctx, "TCPA", 4); -+ sha1_update(&ctx, (uint8_t *) "TCPA", 4); - sha1_final(&ctx, &msg[1 + SHA1_DIGEST_LENGTH]); - memset(&msg[1 + 2 * SHA1_DIGEST_LENGTH], 0x00, - msg_len - data_len - 2 * SHA1_DIGEST_LENGTH - 2); -@@ -429,7 +430,7...
2000 Jul 02
2
``portability'' patch for OpenSSH S/Key support
...t;openssl/sha.h> /* from %OpenBSD: skeylogin.c,v 1.32 1999/08/16 14:46:56 millert Exp % */ @@ -74,7 +74,6 @@ size_t secretlen = 0; SHA_CTX ctx; char *p, *u; - char md[SHA_DIGEST_LENGTH]; /* * Base first 4 chars of seed on hostname. @@ -99,7 +98,7 @@ SHA1_Init(&ctx); SHA1_Update(&ctx, username, strlen(username)); - SHA1_End(&ctx, up); + SHA1_Final(up, &ctx); /* Collapse the hash */ ptr = hash_collapse(up); @@ -133,7 +132,7 @@ SHA1_Init(&ctx); SHA1_Update(&ctx, secret, secretlen); SHA1_Update(&ctx, username, strlen(username)); -...
2008 May 16
0
cfservd crashing on 7.0
...01500 (LWP 100723)] [New Thread 0x28501c00 (LWP 100289)] [New Thread 0x28501a00 (LWP 100722)] [New Thread 0x28501900 (LWP 100505)] [New Thread 0x28501400 (LWP 100726)] [New Thread 0x28501100 (LWP 100614)] (gdb) bt #0 0x283214e0 in sha1_block_data_order () from /lib/libcrypto.so.5 #1 0x28323112 in SHA1_Update () from /lib/libcrypto.so.5 #2 0x283114fe in EVP_sha512 () from /lib/libcrypto.so.5 #3 0x2952e080 in ?? () #4 0x28391cf4 in ?? () from /lib/libcrypto.so.5 #5 0xffffff6b in ?? () #6 0x28311b65 in EVP_DigestInit_ex () from /lib/libcrypto.so.5 #7 0x2831161f in EVP_DigestUpdate () from /lib/li...
2020 Feb 09
2
[RFC PATCH] Add SHA1 support
...X sha1; + }; +}; + void md5_begin(md_context *ctx); void md5_update(md_context *ctx, const uchar *input, uint32 length); void md5_result(md_context *ctx, uchar digest[MD5_DIGEST_LEN]); -void get_md5(uchar digest[MD5_DIGEST_LEN], const uchar *input, int n); +void sha1_begin(SHA_CTX *ctx); +void sha1_update(SHA_CTX *ctx, const void *input, unsigned int length); +void sha1_result(SHA_CTX *ctx, void *digest); + +#define MDLIB_MD_CTX struct md_lib_ctx + +#define mdlib_initialize() do { } while (0) + +#define mdlib_new_ctx() malloc(sizeof(struct md_lib_ctx)) +#define mdlib_free_ctx(_ctx) free(_ct...
2008 Apr 21
3
FIPS 140-2 OpenSSL(2007) patches
...t); @@ -291,9 +300,25 @@ cipher_set_key_string(CipherContext *cc, Cipher *cipher, const char *passphrase, int do_encrypt) { +#ifdef OPENSSL_FIPS + SHA_CTX sha; +#endif MD5_CTX md; - u_char digest[16]; + u_char digest[20]; +#ifdef OPENSSL_FIPS + if (fips_mode) { + SHA1_Init(&sha); + SHA1_Update(&sha, (const u_char *)passphrase, strlen(passphrase)); + SHA1_Final(digest, &sha); + + cipher_init(cc, cipher, digest, 20, NULL, 0, do_encrypt); + + memset(digest, 0, sizeof(digest)); + memset(&sha, 0, sizeof(sha)); + return; + } +#endif MD5_Init(&md); MD5_Update(&m...
2005 Aug 09
2
error compiling asterisk on solaris
...to `i2d_ASN1_INTEGER' /usr/local/ssl/lib/libssl.so: undefined reference to `lh_doall_arg' /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_set_ex_data' /usr/local/ssl/lib/libssl.so: undefined reference to `BIO_printf' /usr/local/ssl/lib/libssl.so: undefined reference to `SHA1_Update' /usr/local/ssl/lib/libssl.so: undefined reference to `CRYPTO_lock' /usr/local/ssl/lib/libssl.so: undefined reference to `DSA_verify' /usr/local/ssl/lib/libssl.so: undefined reference to `sk_pop_free' /usr/local/ssl/lib/libssl.so: undefined reference to `SHA1_Final' /usr/loca...
2018 Dec 06
3
Build error while upgrading samba 4.9.3
...: not found Checking for header CommonCrypto/CommonDigest.h : no Checking for header CommonCrypto/CommonDigest.h : no Checking for macro CC_MD5_Init : not found Checking for SHA1_Update : not found Checking for macro SHA1_Update : not found Checking for SHA256_Update : not found Checking for macro SHA256_Update...