// 
// Decompiled by Procyon v0.6.0
// 

package com.google.crypto.tink.internal;

import java.nio.ByteBuffer;
import com.google.crypto.tink.util.Bytes;

public final class OutputPrefixUtil
{
    public static final int NON_EMPTY_PREFIX_SIZE = 5;
    public static final byte LEGACY_START_BYTE = 0;
    public static final byte TINK_START_BYTE = 1;
    public static final Bytes EMPTY_PREFIX;
    
    public static final Bytes getLegacyOutputPrefix(final int keyId) {
        return Bytes.copyFrom(ByteBuffer.allocate(5).put((byte)0).putInt(keyId).array());
    }
    
    public static final Bytes getTinkOutputPrefix(final int keyId) {
        return Bytes.copyFrom(ByteBuffer.allocate(5).put((byte)1).putInt(keyId).array());
    }
    
    private OutputPrefixUtil() {
    }
    
    static {
        EMPTY_PREFIX = Bytes.copyFrom(new byte[0]);
    }
}
