jdk/src/share/classes/com/sun/crypto/provider/CipherTextStealing.java
author valeriep
Tue, 08 May 2012 17:57:48 -0700
changeset 12685 8a448b5b9006
parent 5506 202f599c92aa
child 15008 6a494f8ba5b5
permissions -rw-r--r--
4963723: Implement SHA-224 Summary: Add support for SHA-224, SHA224withRSA, SHA224withECDSA, HmacSHA224 and OAEPwithSHA-224AndMGF1Padding. Reviewed-by: vinnie
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     2
 * Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package com.sun.crypto.provider;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import javax.crypto.IllegalBlockSizeException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import javax.crypto.ShortBufferException;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * This class represents ciphers in cipher text stealing (CTS) mode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * <br>CTS provides a way to allow block ciphers to operate on partial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * blocks without padding, and all bits of the message go through
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * the encryption algorithm, rather than simply being XOR'd.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * <br>More details can be found in RFC 2040 section 8 "Description
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * of RC5-CTS".
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * <p>This mode is implemented independently of a particular cipher.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * Ciphers to which this mode should apply (e.g., DES) must be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * <i>plugged-in</i> using the constructor.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * <p>NOTE#1: CTS requires the input data to be at least one block
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * long. Thus, callers of this class has to buffer the input data
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * to make sure the input data passed to encryptFinal()/decryptFinal()
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * is not shorter than a block.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * <p>NOTE#2: This class does not deal with buffering or padding
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 * just like all other cipher mode implementations.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 * @author Valerie Peng
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
final class CipherTextStealing extends CipherBlockChaining {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    CipherTextStealing(SymmetricCipher embeddedCipher) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
        super(embeddedCipher);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     * Gets the name of this feedback mode.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * @return the string <code>CBC</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    String getFeedback() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
        return "CTS";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
     * Performs the last encryption operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
     * <p>The input plain text <code>plain</code>, starting at
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * <code>plainOffset</code> and ending at
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * <code>(plainOffset + len - 1)</code>, is encrypted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * The result is stored in <code>cipher</code>, starting at
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     * <code>cipherOffset</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * <p>It is the application's responsibility to make sure that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     * <code>plainLen</code> is a multiple of the embedded cipher's block size,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * as any excess bytes are ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * @param plain the buffer with the input data to be encrypted
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * @param plainOffset the offset in <code>plain</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * @param plainLen the length of the input data
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * @param cipher the buffer for the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * @param cipherOffset the offset in <code>cipher</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    void encryptFinal(byte[] plain, int plainOffset, int plainLen,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
                      byte[] cipher, int cipherOffset)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
        throws IllegalBlockSizeException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        if (plainLen < blockSize) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
            throw new IllegalBlockSizeException("input is too short!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        } else if (plainLen == blockSize) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
            encrypt(plain, plainOffset, plainLen, cipher, cipherOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
            // number of bytes in the last block
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
            int nLeft = plainLen % blockSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
            if (nLeft == 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
                encrypt(plain, plainOffset, plainLen, cipher, cipherOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
                // swap the last two blocks after encryption
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
                int lastBlkIndex = cipherOffset + plainLen - blockSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
                int nextToLastBlkIndex = lastBlkIndex - blockSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
                byte[] tmp = new byte[blockSize];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
                System.arraycopy(cipher, lastBlkIndex, tmp, 0, blockSize);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                System.arraycopy(cipher, nextToLastBlkIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
                                 cipher, lastBlkIndex, blockSize);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
                System.arraycopy(tmp, 0, cipher, nextToLastBlkIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
                                 blockSize);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
                int newPlainLen = plainLen - (blockSize + nLeft);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
                if (newPlainLen > 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                    encrypt(plain, plainOffset, newPlainLen, cipher,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                            cipherOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                    plainOffset += newPlainLen;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                    cipherOffset += newPlainLen;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                // Do final CTS step for last two blocks (the second of which
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                // may or may not be incomplete).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                byte[] tmp = new byte[blockSize];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                // now encrypt the next-to-last block
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
                for (int i = 0; i < blockSize; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
                    tmp[i] = (byte) (plain[plainOffset+i] ^ r[i]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
                byte[] tmp2 = new byte[blockSize];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
                embeddedCipher.encryptBlock(tmp, 0, tmp2, 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
                System.arraycopy(tmp2, 0, cipher,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                                 cipherOffset+blockSize, nLeft);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                // encrypt the last block
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                for (int i=0; i<nLeft; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                    tmp2[i] = (byte)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
                        (plain[plainOffset+blockSize+i] ^ tmp2[i]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
                embeddedCipher.encryptBlock(tmp2, 0, cipher, cipherOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * Performs decryption operation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * <p>The input cipher text <code>cipher</code>, starting at
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * <code>cipherOffset</code> and ending at
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     * <code>(cipherOffset + len - 1)</code>, is decrypted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
     * The result is stored in <code>plain</code>, starting at
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * <code>plainOffset</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * <p>It is the application's responsibility to make sure that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     * <code>cipherLen</code> is a multiple of the embedded cipher's block
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
     * size, as any excess bytes are ignored.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * <p>It is also the application's responsibility to make sure that
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * <code>init</code> has been called before this method is called.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * (This check is omitted here, to avoid double checking.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * @param cipher the buffer with the input data to be decrypted
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     * @param cipherOffset the offset in <code>cipherOffset</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * @param cipherLen the length of the input data
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     * @param plain the buffer for the result
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * @param plainOffset the offset in <code>plain</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    void decryptFinal(byte[] cipher, int cipherOffset, int cipherLen,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                      byte[] plain, int plainOffset)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
        throws IllegalBlockSizeException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
        if (cipherLen < blockSize) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
            throw new IllegalBlockSizeException("input is too short!");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        } else if (cipherLen == blockSize) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
            decrypt(cipher, cipherOffset, cipherLen, plain, plainOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
            // number of bytes in the last block
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
            int nLeft = cipherLen % blockSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
            if (nLeft == 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                // swap the last two blocks before decryption
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
                int lastBlkIndex = cipherOffset + cipherLen - blockSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
                int nextToLastBlkIndex =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
                    cipherOffset + cipherLen - 2*blockSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
                byte[] tmp = new byte[2*blockSize];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
                System.arraycopy(cipher, lastBlkIndex, tmp, 0, blockSize);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
                System.arraycopy(cipher, nextToLastBlkIndex,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                                 tmp, blockSize, blockSize);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
                int cipherLen2 = cipherLen-2*blockSize;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                decrypt(cipher, cipherOffset, cipherLen2, plain, plainOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
                decrypt(tmp, 0, 2*blockSize, plain, plainOffset+cipherLen2);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
                int newCipherLen = cipherLen-(blockSize+nLeft);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                if (newCipherLen > 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                    decrypt(cipher, cipherOffset, newCipherLen, plain,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                            plainOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
                    cipherOffset += newCipherLen;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
                    plainOffset += newCipherLen;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
                // Do final CTS step for last two blocks (the second of which
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                // may or may not be incomplete).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
                // now decrypt the next-to-last block
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                byte[] tmp = new byte[blockSize];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
                embeddedCipher.decryptBlock(cipher, cipherOffset, tmp, 0);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
                for (int i = 0; i < nLeft; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
                    plain[plainOffset+blockSize+i] =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
                        (byte) (cipher[cipherOffset+blockSize+i] ^ tmp[i]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                // decrypt the last block
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                System.arraycopy(cipher, cipherOffset+blockSize, tmp, 0,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                                 nLeft);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
                embeddedCipher.decryptBlock(tmp, 0, plain, plainOffset);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
                //System.arraycopy(r, 0, tmp, 0, r.length);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
                for (int i=0; i<blockSize; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
                    plain[plainOffset+i] = (byte)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
                        (plain[plainOffset+i]^r[i]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
}