Lines Matching refs:ret

171 	int nid, hash_alg, ret = SSH_ERR_INTERNAL_ERROR;  in ssh_rsa_sign()  local
197 if ((ret = ssh_digest_memory(hash_alg, data, datalen, in ssh_rsa_sign()
202 ret = SSH_ERR_ALLOC_FAIL; in ssh_rsa_sign()
207 ret = SSH_ERR_LIBCRYPTO_ERROR; in ssh_rsa_sign()
215 ret = SSH_ERR_INTERNAL_ERROR; in ssh_rsa_sign()
220 ret = SSH_ERR_ALLOC_FAIL; in ssh_rsa_sign()
223 if ((ret = sshbuf_put_cstring(b, rsa_hash_alg_ident(hash_alg))) != 0 || in ssh_rsa_sign()
224 (ret = sshbuf_put_string(b, sig, slen)) != 0) in ssh_rsa_sign()
229 ret = SSH_ERR_ALLOC_FAIL; in ssh_rsa_sign()
236 ret = 0; in ssh_rsa_sign()
241 return ret; in ssh_rsa_sign()
251 int hash_alg, want_alg, ret = SSH_ERR_INTERNAL_ERROR; in ssh_rsa_verify() local
267 ret = SSH_ERR_INVALID_FORMAT; in ssh_rsa_verify()
271 ret = SSH_ERR_KEY_TYPE_MISMATCH; in ssh_rsa_verify()
280 ret = SSH_ERR_INVALID_ARGUMENT; in ssh_rsa_verify()
284 ret = SSH_ERR_SIGNATURE_INVALID; in ssh_rsa_verify()
289 ret = SSH_ERR_INVALID_FORMAT; in ssh_rsa_verify()
293 ret = SSH_ERR_UNEXPECTED_TRAILING_DATA; in ssh_rsa_verify()
299 ret = SSH_ERR_KEY_BITS_MISMATCH; in ssh_rsa_verify()
306 ret = SSH_ERR_ALLOC_FAIL; in ssh_rsa_verify()
314 ret = SSH_ERR_INTERNAL_ERROR; in ssh_rsa_verify()
317 if ((ret = ssh_digest_memory(hash_alg, data, datalen, in ssh_rsa_verify()
321 ret = openssh_RSA_verify(hash_alg, digest, dlen, sigblob, len, in ssh_rsa_verify()
328 return ret; in ssh_rsa_verify()
407 int ret, len, oidmatch, hashmatch; in openssh_RSA_verify() local
411 if ((ret = rsa_hash_alg_oid(hash_alg, &oid, &oidlen)) != 0) in openssh_RSA_verify()
412 return ret; in openssh_RSA_verify()
413 ret = SSH_ERR_INTERNAL_ERROR; in openssh_RSA_verify()
416 ret = SSH_ERR_INVALID_ARGUMENT; in openssh_RSA_verify()
422 ret = SSH_ERR_INVALID_ARGUMENT; in openssh_RSA_verify()
426 ret = SSH_ERR_ALLOC_FAIL; in openssh_RSA_verify()
431 ret = SSH_ERR_LIBCRYPTO_ERROR; in openssh_RSA_verify()
435 ret = SSH_ERR_INVALID_FORMAT; in openssh_RSA_verify()
441 ret = SSH_ERR_SIGNATURE_INVALID; in openssh_RSA_verify()
444 ret = 0; in openssh_RSA_verify()
447 return ret; in openssh_RSA_verify()