Mercurial > dropbear
comparison gendss.c @ 1094:c45d65392c1a
Fix pointer differ in signess warnings [-Werror=pointer-sign]
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Sat, 02 May 2015 15:59:06 +0200 |
parents | 220f55d540ae |
children | 750ec4ec4cbe |
comparison
equal
deleted
inserted
replaced
1093:aae71c5f7d5b | 1094:c45d65392c1a |
---|---|
65 | 65 |
66 } | 66 } |
67 | 67 |
68 static void getq(dropbear_dss_key *key) { | 68 static void getq(dropbear_dss_key *key) { |
69 | 69 |
70 char buf[QSIZE]; | 70 unsigned char buf[QSIZE]; |
71 | 71 |
72 /* 160 bit prime */ | 72 /* 160 bit prime */ |
73 genrandom(buf, QSIZE); | 73 genrandom(buf, QSIZE); |
74 buf[0] |= 0x80; /* top bit high */ | 74 buf[0] |= 0x80; /* top bit high */ |
75 buf[QSIZE-1] |= 0x01; /* bottom bit high */ | 75 buf[QSIZE-1] |= 0x01; /* bottom bit high */ |