Download code/bugfind/bench/kernels/nostr_iv/post/src/lib.rs from viai957/align: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/viai957/align/resolve/main/code/bugfind/bench/kernels/nostr_iv/post/src/lib.rs
- Command line
-
hf download hf://viai957/align/code/bugfind/bench/kernels/nostr_iv/post/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/viai957/align/resolve/main/code/bugfind/bench/kernels/nostr_iv/post/src/lib.rs
237 Bytes
| pub fn load_iv(iv: &[u8]) -> Result<[u8; 16], u8> { | |
| if iv.len() != 16 { | |
| return Err(1); | |
| } | |
| let mut out = [0u8; 16]; | |
| let mut i = 0usize; | |
| while i < 16 { | |
| out[i] = iv[i]; | |
| i += 1; | |
| } | |
| Ok(out) | |
| } | |