* Copyright (c) 2005-2006 Cryptocom LTD *
* This file is distributed under the same license as OpenSSL *
* *
- * Implementation of GOST R 34.10-94 signature algoritgthm *
+ * Implementation of GOST R 34.10-94 signature algorithm *
* for OpenSSL *
* Requires OpenSSL 0.9.9 for compilation *
**********************************************************************/
* Packs signature according to Cryptocom rules
* and frees up DSA_SIG structure
*/
-
+/*
int pack_sign_cc(DSA_SIG *s,int order,unsigned char *sig, size_t *siglen)
{
*siglen = 2*order;
DSA_SIG_free(s);
return 1;
}
+*/
/*
* Packs signature according to Cryptopro rules
* and frees up DSA_SIG structure
BN_CTX *ctx = BN_CTX_new();
if (!dsa->g)
{
- GOSTerr(GOST_F_GOST_COMPUTE_PUBLIC,GOST_R_KEY_IS_NOT_INITALIZED);
+ GOSTerr(GOST_F_GOST94_COMPUTE_PUBLIC,GOST_R_KEY_IS_NOT_INITALIZED);
return 0;
}
/* Compute public key y = a^x mod p */
}
/* Unpack signature according to cryptocom rules */
-
+/*
DSA_SIG *unpack_cc_signature(const unsigned char *sig,size_t siglen)
{
DSA_SIG *s;
s->s = getbnfrombuf(sig + siglen/2, siglen/2);
return s;
}
-
+*/
/* Unpack signature according to cryptopro rules */
DSA_SIG *unpack_cp_signature(const unsigned char *sig,size_t siglen)
{