All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.telegram.mtproto.secure.KeyParameter Maven / Gradle / Ivy

There is a newer version: 66.2
Show newest version
package org.telegram.mtproto.secure;

public class KeyParameter {
    private byte[] key;

    public KeyParameter(byte[] key) {
        this(key, 0, key.length);
    }

    public KeyParameter(byte[] key, int keyOff, int keyLen) {
        this.key = new byte[keyLen];

        System.arraycopy(key, keyOff, this.key, 0, keyLen);
    }

    public byte[] getKey() {
        return this.key;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy