commonMain.com.google.security.cryptauth.lib.securemessage.SigScheme.kt Maven / Gradle / Ivy
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: securemessage.SigScheme in securemessage.proto
package com.google.security.cryptauth.lib.securemessage
import com.squareup.wire.EnumAdapter
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.Syntax.PROTO_2
import com.squareup.wire.WireEnum
import kotlin.Int
/**
* Supported "signature" schemes (both symmetric key and public key based)
*/
public enum class SigScheme(
public override val `value`: Int,
) : WireEnum {
HMAC_SHA256(1),
ECDSA_P256_SHA256(2),
/**
* Not recommended -- use ECDSA_P256_SHA256 instead
*/
RSA2048_SHA256(3),
;
public companion object {
public val ADAPTER: ProtoAdapter = object : EnumAdapter(
SigScheme::class,
PROTO_2,
null
) {
public override fun fromValue(`value`: Int): SigScheme? = SigScheme.fromValue(value)
}
public fun fromValue(`value`: Int): SigScheme? = when (value) {
1 -> HMAC_SHA256
2 -> ECDSA_P256_SHA256
3 -> RSA2048_SHA256
else -> null
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy