(args: HashArgs, vm: &VirtualMachine)
| 678 | |
| 679 | #[pyfunction(name = "openssl_shake_128")] |
| 680 | pub fn local_shake_128(args: HashArgs, vm: &VirtualMachine) -> PyResult<PyHasherXof> { |
| 681 | let data = resolve_data(args.data, args.string, vm)?; |
| 682 | Ok(PyHasherXof::new( |
| 683 | "shake_128", |
| 684 | HashXofWrapper::new_shake_128(data), |
| 685 | )) |
| 686 | } |
| 687 | |
| 688 | #[pyfunction(name = "openssl_shake_256")] |
| 689 | pub fn local_shake_256(args: HashArgs, vm: &VirtualMachine) -> PyResult<PyHasherXof> { |
no test coverage detected