Lines Matching defs:encrypted
104 /// Serializes the private key to a PEM-encoded encrypted PKCS#1 RSAPrivateKey structure.
147 /// Encrypts data using the private key, returning the number of encrypted bytes.
319 /// Encrypts data using the public key, returning the number of encrypted bytes.
555 /// Deserializes a private key from a PEM-encoded encrypted PKCS#1 RSAPrivateKey structure.
559 /// Deserializes a private key from a PEM-encoded encrypted PKCS#1 RSAPrivateKey structure.
687 let key = include_bytes!("../test/rsa-encrypted.pem");
694 let key = include_bytes!("../test/rsa-encrypted.pem");
807 let mut encrypted = vec![0; pubkey.size() as usize];
809 .public_encrypt(msg, &mut encrypted, Padding::PKCS1)
814 .private_decrypt(&encrypted, &mut decrypted, Padding::PKCS1)