|
Deprecated Methods |
org.bouncycastle.asn1.x509.ExtensionsGenerator.addExtension(Extensions)
Use addExtensions instead. |
org.bouncycastle.crypto.engines.ThreefishEngine.bytesToWord(byte[], int)
Will be removed |
org.bouncycastle.util.Fingerprint.calculateFingerprintSHA512_160(byte[])
use the SHAKE based version. |
org.bouncycastle.crypto.agreement.jpake.JPAKEUtil.calculateGx(BigInteger, BigInteger, BigInteger)
x is a private ephemeral value, and this method has no q to randomise the
exponent with, so it falls back to a multiple of p-1 - always sound, but it grows the exponent
from the size of q to the size of p. Use
JPAKEUtil.calculateGx(BigInteger, BigInteger, BigInteger, BigInteger, SecureRandom) instead. |
org.bouncycastle.crypto.agreement.jpake.JPAKEUtil.calculateS(char[])
Use version including the modulus instead. |
org.bouncycastle.util.GF16.decode(byte[], byte[], int)
use GF16.decode(byte[], byte[], int). |
org.bouncycastle.math.ec.rfc7748.X448Field.decode(byte[], int[])
Use X448Field.decode448(byte[], int[]) instead. |
org.bouncycastle.math.ec.rfc7748.X25519Field.decode(byte[], int[])
Use X25519Field.decode255(byte[], int[]) instead. |
org.bouncycastle.util.GF16.decode(byte[], int, byte[], int, int)
use GF16.decode(byte[], int, byte[], int, int). |
org.bouncycastle.math.ec.rfc7748.X448Field.decode(byte[], int, int[])
Use X448Field.decode448(byte[], int, int[], int) instead. |
org.bouncycastle.math.ec.rfc7748.X25519Field.decode(byte[], int, int[])
Use X25519Field.decode255(byte[], int, int[], int) instead. |
org.bouncycastle.math.ec.rfc7748.X448Field.decode(byte[], int, int[], int)
Use X448Field.decode448(byte[], int, int[], int) instead. |
org.bouncycastle.math.ec.rfc7748.X25519Field.decode(byte[], int, int[], int)
Use X25519Field.decode255(byte[], int, int[], int) instead. |
org.bouncycastle.math.ec.rfc7748.X448Field.decode(int[], int, int[])
Use X448Field.decode448(int[], int, int[], int) instead. |
org.bouncycastle.math.ec.rfc7748.X25519Field.decode(int[], int, int[])
Use X25519Field.decode255(int[], int, int[], int) instead. |
org.bouncycastle.crypto.kems.ECIESKeyEncapsulation.decrypt(byte[], int)
use ECIESKEMExtractor |
org.bouncycastle.crypto.kems.ECIESKeyEncapsulation.decrypt(byte[], int, int, int)
use ECIESKEMExtractor |
org.bouncycastle.util.GF16.encode(byte[], byte[], int)
use GF16.encode(byte[], byte[], int). |
org.bouncycastle.util.GF16.encode(byte[], byte[], int, int)
use GF16.encode(byte[], byte[], int, int). |
org.bouncycastle.crypto.kems.ECIESKeyEncapsulation.encrypt(byte[], int)
use ECIESKEMGenerator |
org.bouncycastle.crypto.kems.ECIESKeyEncapsulation.encrypt(byte[], int, int)
use ECIESKEMGenerator |
org.bouncycastle.crypto.generators.BCrypt.generate(byte[], byte[], int)
as a direct replacement use BCrypt.generate(byte[], byte[], int, boolean) so
the terminator choice is explicit at the call site — pass to
have the spec-required 0x00 terminator appended (equivalent to feeding
through BCrypt.passwordToByteArray(char[])),
when the supplied bytes already include it. For general password hashing prefer
OpenBSDBCrypt, which handles termination, salt formatting and the
modular crypt output line; this raw primitive remains available for test-vector
validation and interop with implementations that emit the 24-byte hash directly
(issue #1741). |
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getAlgorithmId()
use getAlgorithm() |
org.bouncycastle.crypto.signers.RSADigestSigner.getAlgorithmName()
|
org.bouncycastle.asn1.ASN1BitString.getBytes(int)
Will be removed |
org.bouncycastle.asn1.cms.TimeStampAndCRL.getCertificateList()
use getCRL() |
org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge.getChallenge()
Use PublicKeyAndChallenge.getChallengeIA5() instead. |
org.bouncycastle.asn1.cmc.CMCStatusInfoV2.getcMCStatus()
use getCMCStatus(); |
org.bouncycastle.asn1.cmc.RevokeRequest.getComment()
Use RevokeRequest.getCommentUTF8() instead. |
org.bouncycastle.asn1.ess.ContentHints.getContentDescription()
Use ContentHints.getContentDescriptionUTF8() instead. |
org.bouncycastle.asn1.esf.SignerLocation.getCountryName()
use getCountry() |
org.bouncycastle.asn1.ocsp.CrlID.getCrlUrl()
Use CrlID.getCrlUrlIA5() instead. |
org.bouncycastle.asn1.cms.TimeStampedDataParser.getDataUri()
Use TimeStampedDataParser.getDataUriIA5() instead. |
org.bouncycastle.asn1.cms.TimeStampedData.getDataUri()
Use TimeStampedData.getDataUriIA5() instead. |
org.bouncycastle.crypto.agreement.ECVKOAgreement.getFieldSize()
Will be removed |
org.bouncycastle.asn1.cms.MetaData.getFileName()
Use MetaData.getFileNameUTF8() instead. |
org.bouncycastle.asn1.bc.ExternalValue.getHashVal()
use getHash(), the internal encoding is now an OCTET STRING |
org.bouncycastle.asn1.tsp.EncryptionInfo.getInstance(ASN1Object)
Use EncryptionInfo.getInstance(Object) instead. |
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier.getKeyIdentifier()
Use AuthorityKeyIdentifier.getKeyIdentifierOctets() instead. |
org.bouncycastle.asn1.cryptopro.GOST3410ParamSetParameters.getLKeySize()
use getKeySize |
org.bouncycastle.asn1.esf.SignerLocation.getLocalityName()
use getLocality() |
org.bouncycastle.asn1.cms.MetaData.getMediaType()
Use MetaData.getMediaTypeIA5() instead. |
org.bouncycastle.asn1.ASN1BitString.getPadBits(int)
Will be removed |
org.bouncycastle.crypto.params.MLKEMPrivateKeyParameters.getParametersWithFormat(int)
Use MLKEMPrivateKeyParameters.withPreferredFormat(int) instead. |
org.bouncycastle.asn1.crmf.CertReqMsg.getPopo()
use getPop |
org.bouncycastle.crypto.params.MLDSAPrivateKeyParameters.getPrivateKey()
Use MLDSAPrivateKeyParameters.getEncoded() instead. |
org.bouncycastle.asn1.cms.OriginatorPublicKey.getPublicKey()
Use OriginatorPublicKey.getPublicKeyData() instead. |
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKey()
use parsePublicKey |
org.bouncycastle.asn1.x509.qualified.BiometricData.getSourceDataUri()
Use BiometricData.getSourceDataUriIA5() instead. |
org.bouncycastle.asn1.cmc.CMCStatusInfoV2.getStatusString()
Use CMCStatusInfoV2.getStatusStringUTF8() instead. |
org.bouncycastle.asn1.cmc.CMCStatusInfo.getStatusString()
Use CMCStatusInfo.getStatusStringUTF8() instead. |
org.bouncycastle.asn1.cmp.PKIFreeText.getStringAt(int)
Use PKIFreeText.getStringAtUTF8(int) instead. |
org.bouncycastle.asn1.cmp.CRLStatus.getTime()
Use CRLStatus.getThisUpdate() instead. |
org.bouncycastle.asn1.x509.DeltaCertificateDescriptor.getValidity()
Use getValidityObject instead. |
org.bouncycastle.asn1.cms.RecipientInfo.getVersion()
Will be removed |
org.bouncycastle.asn1.cmp.CMPCertificate.getX509v2AttrCert()
use getOtherCert and getOtherTag to make sure message is really what it should be. |
org.bouncycastle.util.GF16.innerProduct(byte[], int, byte[], int, int)
use GF16.innerProduct(byte[], int, byte[], int, int). |
org.bouncycastle.crypto.kems.MLKEMGenerator.internalGenerateEncapsulated(AsymmetricKeyParameter, byte[])
Use MLKEMGenerator.internalGenerateEncapsulated(MLKEMPublicKeyParameters, byte[]) instead. |
org.bouncycastle.util.GF16.inv(byte)
use GF16.inv(byte). |
org.bouncycastle.util.GF16.mul(byte, byte)
use GF16.mul(byte, byte). |
org.bouncycastle.util.GF16.mul(int, int)
use GF16.mul(int, int). |
org.bouncycastle.asn1.ASN1InputStream.readFully(byte[])
No longer used; will be removed |
org.bouncycastle.asn1.ASN1InputStream.readLength()
No longer used; will be removed |
org.bouncycastle.asn1.crmf.CertTemplateBuilder.setExtensions(X509Extensions)
use method taking Extensions |
org.bouncycastle.asn1.x509.V3TBSCertificateGenerator.setExtensions(X509Extensions)
use method taking Extensions |
org.bouncycastle.asn1.x509.V2TBSCertListGenerator.setExtensions(X509Extensions)
use the method taking Extensions |
org.bouncycastle.asn1.x509.V2AttributeCertificateInfoGenerator.setExtensions(X509Extensions)
use method taking Extensions |
org.bouncycastle.asn1.x509.V3TBSCertificateGenerator.setIssuer(X509Name)
use X500Name method |
org.bouncycastle.asn1.x509.V2TBSCertListGenerator.setIssuer(X509Name)
use X500Name method |
org.bouncycastle.asn1.x509.V1TBSCertificateGenerator.setIssuer(X509Name)
use X500Name method |
org.bouncycastle.asn1.x509.V3TBSCertificateGenerator.setSubject(X509Name)
use X500Name method |
org.bouncycastle.asn1.x509.V1TBSCertificateGenerator.setSubject(X509Name)
use X500Name method |
org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters.sign(int, Ed25519PublicKeyParameters, byte[], byte[], int, int, byte[], int)
use overload that doesn't take a public key |
org.bouncycastle.crypto.params.Ed448PrivateKeyParameters.sign(int, Ed448PublicKeyParameters, byte[], byte[], int, int, byte[], int)
use overload that doesn't take a public key |
org.bouncycastle.asn1.x509.DeltaCertificateDescriptor.trimTo(TBSCertificate, Extensions)
Use DeltaCertificateTool#trimDeltaCertificateDescriptor instead. |
org.bouncycastle.crypto.engines.ThreefishEngine.wordToBytes(long, byte[], int)
Will be removed |
|
Deprecated Constructors |
org.bouncycastle.asn1.tsp.Accuracy()
Will be removed |
org.bouncycastle.crypto.engines.AESEngine()
use AESEngine.newInstance() |
org.bouncycastle.crypto.AsymmetricCipherKeyPair(CipherParameters, CipherParameters)
use AsymmetricKeyParameter |
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier(SubjectPublicKeyInfo)
create the extension using org.bouncycastle.cert.X509ExtensionUtils |
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier(SubjectPublicKeyInfo, GeneralNames, BigInteger)
create the extension using org.bouncycastle.cert.X509ExtensionUtils |
org.bouncycastle.crypto.macs.BlockCipherMac(BlockCipher)
use CBCBlockCipherMac |
org.bouncycastle.crypto.macs.BlockCipherMac(BlockCipher, int)
use CBCBlockCipherMac |
org.bouncycastle.crypto.BufferedBlockCipher(BlockCipher)
use the constructor on DefaultBufferedBlockCipher. |
org.bouncycastle.crypto.modes.CBCBlockCipher(BlockCipher)
use the CBCBlockCipher.newInstance() static method. |
org.bouncycastle.crypto.modes.CCMBlockCipher(BlockCipher)
use the CCMBlockCipher.newInstance() static method. |
org.bouncycastle.asn1.cmp.CertAnnContent(AttributeCertificate)
use (type, otherCert) constructor |
org.bouncycastle.asn1.pkcs.CertificationRequest(ASN1Sequence)
use getInstance() |
org.bouncycastle.asn1.pkcs.CertificationRequestInfo(X509Name, SubjectPublicKeyInfo, ASN1Set)
use X500Name method. |
org.bouncycastle.crypto.modes.CFBBlockCipher(BlockCipher, int)
use the equivalent CFBBlockCipher.newInstance() static method. |
org.bouncycastle.asn1.cmp.CMPCertificate(AttributeCertificate)
use (type, otherCert) constructor |
org.bouncycastle.asn1.DERExternal(ASN1EncodableVector)
Use DERExternal.fromVector(ASN1EncodableVector) instead. |
org.bouncycastle.asn1.DERExternal(DERSequence)
Use DERExternal.fromSequence(ASN1Sequence) instead. |
org.bouncycastle.asn1.DLExternal(ASN1EncodableVector)
Use DLExternal.fromVector(ASN1EncodableVector) instead. |
org.bouncycastle.asn1.DLExternal(DLSequence)
Use DLExternal.fromSequence(ASN1Sequence) instead. |
org.bouncycastle.math.ec.ECCurve.F2m(int, int, BigInteger, BigInteger)
use constructor taking order/cofactor |
org.bouncycastle.math.ec.ECCurve.F2m(int, int, int, int, BigInteger, BigInteger)
use constructor taking order/cofactor |
org.bouncycastle.math.ec.ECCurve.Fp(BigInteger, BigInteger, BigInteger)
use constructor taking order/cofactor |
org.bouncycastle.asn1.x509.ExtendedKeyUsage(Vector)
use KeyPurposeId[] constructor. |
org.bouncycastle.pqc.asn1.FalconPublicKey(ASN1Sequence)
use getInstance() |
org.bouncycastle.util.Fingerprint(byte[], boolean)
use the SHAKE only version. |
org.bouncycastle.crypto.modes.GCMBlockCipher(BlockCipher)
use the GCMBlockCipher.newInstance() static method. |
org.bouncycastle.crypto.modes.GCMBlockCipher(BlockCipher, GCMMultiplier)
use the CBCBlockCipher.newInstance() static method. |
org.bouncycastle.asn1.x509.GeneralName(X509Name)
use X500Name constructor. |
org.bouncycastle.asn1.cms.IssuerAndSerialNumber(ASN1Sequence)
use getInstance() method. |
org.bouncycastle.asn1.cms.IssuerAndSerialNumber(X509CertificateStructure)
use constructor taking Certificate |
org.bouncycastle.asn1.cms.IssuerAndSerialNumber(X509Name, ASN1Integer)
use X500Name constructor |
org.bouncycastle.asn1.cms.IssuerAndSerialNumber(X509Name, BigInteger)
use X500Name constructor |
org.bouncycastle.crypto.macs.OldHMac(Digest)
uses incorrect pad for SHA-512 and SHA-384 use HMac. |
org.bouncycastle.asn1.cms.OriginatorIdentifierOrKey(ASN1OctetString)
use version taking a SubjectKeyIdentifier |
org.bouncycastle.asn1.cms.OriginatorIdentifierOrKey(ASN1Primitive)
use more specific version |
org.bouncycastle.asn1.x509.PolicyMappings(Hashtable)
use CertPolicyId constructors. |
org.bouncycastle.asn1.x509.PolicyQualifierInfo(ASN1Sequence)
use PolicyQualifierInfo.getInstance() |
org.bouncycastle.asn1.ocsp.ResponseData(ResponderID, ASN1GeneralizedTime, ASN1Sequence, X509Extensions)
use method taking Extensions |
org.bouncycastle.asn1.cmp.RevDetails(CertTemplate, X509Extensions)
use method taking Extensions |
org.bouncycastle.crypto.threshold.ShamirSecretSplitter(ShamirSecretSplitter.Algorithm, ShamirSecretSplitter.Mode, int, SecureRandom)
the mode is ignored - see ShamirSecretSplitter.Mode. Use
#getInstance(Algorithm, int, SecureRandom). |
org.bouncycastle.crypto.threshold.ShamirSplitSecret(ShamirSecretSplitter.Algorithm, ShamirSecretSplitter.Mode, ShamirSplitSecretShare[])
the mode is ignored - see ShamirSecretSplitter.Mode. Use
ShamirSplitSecret.getInstance(ShamirSecretSplitter.Algorithm, ShamirSplitSecretShare[]). |
org.bouncycastle.crypto.modes.SICBlockCipher(BlockCipher)
use newInstance() method. |
org.bouncycastle.asn1.ocsp.SingleResponse(CertID, CertStatus, ASN1GeneralizedTime, ASN1GeneralizedTime, X509Extensions)
use method taking ASN1GeneralizedTime and Extensions |
org.bouncycastle.pqc.asn1.SPHINCSPLUSPrivateKey(ASN1Sequence)
use getInstance() |
org.bouncycastle.pqc.asn1.SPHINCSPLUSPublicKey(ASN1Sequence)
use getInstance() |
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo(ASN1Sequence)
use SubjectPublicKeyInfo.getInstance() |
org.bouncycastle.asn1.ocsp.TBSRequest(GeneralName, ASN1Sequence, X509Extensions)
use method taking Extensions |
org.bouncycastle.asn1.x500.X500Name(X500NameStyle, X500Name)
use the getInstance() method that takes a style. |
org.bouncycastle.asn1.x509.X509Extensions(Vector, Hashtable)
use Extensions |
org.bouncycastle.asn1.x509.X509Extensions(Vector, Vector)
use Extensions |
org.bouncycastle.asn1.x509.X509Name(ASN1Sequence)
use X500Name.getInstance() |
org.bouncycastle.asn1.x509.X509Name(boolean, Hashtable, String)
use X500Name, X500NameBuilder |
org.bouncycastle.asn1.x509.X509Name(boolean, String)
use X500Name, X500NameBuilder |
org.bouncycastle.asn1.x509.X509Name(boolean, String, X509NameEntryConverter)
use X500Name, X500NameBuilder |
org.bouncycastle.asn1.x509.X509Name(Hashtable)
use an ordered constructor! The hashtable ordering is rarely correct |
org.bouncycastle.asn1.x509.X509Name(String)
use X500Name, X500NameBuilder |
org.bouncycastle.asn1.x509.X509Name(String, X509NameEntryConverter)
use X500Name, X500NameBuilder |
org.bouncycastle.asn1.x509.X509Name(Vector, Hashtable, X509NameEntryConverter)
use X500Name, X500NameBuilder |
org.bouncycastle.asn1.x509.X509Name(Vector, Vector)
use X500Name, X500NameBuilder |
org.bouncycastle.asn1.x509.X509Name(Vector, Vector, X509NameEntryConverter)
use X500Name, X500NameBuilder |