Skip to main content

public_key_from_bytes

Function public_key_from_bytes 

Source
pub fn public_key_from_bytes(bytes: &[u8]) -> Result<RsaPublicKey, CryptError>
Expand description

Parses an RSA public key from DER-encoded X.509 format bytes.

Equivalent to Crypt.byteToPublicKey() in Minecraft.