Package com.google.crypto.tink.subtle
Class EcdsaSignJce
- java.lang.Object
-
- com.google.crypto.tink.subtle.EcdsaSignJce
-
- All Implemented Interfaces:
PublicKeySign
@Immutable public final class EcdsaSignJce extends java.lang.Object implements PublicKeySign
ECDSA signing with JCE.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description EcdsaSignJce(java.security.interfaces.ECPrivateKey privateKey, Enums.HashType hash, EllipticCurves.EcdsaEncoding encoding)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicKeySigncreate(EcdsaPrivateKey key)byte[]sign(byte[] data)Computes the signature fordata.
-
-
-
Constructor Detail
-
EcdsaSignJce
public EcdsaSignJce(java.security.interfaces.ECPrivateKey privateKey, Enums.HashType hash, EllipticCurves.EcdsaEncoding encoding) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
-
Method Detail
-
create
public static PublicKeySign create(EcdsaPrivateKey key) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
sign
public byte[] sign(byte[] data) throws java.security.GeneralSecurityExceptionDescription copied from interface:PublicKeySignComputes the signature fordata.- Specified by:
signin interfacePublicKeySign- Returns:
- the signature of
data - Throws:
java.security.GeneralSecurityException
-
-