public class AlgorithmIdentifierFactory extends Object
Modifier and Type | Method and Description |
---|---|
static AlgorithmIdentifier |
generateEncryptionAlgID(ASN1ObjectIdentifier encryptionOID,
int keySize,
SecureRandom random)
Create an AlgorithmIdentifier for the passed in encryption algorithm.
|
public static AlgorithmIdentifier generateEncryptionAlgID(ASN1ObjectIdentifier encryptionOID, int keySize, SecureRandom random) throws IllegalArgumentException
encryptionOID
- OID for the encryption algorithmkeySize
- key size in bits (-1 if unknown)random
- SecureRandom to use for parameter generation.IllegalArgumentException
- if encryptionOID cannot be matchedCopyright © 2020 BouncyCastle.org. All rights reserved.