Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

has_hardware_support

true if AES is backed by hardware (AES-NI on x86_64, ARM Crypto Extensions on AArch64). Software implementations are much slower, and should be avoided if possible.

aes.has_hardware_support
pub const has_hardware_support =
    (builtin.cpu.arch == .x86_64 and has_aesni and has_avx) or
    (builtin.cpu.arch == .aarch64 and has_armaes)

File

lib/std/crypto/aes.zig:19

Code

pub const has_hardware_support =
    (builtin.cpu.arch == .x86_64 and has_aesni and has_avx) or
    (builtin.cpu.arch == .aarch64 and has_armaes)