41 static void DetectTransformToSha1RegisterTests(
void);
49 "convert to sha1 hash of the buffer";
51 "/rules/transforms.html#to-sha1";
53 DetectTransformToSha1Setup;
58 DetectTransformToSha1RegisterTests;
77 "needed for to_sha1 keyword");
86 const uint8_t *input = buffer->
inspect;
91 SCSha1HashBuffer(input, input_len, output,
sizeof(output));
96 static int DetectTransformToSha1Test01(
void)
98 const uint8_t *input = (
const uint8_t *)
" A B C D ";
99 uint32_t input_len = strlen((
char *)input);
105 TransformToSha1(&buffer, NULL);
111 static void DetectTransformToSha1RegisterTests(
void)
114 DetectTransformToSha1Test01);