File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -267,8 +267,10 @@ static void secp256k1_fe_sqr(secp256k1_fe *r, const secp256k1_fe *a);
267267/** Compute a square root of a field element. 
268268 * 
269269 * On input, a must be a valid field element with magnitude<=8; r need not be initialized. 
270-  * Performs {r = sqrt(a)} or {r = sqrt(-a)}, whichever exists. The resulting value 
271-  * represented by r will be a square itself. Variables r and a must not point to the same object. 
270+  * If sqrt(a) exists, performs {r = sqrt(a)} and returns 1. 
271+  * Otherwise, sqrt(-a) exists. The function performs {r = sqrt(-a)} and returns 0. 
272+  * The resulting value represented by r will be a square itself. 
273+  * Variables r and a must not point to the same object. 
272274 * On output, r will have magnitude 1 but will not be normalized. 
273275 */ 
274276static  int  secp256k1_fe_sqrt (secp256k1_fe  *  SECP256K1_RESTRICT  r , const  secp256k1_fe  *  SECP256K1_RESTRICT  a );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments