class EncryptedChunk {

    public static EncryptedChunk create(ChunkHash key, byte[] nonce, byte[] encryptedBytes) {
        Preconditions.checkArgument(
                nonce.length == NONCE_LENGTH_BYTES, "Nonce does not have the correct length.");
        return new EncryptedChunk(key, nonce, encryptedBytes);
    }

    private  EncryptedChunk(ChunkHash key, byte[] nonce, byte[] encryptedBytes);

}