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

package com.google.crypto.tink.prf;

import java.security.GeneralSecurityException;
import java.util.Map;
import com.google.errorprone.annotations.Immutable;

@Immutable
public abstract class PrfSet
{
    public abstract int getPrimaryId();
    
    public abstract Map<Integer, Prf> getPrfs() throws GeneralSecurityException;
    
    public byte[] computePrimary(final byte[] input, final int outputLength) throws GeneralSecurityException {
        return this.getPrfs().get(this.getPrimaryId()).compute(input, outputLength);
    }
}
