public class SignerUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.bouncycastle.crypto.signers.PSSSigner |
createPSSRSASigner(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId) |
static org.bouncycastle.crypto.signers.PSSSigner |
createPSSRSASigner(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId,
org.bouncycastle.crypto.AsymmetricBlockCipher cipher) |
static byte[] |
dsaSigPlainToX962(byte[] signature) |
static byte[] |
dsaSigToPlain(BigInteger sigR,
BigInteger sigS,
int keyBitLen) |
static byte[] |
dsaSigX962ToPlain(byte[] x962Signature,
int keyBitLen) |
static byte[] |
EMSA_PKCS1_v1_5_encoding(byte[] encodedDigestInfo,
int modulusBigLength) |
static byte[] |
EMSA_PKCS1_v1_5_encoding(byte[] hashValue,
int modulusBigLength,
HashAlgo hashAlgo) |
static byte[] |
EMSA_PSS_ENCODE(HashAlgo contentDigest,
byte[] hashValue,
HashAlgo mgfDigest,
int saltLen,
int modulusBitLength,
SecureRandom random) |
static org.bouncycastle.crypto.params.RSAKeyParameters |
generateRSAPrivateKeyParameter(RSAPrivateKey key) |
static byte[] |
getDigestPkcsPrefix(HashAlgo hashAlgo) |
public static org.bouncycastle.crypto.params.RSAKeyParameters generateRSAPrivateKeyParameter(RSAPrivateKey key)
public static org.bouncycastle.crypto.signers.PSSSigner createPSSRSASigner(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId)
throws XiSecurityException
XiSecurityExceptionpublic static org.bouncycastle.crypto.signers.PSSSigner createPSSRSASigner(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId,
org.bouncycastle.crypto.AsymmetricBlockCipher cipher)
throws XiSecurityException
XiSecurityExceptionpublic static byte[] EMSA_PKCS1_v1_5_encoding(byte[] hashValue,
int modulusBigLength,
HashAlgo hashAlgo)
throws XiSecurityException
XiSecurityExceptionpublic static byte[] EMSA_PKCS1_v1_5_encoding(byte[] encodedDigestInfo,
int modulusBigLength)
throws XiSecurityException
XiSecurityExceptionpublic static byte[] EMSA_PSS_ENCODE(HashAlgo contentDigest, byte[] hashValue, HashAlgo mgfDigest, int saltLen, int modulusBitLength, SecureRandom random) throws XiSecurityException
XiSecurityExceptionpublic static byte[] dsaSigPlainToX962(byte[] signature)
throws XiSecurityException
XiSecurityExceptionpublic static byte[] dsaSigX962ToPlain(byte[] x962Signature,
int keyBitLen)
throws XiSecurityException
XiSecurityExceptionpublic static byte[] dsaSigToPlain(BigInteger sigR, BigInteger sigS, int keyBitLen) throws XiSecurityException
XiSecurityExceptionpublic static byte[] getDigestPkcsPrefix(HashAlgo hashAlgo)
Copyright © 2018. All rights reserved.