(&mut self, aes: &mut Crypter, n: u64)
| 231 | } |
| 232 | |
| 233 | fn generate_random_bytes(&mut self, aes: &mut Crypter, n: u64) -> Result<Vec<u8>> { |
| 234 | let mut bytes = vec![0u8; n as usize]; |
| 235 | self.fill_random_bytes(aes, bytes.as_mut_slice())?; |
| 236 | Ok(bytes) |
| 237 | } |
| 238 | |
| 239 | fn fill_random_bytes(&mut self, aes: &mut Crypter, mut buff: &mut [u8]) -> Result<()> { |
| 240 | while !buff.is_empty() { |
no test coverage detected