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 standard library.
std › crypto › Certificate › Algorithm › Hash Public Type Function Hash Doc Source Public Type Function std.crypto.Certificate.Algorithm.Hash
pub fn Hash (comptime algorithm : Algorithm ) type File crypto/Certificate.zig: 41
41
42
43
44
45
46
47
48
49
50
51 pub fn Hash (comptime algorithm : Algorithm ) type {
return switch (algorithm ) {
.sha1WithRSAEncryption => crypto .hash .Sha1 ,
.ecdsa_with_SHA224 , .sha224WithRSAEncryption => crypto .hash .sha2 .Sha224 ,
.ecdsa_with_SHA256 , .sha256WithRSAEncryption => crypto .hash .sha2 .Sha256 ,
.ecdsa_with_SHA384 , .sha384WithRSAEncryption => crypto .hash .sha2 .Sha384 ,
.ecdsa_with_SHA512 , .sha512WithRSAEncryption , .curveEd25519 => crypto .hash .sha2 .Sha512 ,
.md2WithRSAEncryption => @compileError ("unimplemented" ),
.md5WithRSAEncryption => crypto .hash .Md5 ,
};
}