MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / output_bytes

Method output_bytes

ciphercore-base/src/random.rs:152–155  ·  view source on GitHub ↗
(&mut self, input: u64, n: u64)

Source from the content-addressed store, hash-verified

150
151 #[cfg(test)]
152 fn output_bytes(&mut self, input: u64, n: u64) -> Result<Vec<u8>> {
153 let initial_buffer_size = usize::min(BUFFER_SIZE, n as usize);
154 PrfSession::new(input, initial_buffer_size)?.generate_random_bytes(&mut self.aes, n)
155 }
156
157 pub(super) fn output_value(&mut self, input: u64, t: Type) -> Result<Value> {
158 PrfSession::new(input, INITIAL_BUFFER_SIZE)?.recursively_generate_value(&mut self.aes, t)

Callers 1

test_prf_random_keyFunction · 0.80

Calls 1

generate_random_bytesMethod · 0.80

Tested by 1

test_prf_random_keyFunction · 0.64