This file is indexed.

/usr/share/doc/libghc-crypto-cipher-tests-doc/html/crypto-cipher-tests.txt is in libghc-crypto-cipher-tests-doc 0.0.11-1build3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Generic cryptography cipher tests
--   
--   Generic cryptography cipher tests
@package crypto-cipher-tests
@version 0.0.11


module Crypto.Cipher.Tests

-- | Return tests for a specific blockcipher and a list of KATs
testBlockCipher :: BlockCipher a => KATs -> a -> Test

-- | Return test for a specific blockcipher and a list of KATs
testBlockCipherIO :: BlockCipherIO a => KATs -> a -> Test

-- | Return tests for a specific streamcipher and a list of KATs
testStreamCipher :: StreamCipher a => [KAT_Stream] -> a -> Test

-- | the empty KATs
defaultKATs :: KATs

-- | the empty KATs for stream
defaultStreamKATs :: [KAT_Stream]

-- | all the KATs. use defaultKATs to prevent compilation error from future
--   expansion of this data structure
data KATs
KATs :: [KAT_ECB] -> [KAT_CBC] -> [KAT_CFB] -> [KAT_CTR] -> [KAT_XTS] -> [KAT_AEAD] -> KATs
kat_ECB :: KATs -> [KAT_ECB]
kat_CBC :: KATs -> [KAT_CBC]
kat_CFB :: KATs -> [KAT_CFB]
kat_CTR :: KATs -> [KAT_CTR]
kat_XTS :: KATs -> [KAT_XTS]
kat_AEAD :: KATs -> [KAT_AEAD]

-- | KAT for Stream cipher
data KAT_Stream
KAT_Stream :: ByteString -> ByteString -> ByteString -> KAT_Stream
streamKey :: KAT_Stream -> ByteString
streamPlaintext :: KAT_Stream -> ByteString
streamCiphertext :: KAT_Stream -> ByteString

-- | ECB KAT
data KAT_ECB
KAT_ECB :: ByteString -> ByteString -> ByteString -> KAT_ECB

-- | Key
ecbKey :: KAT_ECB -> ByteString

-- | Plaintext
ecbPlaintext :: KAT_ECB -> ByteString

-- | Ciphertext
ecbCiphertext :: KAT_ECB -> ByteString

-- | CBC KAT
data KAT_CBC
KAT_CBC :: ByteString -> ByteString -> ByteString -> ByteString -> KAT_CBC

-- | Key
cbcKey :: KAT_CBC -> ByteString

-- | IV
cbcIV :: KAT_CBC -> ByteString

-- | Plaintext
cbcPlaintext :: KAT_CBC -> ByteString

-- | Ciphertext
cbcCiphertext :: KAT_CBC -> ByteString

-- | CFB KAT
data KAT_CFB
KAT_CFB :: ByteString -> ByteString -> ByteString -> ByteString -> KAT_CFB

-- | Key
cfbKey :: KAT_CFB -> ByteString

-- | IV
cfbIV :: KAT_CFB -> ByteString

-- | Plaintext
cfbPlaintext :: KAT_CFB -> ByteString

-- | Ciphertext
cfbCiphertext :: KAT_CFB -> ByteString

-- | CTR KAT
data KAT_CTR
KAT_CTR :: ByteString -> ByteString -> ByteString -> ByteString -> KAT_CTR

-- | Key
ctrKey :: KAT_CTR -> ByteString

-- | IV (usually represented as a 128 bits integer)
ctrIV :: KAT_CTR -> ByteString

-- | Plaintext
ctrPlaintext :: KAT_CTR -> ByteString

-- | Ciphertext
ctrCiphertext :: KAT_CTR -> ByteString

-- | XTS KAT
data KAT_XTS
KAT_XTS :: ByteString -> ByteString -> ByteString -> ByteString -> ByteString -> KAT_XTS

-- | 1st XTS key
xtsKey1 :: KAT_XTS -> ByteString

-- | 2nd XTS key
xtsKey2 :: KAT_XTS -> ByteString

-- | XTS IV
xtsIV :: KAT_XTS -> ByteString

-- | plaintext
xtsPlaintext :: KAT_XTS -> ByteString

-- | Ciphertext
xtsCiphertext :: KAT_XTS -> ByteString

-- | AEAD KAT
data KAT_AEAD
KAT_AEAD :: AEADMode -> ByteString -> ByteString -> ByteString -> ByteString -> ByteString -> Int -> AuthTag -> KAT_AEAD

-- | AEAD mode to use
aeadMode :: KAT_AEAD -> AEADMode

-- | Key
aeadKey :: KAT_AEAD -> ByteString

-- | IV for initialization
aeadIV :: KAT_AEAD -> ByteString

-- | Authentificated Header
aeadHeader :: KAT_AEAD -> ByteString

-- | Plaintext
aeadPlaintext :: KAT_AEAD -> ByteString

-- | Ciphertext
aeadCiphertext :: KAT_AEAD -> ByteString

-- | aead tag len
aeadTaglen :: KAT_AEAD -> Int

-- | expected tag
aeadTag :: KAT_AEAD -> AuthTag