diff options
author | Stephen Paul Weber <singpolyma@singpolyma.net> | 2012-04-27 16:14:04 -0500 |
---|---|---|
committer | Stephen Paul Weber <singpolyma@singpolyma.net> | 2012-04-27 16:14:04 -0500 |
commit | 4eb6591ec2d2efeb9fb55d23d3d6e6f54534f128 (patch) | |
tree | 65c776f79a0c93c9ee267d34b24cd0a22dacc744 /Arbitrary.patch | |
parent | ca2ff90effdda221e16a201071d5fef0110596be (diff) |
RevocationKeyPacket
Diffstat (limited to 'Arbitrary.patch')
-rw-r--r-- | Arbitrary.patch | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Arbitrary.patch b/Arbitrary.patch index aa09db0..b86896d 100644 --- a/Arbitrary.patch +++ b/Arbitrary.patch | |||
@@ -19,7 +19,7 @@ | |||
19 | return (SymmetricAlgorithm x1) | 19 | return (SymmetricAlgorithm x1) |
20 | _ -> error "FATAL ERROR: Arbitrary instance, logic bug" | 20 | _ -> error "FATAL ERROR: Arbitrary instance, logic bug" |
21 | 21 | ||
22 | @@ -116,7 +115,7 @@ | 22 | @@ -134,7 +133,7 @@ |
23 | 23 | ||
24 | instance Arbitrary MPI where | 24 | instance Arbitrary MPI where |
25 | arbitrary | 25 | arbitrary |
@@ -28,6 +28,13 @@ | |||
28 | return (MPI x1) | 28 | return (MPI x1) |
29 | 29 | ||
30 | 30 | ||
31 | @@ -160,5 +160,5 @@ | ||
32 | return (PreferredSymmetricAlgorithmsPacket x1) | ||
33 | 8 -> do x1 <- arbitrary | ||
34 | x2 <- arbitrary | ||
35 | - x3 <- arbitrary | ||
36 | + x3 <- vectorOf 40 (elements (['0'..'9'] ++ ['A'..'F'])) | ||
37 | return (RevocationKeyPacket x1 x2 x3) | ||
31 | @@ -166 +165 @@ | 38 | @@ -166 +165 @@ |
32 | - 9 -> do x1 <- arbitrary | 39 | - 9 -> do x1 <- arbitrary |
33 | + 9 -> do x1 <- vectorOf 16 (elements (['0'..'9'] ++ ['A'..'F'])) | 40 | + 9 -> do x1 <- vectorOf 16 (elements (['0'..'9'] ++ ['A'..'F'])) |