Hi, Jeff! Thanks a lot for offering your help. Here's the code:


shareSecret(ByteArray* secret, int numParts, int minParts) {
    NonblockingRng rng;
    int threshold =
minParts);
    int nShares =
numParts,
;
    SecretSharing* secretSharing = new SecretSharing(rng, threshold, nShares);
    const byte* bytes = (byte*) secret->data();
    unsigned int p = secretSharing->Put(bytes, secret->size());


    And here, when calling "Put", I get segmentation fault. I already checked: "secret" is not null. I don't know how to get the secret parts at "the other side of the filter".

    I apreciate any help.

Douglas

[EMAIL PROTECTED] escreveu:
Hi Douglas,

Can you post some sample code (or put together a command line project that 
demonstrates the problem? I personaaly use Visual C++, but if you are *nix, I 
will do my best).

Jeff

Quoting Douglas de Oliveira Mendes <[EMAIL PROTECTED]>:

  
    I'm getting seg fault when calling Put. geez...

Douglas

Douglas de Oliveira Mendes escreveu:

    
    I haven't found it, but I'll be looking for it.

Thanks


Jeffrey Walton wrote:

      
Hi Douglas,

I can't say I've used Secret Sharing.

Wei's test suite usually provides the sample to use the code. Have you
looked at his sample (I assume one is there).

Jeff

----- Original Message ----- 
From: "Douglas de Oliveira Mendes" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, October 03, 2005 6:57 PM
Subject: Re: Example of using SecretSharing class


 

        
   Hasn't anyone here ever used this class?

Douglas de Oliveira Mendes escreveu:

   

          
  Hi. Can I have an example of using the SecretSharing class?

Thanks!
Douglas





_______________________________________________________
Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons
     

            
e muito mais. Instale agora!
 

        
www.yahoo.com.br/messenger/




     

            
_______________________________________________________
Novo Yahoo! Messenger com voz: ligações, Yahoo! Avatars, novos emoticons
          
e
    
   

          
muito mais. Instale agora!
 

        
www.yahoo.com.br/messenger/

   

          
 

        




  

Reply via email to