push all init state into stack
()
| 154 | |
| 155 | /// push all init state into stack |
| 156 | pub fn sha256_init() -> Vec<Script> { |
| 157 | let mut state: [u32; 8] = INITSTATE; |
| 158 | state.reverse(); |
| 159 | state.iter().map(|x: &u32| u32_push(*x)).collect::<Vec<_>>() |
| 160 | } |
| 161 | |
| 162 | /// Change byte order, because SHA uses big endian. |
| 163 | pub fn sha256_final() -> Script { |
nothing calls this directly
no test coverage detected