pike.git/
lib/
modules/
Crypto.pmod/
DSA.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2015-04-28
2015-04-28 12:41:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>
5490bd5eaf3ac70c582112a2b89e6a17e4bcddd1 (
6
lines) (+
5
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
Crypto.DSA: Fixed warning with old Nettle. Fixes some of [bug
7469 (#7469)
].
132:
string(8bit) h = [string(8bit)] (nist_hash(s) ^ nist_hash( [object(Gmp.mpz)](s + 1) ));
-
h = sprintf("%c%s%c", h[0] | 0x80, h[1..<1], h[-1] | 1);
+
h = sprintf("%c%s%c",
+
[int(8bit)](
h[0] | 0x80
)
,
+
h[1..<1],
+
[int(8bit)](
h[-1] | 1)
)
;
Gmp.mpz q = Gmp.mpz(h, 256);