pike.git / lib / modules / Crypto.pmod / RSA.pike

version» Context lines:

pike.git/lib/modules/Crypto.pmod/RSA.pike:432:    string s = sprintf("%c%s%1H", 4, "sha1", Crypto.SHA1->hash(message));    return raw_sign(s)->digits(256);r;   }      __deprecated__ int sha_verify(string message, string signature)   {    string s = sprintf("%c%s%1H", 4, "sha1", Crypto.SHA1->hash(message));    return raw_verify(s, Gmp.mpz(signature, 256));   }    + __deprecated__ Gmp.mpz sign(string message, .Hash h) + { +  return raw_sign(Standards.PKCS.Signature.build_digestinfo(message, h)); + } +  + __deprecated__ int(0..1) verify(string message, .Hash h, Gmp.mpz sign) + { +  return raw_verify(Standards.PKCS.Signature.build_digestinfo(message, h), sign); + } +    #else   constant this_program_does_not_exist=1;   #endif