aboutsummaryrefslogtreecommitdiff
path: root/core/crypto/sha2/sha2_impl_hw_gen.odin
blob: 85c7f8b2811a1f718b67f2507767bce4e75cb81e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#+build !amd64
package sha2

@(private = "file")
ERR_HW_NOT_SUPPORTED :: "crypto/sha2: hardware implementation unsupported"

// is_hardware_accelerated_256 returns true iff hardware accelerated
// SHA-224/SHA-256 is supported.
is_hardware_accelerated_256 :: proc "contextless" () -> bool {
	return false
}

sha256_transf_hw :: proc "contextless" (ctx: ^Context_256, data: []byte) {
	panic_contextless(ERR_HW_NOT_SUPPORTED)
}