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 › rsa › PSSSignature › concatVerify Public Function concatVerify Doc Source Public Function std.crypto.Certificate.rsa.PSSSignature.concatVerify
pub fn concatVerify (
comptime modulus_len : usize ,
sig : *const [modulus_len ]u8 ,
msg : []const []const u8 ,
public_key : PublicKey ,
comptime Hash : type ,
) VerifyError !void Params modulus_len : usize sig : *const [modulus_len ]u8 msg : []const []const u8 public_key : PublicKey Hash : type File crypto/Certificate.zig: 1040
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051 pub fn concatVerify (
comptime modulus_len : usize ,
sig : *const [modulus_len ]u8 ,
msg : []const []const u8 ,
public_key : PublicKey ,
comptime Hash : type ,
) VerifyError !void {
const mod_bits = public_key .n .bits ();
const em_dec = try encrypt (modulus_len , sig , public_key );
try EMSA_PSS_VERIFY (msg , &em_dec , mod_bits - 1 , Hash .digest_length , Hash );
}