This file is indexed.

/usr/share/idl/thunderbird/nsIStreamCipher.idl is in thunderbird-dev 1:24.4.0+build1-0ubuntu1.

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
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"
#include "nsIKeyModule.idl"

interface nsIInputStream;

/**
 * Stream cipher interface.  We're basically copying the interface from
 * nsICryptoHash interface.
 */
[scriptable, uuid(1d507cd6-1630-4710-af1b-4012dbcc514c)]
interface nsIStreamCipher : nsISupports
{
    /**
     * Initialize a stream cipher.
     * @param aKey nsIKeyObject
     */
    void init(in nsIKeyObject aKey);

    /**
     * Initialize a stream cipher with an initialization vector.
     * @param aKey nsIKeyObject
     * @param aIV the initialization vector
     * @param aIVLen the length of the initialization vector
     */
    void initWithIV(in nsIKeyObject aKey,
                    [const, array, size_is(aIVLen)] in octet aIV,
                    in unsigned long aIVLen);

    /**
     * Update from an array of bytes.
     */
    void update([const, array, size_is(aLen)] in octet aData, in unsigned long aLen);

    /**
     * Update from a stream.
     */
    void updateFromStream(in nsIInputStream aStream, in long aLen);

    /**
     * A more script friendly method (not in nsICryptoHash interface).
     */
    void updateFromString(in ACString aInput);

    /**
     * @param aASCII if true then the returned value is a base-64
     *        encoded string.  if false, then the returned value is
     *        binary data.
     */
    ACString finish(in boolean aASCII);

    /**
     * Discard aLen bytes of the keystream.
     * These days 1536 is considered a decent amount to drop to get
     * the key state warmed-up enough for secure usage.
     */
    void discard(in long aLen);
};