1/* crypto/rsa/rsa_chk.c -*- Mode: C; c-file-style: "eay" -*- */ 2/* ==================================================================== 3 * Copyright (c) 1999 The OpenSSL Project. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 45 unchanged lines hidden (view full) --- 54 55 56int RSA_check_key(const RSA *key) 57 { 58 BIGNUM *i, *j, *k, *l, *m; 59 BN_CTX *ctx; 60 int r; 61 int ret=1; |
62 63 if (!key->p || !key->q || !key->n || !key->e || !key->d) 64 { 65 RSAerr(RSA_F_RSA_CHECK_KEY, RSA_R_VALUE_MISSING); 66 return 0; 67 } |
68 69 i = BN_new(); 70 j = BN_new(); 71 k = BN_new(); 72 l = BN_new(); 73 m = BN_new(); 74 ctx = BN_CTX_new(); 75 if (i == NULL || j == NULL || k == NULL || l == NULL || --- 115 unchanged lines hidden --- |