RE: RSACryptoServiceProvider() - How to avoid auto key generation

From: Xiao Xie [MSFT] (xiaoxie@online.microsoft.com)
Date: 01/13/03


From: xiaoxie@online.microsoft.com (Xiao Xie [MSFT])
Date: Mon, 13 Jan 2003 02:51:53 GMT


Kim,

It is by design that the default constructor will always generate a key
pair based on default CspParameters values. You can have constructor to use
predefined keys by using other overloads of the constructor, like:

   public RSACryptoServiceProvider(int, CspParameters);

Sincerely,
Xiao Xie
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • Re: Class in another file
    ... > oriented design is that it is a technique that focuses design on ... programmer did was: design a way of using a structure of standard ... different but related object (i.e. what's now called a "constructor ... that's not as nice as true parameter overloading that Common Lisp ...
    (comp.lang.java.programmer)
  • Re: C++ design question
    ... > Why not invoke the barDerived constructor? ... which addresses design issues rather ... barDerived1, fooDerived2 with corresponding barDerived2, fooDerivedN ... a burden on developers of the various fooDerivedN. ...
    (comp.object)
  • Re: Use the accessor! Was: Copy Constructor Usage
    ... I think you are getting too hung up on the copy constructor bit. ... accessor fns on some bogus efficiency argument. ... a field 'leng' might map onto an accessor 'size'; ... No style or design rules give us a free lunch. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: OOP php user system
    ... never actually programmed proper OO code yet. ... what language the comments are in, ... those singletons the constructor args. ... design, even in Python. ...
    (comp.lang.php)
  • Re: initializing mutable class attributes
    ... I need to understand the 'WHY' behind a design ... satisfied with an explanation of "that's the Python way and you just have to ... the design of a language can make a very good language. ... default constructor and a non-default one at the same time. ...
    (comp.lang.python)

Quantcast