public enum SigType extends java.lang.Enum<SigType>
列挙型定数 | 説明 |
---|---|
DSA_SHA1 |
DSA_SHA1 is the default.
|
ECDSA_SHA256_P256 |
Pubkey 64 bytes; privkey 32 bytes; hash 32 bytes; sig 64 bytes
|
ECDSA_SHA384_P384 |
Pubkey 96 bytes; privkey 48 bytes; hash 48 bytes; sig 96 bytes
|
ECDSA_SHA512_P521 |
Pubkey 132 bytes; privkey 66 bytes; hash 64 bytes; sig 132 bytes
|
EdDSA_SHA512_Ed25519 |
Pubkey 32 bytes; privkey 32 bytes; hash 64 bytes; sig 64 bytes
Due to bugs in previous versions, minimum version is 0.9.17.
|
EdDSA_SHA512_Ed25519ph |
Prehash version (double hashing, for offline use such as su3, not for use on the network)
Pubkey 32 bytes; privkey 32 bytes; hash 64 bytes; sig 64 bytes
|
RSA_SHA256_2048 |
Pubkey 256 bytes; privkey 512 bytes; hash 32 bytes; sig 256 bytes
|
RSA_SHA384_3072 |
Pubkey 384 bytes; privkey 768 bytes; hash 48 bytes; sig 384 bytes
|
RSA_SHA512_4096 |
Pubkey 512 bytes; privkey 1024 bytes; hash 64 bytes; sig 512 bytes
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
java.lang.String |
getAlgorithmName() |
the standard name used for the Java crypto factories
|
SigAlgo |
getBaseAlgorithm() |
the standard base algorithm name used for the Java crypto factories
|
static SigType |
getByCode(int code) |
|
int |
getCode() |
the unique identifier for this type
|
java.security.MessageDigest |
getDigestInstance() |
|
SimpleDataStructure |
getHashInstance() |
|
int |
getHashLen() |
the length of the hash, in bytes
|
java.lang.String |
getOID() |
The OID for the signature.
|
java.security.spec.AlgorithmParameterSpec |
getParams() |
The elliptic curve ECParameterSpec for ECDSA; DSAParameterSpec for DSA
|
int |
getPrivkeyLen() |
the length of the private key, in bytes
|
int |
getPubkeyLen() |
the length of the public key, in bytes
|
int |
getSigLen() |
the length of the signature, in bytes
|
java.lang.String |
getSupportedSince() |
The router version in which this type was first supported.
|
boolean |
isAvailable() |
|
static boolean |
isAvailable(int code) |
|
static boolean |
isAvailable(java.lang.String stype) |
|
static SigType |
parseSigType(java.lang.String stype) |
Convenience for user apps
|
static SigType |
valueOf(java.lang.String name) |
指定した名前を持つこの型の列挙型定数を返します。
文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に
一致している必要があります。(余分な空白文字を含めることは
できません。)
|
static SigType[] |
values() |
この列挙型の定数を含む配列を宣言されている順序で返します。
このメソッドは次のようにして定数を反復するために
使用できます:
for (SigType c : SigType.values()) System.out.println(c); |
public static final SigType DSA_SHA1
public static final SigType ECDSA_SHA256_P256
public static final SigType ECDSA_SHA384_P384
public static final SigType ECDSA_SHA512_P521
public static final SigType RSA_SHA256_2048
public static final SigType RSA_SHA384_3072
public static final SigType RSA_SHA512_4096
public static final SigType EdDSA_SHA512_Ed25519
public static final SigType EdDSA_SHA512_Ed25519ph
public static SigType[] values()
for (SigType c : SigType.values()) System.out.println(c);
public static SigType valueOf(java.lang.String name)
name
- 返される列挙型定数の名前。java.lang.IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合java.lang.NullPointerException
- 引数がnullの場合public int getCode()
public int getPubkeyLen()
public int getPrivkeyLen()
public int getHashLen()
public int getSigLen()
public SigAlgo getBaseAlgorithm()
public java.lang.String getAlgorithmName()
public java.security.spec.AlgorithmParameterSpec getParams() throws java.security.spec.InvalidParameterSpecException
java.security.spec.InvalidParameterSpecException
- if the algorithm is not available on this JVM.public java.security.MessageDigest getDigestInstance()
java.lang.UnsupportedOperationException
- if not supportedpublic SimpleDataStructure getHashInstance()
java.lang.UnsupportedOperationException
- if not supportedpublic java.lang.String getSupportedSince()
public java.lang.String getOID()
public boolean isAvailable()
public static boolean isAvailable(int code)
public static boolean isAvailable(java.lang.String stype)
stype
- number or namepublic static SigType getByCode(int code)
public static SigType parseSigType(java.lang.String stype)
stype
- number or name