private static Map<AesSivParameters.Variant, OutputPrefixType> createVariantToOutputPrefixMap() {
    Map<AesSivParameters.Variant, OutputPrefixType> result = new HashMap<>();
    result.put(AesSivParameters.Variant.NO_PREFIX, OutputPrefixType.RAW);
    result.put(AesSivParameters.Variant.TINK, OutputPrefixType.TINK);
    result.put(AesSivParameters.Variant.CRUNCHY, OutputPrefixType.CRUNCHY);
    return Collections.unmodifiableMap(result);
  }
Methods to serialize and parse {@link AesSivKey} objects and {@link AesSivParameters} objects
java_src/src/main/java/com/google/crypto/tink/daead/internal/AesSivProtoSerialization.java