~ubuntu-branches/ubuntu/raring/heimdal/raring

« back to all changes in this revision

Viewing changes to lib/hcrypto/rsa.c

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2011-07-21 17:40:58 UTC
  • mfrom: (1.1.12 upstream) (2.4.10 experimental)
  • Revision ID: james.westby@ubuntu.com-20110721174058-byiuowgocek307cs
Tags: 1.5~pre2+git20110720-2
Fix dependency on pthreads when building on Linux 3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 *
56
56
 * Speed for RSA in seconds
57
57
 *   no key blinding
58
 
 *   1000 iteration, 
 
58
 *   1000 iteration,
59
59
 *   same rsa keys (1024 and 2048)
60
60
 *   operation performed each eteration sign, verify, encrypt, decrypt on a random bit pattern
61
61
 *
62
62
 * name         1024    2048    4098
63
 
 * =================================    
 
63
 * =================================
64
64
 * gmp:          0.73     6.60   44.80
65
65
 * tfm:          2.45       --      --
66
66
 * ltm:          3.79    20.74  105.41  (default in hcrypto)
442
442
            free_DigestInfo(&di);
443
443
            return -1;
444
444
        }
445
 
        
 
445
 
446
446
        ret = der_heim_oid_cmp(&digest_alg->algorithm,
447
447
                               &di.digestAlgorithm.algorithm);
448
448
        free_DigestInfo(&di);
449
 
        
 
449
 
450
450
        if (ret != 0)
451
451
            return 0;
452
452
        return 1;
577
577
        RSA_free(k);
578
578
        return NULL;
579
579
    }
580
 
        
 
580
 
581
581
    return k;
582
582
}
583
583
 
701
701
        RSA_free(k);
702
702
        return NULL;
703
703
    }
704
 
        
 
704
 
705
705
    return k;
706
706
}