1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#![allow(clippy::ptr_arg)]
#![allow(dead_code)]

use puffin::algebra::error::FnError;

pub fn fn_true() -> Result<bool, FnError> {
    Ok(true)
}
pub fn fn_false() -> Result<bool, FnError> {
    Ok(false)
}

pub fn fn_seq_0() -> Result<u64, FnError> {
    Ok(0)
}
pub fn fn_seq_1() -> Result<u64, FnError> {
    Ok(1)
}
pub fn fn_seq_2() -> Result<u64, FnError> {
    Ok(2)
}
pub fn fn_seq_3() -> Result<u64, FnError> {
    Ok(3)
}
pub fn fn_seq_4() -> Result<u64, FnError> {
    Ok(4)
}
pub fn fn_seq_5() -> Result<u64, FnError> {
    Ok(5)
}
pub fn fn_seq_6() -> Result<u64, FnError> {
    Ok(6)
}
pub fn fn_seq_7() -> Result<u64, FnError> {
    Ok(7)
}
pub fn fn_seq_8() -> Result<u64, FnError> {
    Ok(8)
}
pub fn fn_seq_9() -> Result<u64, FnError> {
    Ok(9)
}
pub fn fn_seq_10() -> Result<u64, FnError> {
    Ok(10)
}
pub fn fn_seq_11() -> Result<u64, FnError> {
    Ok(11)
}
pub fn fn_seq_12() -> Result<u64, FnError> {
    Ok(12)
}
pub fn fn_seq_13() -> Result<u64, FnError> {
    Ok(13)
}
pub fn fn_seq_14() -> Result<u64, FnError> {
    Ok(14)
}
pub fn fn_seq_15() -> Result<u64, FnError> {
    Ok(15)
}
pub fn fn_seq_16() -> Result<u64, FnError> {
    Ok(16)
}

/// Used in heartbleed attack
pub fn fn_large_length() -> Result<u64, FnError> {
    Ok(32702) // chosen by experimenting
}

pub fn fn_empty_bytes_vec() -> Result<Vec<u8>, FnError> {
    Ok(vec![])
}

pub fn fn_large_bytes_vec() -> Result<Vec<u8>, FnError> {
    Ok(vec![42; 700])
}