Branch: Tag:

2013-12-19

2013-12-19 21:10:36 by Martin Nilsson <nilsson@opera.com>

sprintf type fixes.

222:      #endif    + #if WORKING_VARIANT   //! Compatibility with Pike 7.8.   variant __deprecated__ this_program generate_key(int(128..) bits,    function(int:string(8bit)) rnd)
232:    random = old_rnd;    return res;   } + #endif      //   // --- PKCS methods
480:      __deprecated__ string(8bit) sha_sign(string(8bit) message, mixed|void r)   { -  string(8bit) s = [string(8bit)]sprintf("%c%s%1H", 4, "sha1", -  Crypto.SHA1->hash(message)); +  string(8bit) s = sprintf("%c%s%1H", 4, "sha1", Crypto.SHA1->hash(message));    return raw_sign(s)->digits(256);r;   }      __deprecated__ int sha_verify(string(8bit) message, string(8bit) signature)   { -  string(8bit) s = [string(8bit)]sprintf("%c%s%1H", 4, "sha1", -  Crypto.SHA1->hash(message)); +  string(8bit) s = sprintf("%c%s%1H", 4, "sha1", Crypto.SHA1->hash(message));    return raw_verify(s, Gmp.mpz(signature, 256));   }