01: package org.bouncycastle.crypto.params;
02:
03: import org.bouncycastle.crypto.CipherParameters;
04:
05: public class KeyParameter implements CipherParameters {
06: private byte[] key;
07:
08: public KeyParameter(byte[] key) {
09: this (key, 0, key.length);
10: }
11:
12: public KeyParameter(byte[] key, int keyOff, int keyLen) {
13: this .key = new byte[keyLen];
14:
15: System.arraycopy(key, keyOff, this .key, 0, keyLen);
16: }
17:
18: public byte[] getKey() {
19: return key;
20: }
21: }
|