Package com.google.crypto.tink.internal
Class OutputPrefixUtil
- java.lang.Object
-
- com.google.crypto.tink.internal.OutputPrefixUtil
-
public final class OutputPrefixUtil extends java.lang.ObjectConvenience functions that deal with output prefix.
-
-
Field Summary
Fields Modifier and Type Field Description static BytesEMPTY_PREFIXstatic byteLEGACY_START_BYTEstatic intNON_EMPTY_PREFIX_SIZEAll non-empty prefixes must have the same size of 5 bytes.static byteTINK_START_BYTE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BytesgetLegacyOutputPrefix(int keyId)static BytesgetTinkOutputPrefix(int keyId)
-
-
-
Field Detail
-
NON_EMPTY_PREFIX_SIZE
public static final int NON_EMPTY_PREFIX_SIZE
All non-empty prefixes must have the same size of 5 bytes.- See Also:
- Constant Field Values
-
LEGACY_START_BYTE
public static final byte LEGACY_START_BYTE
- See Also:
- Constant Field Values
-
TINK_START_BYTE
public static final byte TINK_START_BYTE
- See Also:
- Constant Field Values
-
EMPTY_PREFIX
public static final Bytes EMPTY_PREFIX
-
-