Displaying 3 results from an estimated 3 matches for "datlen".
Did you mean:
datalen
2011 Jan 28
2
klibc 1.5.21-1 and mksh
...<< 10; \
++ (h) ^= (h) >> 6; \
++ } \
++} while (/* CONSTCOND */ 0)
++#define OAAT_Final(h) do { \
++ (h) += (h) << 3; \
++ (h) ^= (h) >> 11; \
++ (h) += (h) << 15; \
++} while (/* CONSTCOND */ 0)
++
++void
++arc4random_addrandom(unsigned char *dat, int datlen)
++{
++ register uint32_t h;
++ struct {
++ struct timeval tv; /* brings variety if not entropy */
++ const void *sp; /* stack is randomised by kernel */
++ uint32_t v; /* datlen on first pass */
++ } additional_data;
++
++ gettimeofday(&additional_data.tv, NULL);
++ additional_data.sp = &...
2013 Jun 25
1
RFC: encrypted hostkeys patch
...nswer_sign(int sock, Buffer *m)
{
@@ -714,10 +717,16 @@ mm_answer_sign(int sock, Buffer *m)
memcpy(session_id2, p, session_id2_len);
}
- if ((key = get_hostkey_by_index(keyid)) == NULL)
+ if ((key = get_hostkey_by_index(keyid)) != NULL) {
+ if (key_sign(key, &signature, &siglen, p, datlen) < 0)
+ fatal("%s: key_sign failed", __func__);
+ } else if ((key = get_hostkey_public_by_index(keyid)) != NULL &&
+ auth_conn != NULL) {
+ if (ssh_agent_sign(auth_conn, key, &signature, &siglen, p,
+ datlen) < 0)
+ fatal("%s: ssh_agent_sign failed...
2003 Oct 08
4
OS/390 openssh
...iff -bur openssh-3.7.1p2.orig/monitor.c openssh-3.7.1p2/monitor.c
--- openssh-3.7.1p2.orig/monitor.c Tue Sep 2 23:32:46 2003
+++ openssh-3.7.1p2/monitor.c Tue Oct 7 08:22:01 2003
@@ -507,7 +507,7 @@
debug3("%s", __func__);
keyid = buffer_get_int(m);
- p = buffer_get_string(m, &datlen);
+ p = buffer_get_binary(m, &datlen);
if (datlen != 20)
fatal("%s: data length incorrect: %u", __func__, datlen);
@@ -527,7 +527,7 @@
debug3("%s: signature %p(%u)", __func__, signature, siglen);
buffer_clear(m);
- buffer_put_string(m, signature, siglen);
+ buff...