简体   繁体   中英

C# Bouncy Castle FipsDRBG

I'm trying to access a few things from FipsDRBG class. My code is shown below. How do I access fromEntropySource()? This function is within the internal class Base in FipsDRBG.

MyEntropyProvider entropyProvider = new MyEntropyProvider(@params);
FipsDrbg.BuilderService shaAlgo = FipsDrbg.Sha1; // Here I tried to use FipsDrbg.Base but then again it is internal    
FipsDrbg.Builder builder = shaAlgo.fromEntropySource(entropyProvider);

I've compared C# FipsDrbg with Java FipsDrbg. In Java, all classes are declared public which is why I can access them easily. I can neither access FipsDrbg.Base or fromEntropySource().

Can someone please suggest how to proceed with this?

I could access all the FIPS related code after getting a paid version of the library. It has great support for all the FIPS related functions which may or may not be available in the free version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM