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 › PKCS1v1_5Signature › concatVerify Public Function concatVerify Doc Source Public Function std.crypto.Certificate.rsa.PKCS1v1_5Signature.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: 1203
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213 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 em_dec = try encrypt (modulus_len , sig , public_key );
const em = try EMSA_PKCS1_V1_5_ENCODE (msg , modulus_len , Hash );
if (!std .mem .eql (u8 , &em_dec , &em )) return error .InvalidSignature ;
}