Open ColdIce1605 opened 3 years ago
Some investigation of this issue in https://github.com/iceiix/stevenarella/issues/465#issuecomment-781740317:
let shared_e = rsa_public_encrypt_pkcs1::encrypt(&public_key, &shared).unwrap();
this is from my other module (a quick-and-dirty RSA encryption library to replace the more heavyweight OpenSSL dependency I wanted to get rid of, but couldn't find a similarly lightweight Rust library replacement - maybe there is one now): https://github.com/iceiix/rsa_public_encrypt_pkcs1/blob/master/src/lib.rs#L110
where I added this check based on RFC8017:
// https://tools.ietf.org/html/rfc8017#section-5.1.1 /* 1. If the message representative m is not between 0 and n - 1, * output "message representative out of range" and stop. */ if m.sign() != num::bigint::Sign::Plus || m > n - 1 { return Err("RSA error: message representative out of range".to_string()); }
I wonder which condition is failing (m is negative, or greater than n - 1?)
but I wasn't able to reproduce this issue myself with https://github.com/feather-rs/feather branch 1.16 commit 56dce3188d75c40085cc94f58887eec37f80e6e4
still happens on latest, still no way to rep, both on latest feather and stevenarella.
I've got these working together on Manjaro Linux. However, there's a glitch:
@Supermath101 for that glitch, it often means there was an issue loading the world, or placing the player into the world (for example, maybe they spawned inside a block? can other players see the player? teleport to a new location? etc.)
Seems it doesn't like 3rd party servers. ie Feather
I'll also Open a feather issue
Reported by Feather