Lines Matching refs:sig
181 keynote_get_sig_algorithm(char *sig, int *hash, int *enc, int *internal)
183 if (sig == NULL)
186 if (!strncasecmp(SIG_DSA_SHA1_HEX, sig, SIG_DSA_SHA1_HEX_LEN))
194 if (!strncasecmp(SIG_DSA_SHA1_BASE64, sig, SIG_DSA_SHA1_BASE64_LEN))
202 if (!strncasecmp(SIG_RSA_MD5_PKCS1_HEX, sig, SIG_RSA_MD5_PKCS1_HEX_LEN))
210 if (!strncasecmp(SIG_RSA_SHA1_PKCS1_HEX, sig, SIG_RSA_SHA1_PKCS1_HEX_LEN))
218 if (!strncasecmp(SIG_RSA_MD5_PKCS1_BASE64, sig,
227 if (!strncasecmp(SIG_RSA_SHA1_PKCS1_BASE64, sig,
236 if (!strncasecmp(SIG_X509_SHA1_BASE64, sig, SIG_X509_SHA1_BASE64_LEN))
244 if (!strncasecmp(SIG_X509_SHA1_HEX, sig, SIG_X509_SHA1_HEX_LEN))
634 unsigned char *sig, *decoded = NULL, *ptr;
660 sig = strchr(as->as_signature, ':'); /* Move forward to the Encoding. We
664 sig++;
675 (char *) sig - as->as_signature);
686 (char *) sig - as->as_signature);
702 len = strlen(sig) / 2;
703 if (kn_decode_hex(sig, (char **) &decoded) != 0)
709 len = strlen(sig);
724 len = kn_decode_base64(sig, decoded, len);
731 if ((decoded = strdup(sig)) == NULL) {
735 len = strlen(sig);
790 unsigned char *sig = NULL, *finalbuf = NULL;
828 sig = strchr(sigalg, ':');
829 if (sig == NULL)
835 sig++;
845 SHA1_Update(&shscontext, sigalg, (char *) sig - sigalg);
855 MD5_Update(&md5context, sigalg, (char *) sig - sigalg);
1059 char *s, *sig;
1111 sig = keynote_sign_assertion(as, sigalg, dc.dec_key, dc.dec_algorithm,
1118 return sig;