public enum EcdsaSignatureEncoding extends Enum<EcdsaSignatureEncoding> implements com.google.protobuf.Internal.EnumLite
google.crypto.tink.EcdsaSignatureEncoding| Enum Constant and Description |
|---|
DER
The signature is encoded using ASN.1
(https://tools.ietf.org/html/rfc5480#appendix-A):
ECDSA-Sig-Value :: = SEQUENCE {
r INTEGER,
s INTEGER
}
|
IEEE_P1363
The signature's format is r || s, where r and s are zero-padded and have
the same size in bytes as the order of the curve.
|
UNKNOWN_ENCODING
UNKNOWN_ENCODING = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DER_VALUE
The signature is encoded using ASN.1
(https://tools.ietf.org/html/rfc5480#appendix-A):
ECDSA-Sig-Value :: = SEQUENCE {
r INTEGER,
s INTEGER
}
|
static int |
IEEE_P1363_VALUE
The signature's format is r || s, where r and s are zero-padded and have
the same size in bytes as the order of the curve.
|
static int |
UNKNOWN_ENCODING_VALUE
UNKNOWN_ENCODING = 0; |
| Modifier and Type | Method and Description |
|---|---|
static EcdsaSignatureEncoding |
forNumber(int value) |
int |
getNumber() |
static com.google.protobuf.Internal.EnumLiteMap<EcdsaSignatureEncoding> |
internalGetValueMap() |
static com.google.protobuf.Internal.EnumVerifier |
internalGetVerifier() |
static EcdsaSignatureEncoding |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static EcdsaSignatureEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EcdsaSignatureEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EcdsaSignatureEncoding UNKNOWN_ENCODING
UNKNOWN_ENCODING = 0;public static final EcdsaSignatureEncoding IEEE_P1363
The signature's format is r || s, where r and s are zero-padded and have the same size in bytes as the order of the curve. For example, for NIST P-256 curve, r and s are zero-padded to 32 bytes.
IEEE_P1363 = 1;public static final EcdsaSignatureEncoding DER
The signature is encoded using ASN.1
(https://tools.ietf.org/html/rfc5480#appendix-A):
ECDSA-Sig-Value :: = SEQUENCE {
r INTEGER,
s INTEGER
}
DER = 2;public static final EcdsaSignatureEncoding UNRECOGNIZED
public static final int UNKNOWN_ENCODING_VALUE
UNKNOWN_ENCODING = 0;public static final int IEEE_P1363_VALUE
The signature's format is r || s, where r and s are zero-padded and have the same size in bytes as the order of the curve. For example, for NIST P-256 curve, r and s are zero-padded to 32 bytes.
IEEE_P1363 = 1;public static final int DER_VALUE
The signature is encoded using ASN.1
(https://tools.ietf.org/html/rfc5480#appendix-A):
ECDSA-Sig-Value :: = SEQUENCE {
r INTEGER,
s INTEGER
}
DER = 2;public static EcdsaSignatureEncoding[] values()
for (EcdsaSignatureEncoding c : EcdsaSignatureEncoding.values()) System.out.println(c);
public static EcdsaSignatureEncoding valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLite@Deprecated public static EcdsaSignatureEncoding valueOf(int value)
forNumber(int) instead.value - The number of the enum to look for.public static EcdsaSignatureEncoding forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<EcdsaSignatureEncoding> internalGetValueMap()
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()