MCPcopy Create free account
hub / github.com/docknetwork/crypto / as_mut_bytes

Method as_mut_bytes

oblivious_transfer/src/aes_prng.rs:89–94  ·  view source on GitHub ↗

Unsafe method which converts from a Block128x8 to a mutable u8 array

(&mut self)

Source from the content-addressed store, hash-verified

87impl AesRngState {
88 /// Unsafe method which converts from a Block128x8 to a mutable u8 array
89 fn as_mut_bytes(&mut self) -> &mut [u8] {
90 #[allow(unsafe_code)]
91 unsafe {
92 slice::from_raw_parts_mut(&mut self.blocks as *mut Block128x8 as *mut u8, STATE_SIZE)
93 }
94 }
95
96 /// Initialize state
97 fn init() -> Self {

Callers 4

nextMethod · 0.80
next_u32Method · 0.80
next_u64Method · 0.80
fill_bytesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected