Lines Matching refs:sig

142     unsigned char *sig;  member
677 unsigned char *sig, size_t *siglen, size_t sigsize, in rsa_sign_directly() argument
687 if (sig == NULL) { in rsa_sign_directly()
713 ret = RSA_sign_ASN1_OCTET_STRING(0, tbs, tbslen, sig, &sltmp, in rsa_sign_directly()
739 sig, prsactx->rsa, RSA_X931_PADDING); in rsa_sign_directly()
746 ret = RSA_sign(prsactx->mdnid, tbs, tbslen, sig, &sltmp, in rsa_sign_directly()
803 sig, prsactx->rsa, RSA_NO_PADDING); in rsa_sign_directly()
814 ret = RSA_private_encrypt(tbslen, tbs, sig, prsactx->rsa, in rsa_sign_directly()
848 static int rsa_sign_message_final(void *vprsactx, unsigned char *sig, in rsa_sign_message_final() argument
868 if (sig != NULL) { in rsa_sign_message_final()
881 return rsa_sign_directly(prsactx, sig, siglen, sigsize, digest, dlen); in rsa_sign_message_final()
888 static int rsa_sign(void *vprsactx, unsigned char *sig, size_t *siglen, in rsa_sign() argument
905 if (sig == NULL) in rsa_sign()
906 return rsa_sign_message_final(prsactx, sig, siglen, sigsize); in rsa_sign()
909 && rsa_sign_message_final(prsactx, sig, siglen, sigsize); in rsa_sign()
911 return rsa_sign_directly(prsactx, sig, siglen, sigsize, tbs, tbslen); in rsa_sign()
935 const unsigned char *sig, size_t siglen) in rsa_verify_recover() argument
953 ret = RSA_public_decrypt(siglen, sig, prsactx->tbuf, prsactx->rsa, in rsa_verify_recover()
988 sig, siglen, prsactx->rsa); in rsa_verify_recover()
1003 ret = RSA_public_decrypt(siglen, sig, rout, prsactx->rsa, in rsa_verify_recover()
1029 const unsigned char *sig, size_t siglen, in rsa_verify_directly() argument
1039 if (!RSA_verify(prsactx->mdnid, tbs, tbslen, sig, siglen, in rsa_verify_directly()
1049 sig, siglen) <= 0) in rsa_verify_directly()
1072 ret = RSA_public_decrypt(siglen, sig, prsactx->tbuf, in rsa_verify_directly()
1103 ret = RSA_public_decrypt(siglen, sig, prsactx->tbuf, prsactx->rsa, in rsa_verify_directly()
1119 const unsigned char *sig, size_t siglen) in rsa_verify_set_sig() argument
1126 (unsigned char *)sig, siglen); in rsa_verify_set_sig()
1157 return rsa_verify_directly(prsactx, prsactx->sig, prsactx->siglen, in rsa_verify_message_final()
1166 const unsigned char *sig, size_t siglen, in rsa_verify() argument
1179 return rsa_verify_set_sig(prsactx, sig, siglen) in rsa_verify()
1182 return rsa_verify_directly(prsactx, sig, siglen, tbs, tbslen); in rsa_verify()
1251 static int rsa_digest_sign_final(void *vprsactx, unsigned char *sig, in rsa_digest_sign_final() argument
1263 if (rsa_sign_message_final(prsactx, sig, siglen, sigsize)) in rsa_digest_sign_final()
1295 int rsa_digest_verify_final(void *vprsactx, const unsigned char *sig, in rsa_digest_verify_final() argument
1307 if (rsa_verify_set_sig(prsactx, sig, siglen) in rsa_digest_verify_final()
1326 OPENSSL_free(prsactx->sig); in rsa_freectx()
1999 OPENSSL_free(prsactx->sig); in rsa_sigalg_set_ctx_params()
2000 prsactx->sig = NULL; in rsa_sigalg_set_ctx_params()
2002 if (!OSSL_PARAM_get_octet_string(p, (void **)&prsactx->sig, in rsa_sigalg_set_ctx_params()