Package org.bouncycastle.crypto.fips
Class FipsRSA.KTSOperatorFactory
java.lang.Object
org.bouncycastle.crypto.fips.FipsKTSOperatorFactory<FipsRSA.KTSParameters>
org.bouncycastle.crypto.fips.FipsRSA.KTSOperatorFactory
- All Implemented Interfaces:
KTSOperatorFactory<FipsRSA.KTSParameters>
- Enclosing class:
- FipsRSA
public static class FipsRSA.KTSOperatorFactory
extends FipsKTSOperatorFactory<FipsRSA.KTSParameters>
Factory for producing key transport operators based on RSA.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExtractor
(Key key, FipsRSA.KTSParameters parameters) Return an extractor for processing encapsulated secrets, initialized with the passed in keys and parameters.createGenerator
(Key key, FipsRSA.KTSParameters parameters) Return a generator for making encapsulated secrets, initialized with the passed in keys and parameters.
-
Constructor Details
-
KTSOperatorFactory
-
-
Method Details
-
createGenerator
public FipsEncapsulatingSecretGenerator<FipsRSA.KTSParameters> createGenerator(Key key, FipsRSA.KTSParameters parameters) Description copied from interface:KTSOperatorFactory
Return a generator for making encapsulated secrets, initialized with the passed in keys and parameters.- Specified by:
createGenerator
in interfaceKTSOperatorFactory<FipsRSA.KTSParameters>
- Specified by:
createGenerator
in classFipsKTSOperatorFactory<FipsRSA.KTSParameters>
- Parameters:
key
- the key to initialize the generator with.parameters
- parameters specifying the characteristics of the generator.- Returns:
- an initialized generator.
-
createExtractor
public FipsEncapsulatedSecretExtractor<FipsRSA.KTSParameters> createExtractor(Key key, FipsRSA.KTSParameters parameters) Description copied from interface:KTSOperatorFactory
Return an extractor for processing encapsulated secrets, initialized with the passed in keys and parameters.- Specified by:
createExtractor
in interfaceKTSOperatorFactory<FipsRSA.KTSParameters>
- Specified by:
createExtractor
in classFipsKTSOperatorFactory<FipsRSA.KTSParameters>
- Parameters:
key
- the key to initialize the generator with.parameters
- parameters specifying the characteristics of the extractor.- Returns:
- an initialized extractor.
-