| Package | Description |
|---|---|
| com.google.crypto.tink | |
| com.google.crypto.tink.signature.internal | |
| com.google.crypto.tink.subtle | |
| com.google.crypto.tink.subtle.prf |
| Modifier and Type | Field and Description |
|---|---|
Enums.HashType |
PemKeyType.hash |
| Modifier and Type | Method and Description |
|---|---|
static Enums.HashType |
SigUtil.toHashType(HashType hash)
Converts protobuf enum
HashType to raw Java enum Enums.HashType. |
| Modifier and Type | Field and Description |
|---|---|
Enums.HashType |
PemKeyType.hash
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static Enums.HashType |
Enums.HashType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Enums.HashType[] |
Enums.HashType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
SubtleUtil.mgf1(byte[] mgfSeed,
int maskLen,
Enums.HashType mgfHash)
Computes MGF1 as defined at https://tools.ietf.org/html/rfc8017#appendix-B.2.1.
|
static String |
SubtleUtil.toDigestAlgo(Enums.HashType hash)
Returns the digest algorithm name corresponding to a hash type.
|
static String |
SubtleUtil.toEcdsaAlgo(Enums.HashType hash)
Returns the Ecdsa algorithm name corresponding to a hash type.
|
static String |
SubtleUtil.toRsaSsaPkcs1Algo(Enums.HashType hash)
Returns the RSA SSA (Signature with Appendix) PKCS1 algorithm name corresponding to a hash
type.
|
static void |
SelfKeyTestValidators.validateEcdsa(ECPrivateKey privateKey,
ECPublicKey publicKey,
Enums.HashType hash,
EllipticCurves.EcdsaEncoding encoding) |
static void |
SelfKeyTestValidators.validateRsaSsaPkcs1(RSAPrivateCrtKey privateKey,
RSAPublicKey publicKey,
Enums.HashType sigHash) |
static void |
SelfKeyTestValidators.validateRsaSsaPss(RSAPrivateCrtKey privateKey,
RSAPublicKey publicKey,
Enums.HashType sigHash,
Enums.HashType mgf1Hash,
int saltLength) |
static void |
Validators.validateSignatureHash(Enums.HashType hash)
Validates whether
hash is safe to use for digital signature. |
| Constructor and Description |
|---|
EcdsaSignJce(ECPrivateKey priv,
Enums.HashType hash,
EllipticCurves.EcdsaEncoding encoding) |
EcdsaVerifyJce(ECPublicKey pubKey,
Enums.HashType hash,
EllipticCurves.EcdsaEncoding encoding) |
RsaSsaPkcs1SignJce(RSAPrivateCrtKey priv,
Enums.HashType hash) |
RsaSsaPkcs1VerifyJce(RSAPublicKey pubKey,
Enums.HashType hash) |
RsaSsaPssSignJce(RSAPrivateCrtKey priv,
Enums.HashType sigHash,
Enums.HashType mgf1Hash,
int saltLength) |
RsaSsaPssVerifyJce(RSAPublicKey pubKey,
Enums.HashType sigHash,
Enums.HashType mgf1Hash,
int saltLength) |
| Constructor and Description |
|---|
HkdfStreamingPrf(Enums.HashType hashType,
byte[] ikm,
byte[] salt) |