rsa_meth.c (1.1.1.3) | rsa_meth.c (1.1.1.1) |
---|---|
1/* | 1/* |
2 * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved. | 2 * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. |
3 * 4 * Licensed under the OpenSSL license (the "License"). You may not use 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 7 * https://www.openssl.org/source/license.html 8 */ 9 10#include <string.h> --- 59 unchanged lines hidden (view full) --- 70 } 71 72 OPENSSL_free(meth->name); 73 meth->name = tmpname; 74 75 return 1; 76} 77 | 3 * 4 * Licensed under the OpenSSL license (the "License"). You may not use 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 7 * https://www.openssl.org/source/license.html 8 */ 9 10#include <string.h> --- 59 unchanged lines hidden (view full) --- 70 } 71 72 OPENSSL_free(meth->name); 73 meth->name = tmpname; 74 75 return 1; 76} 77 |
78int RSA_meth_get_flags(const RSA_METHOD *meth) | 78int RSA_meth_get_flags(RSA_METHOD *meth) |
79{ 80 return meth->flags; 81} 82 83int RSA_meth_set_flags(RSA_METHOD *meth, int flags) 84{ 85 meth->flags = flags; 86 return 1; --- 179 unchanged lines hidden (view full) --- 266int RSA_meth_set_keygen(RSA_METHOD *meth, 267 int (*keygen) (RSA *rsa, int bits, BIGNUM *e, 268 BN_GENCB *cb)) 269{ 270 meth->rsa_keygen = keygen; 271 return 1; 272} 273 | 79{ 80 return meth->flags; 81} 82 83int RSA_meth_set_flags(RSA_METHOD *meth, int flags) 84{ 85 meth->flags = flags; 86 return 1; --- 179 unchanged lines hidden (view full) --- 266int RSA_meth_set_keygen(RSA_METHOD *meth, 267 int (*keygen) (RSA *rsa, int bits, BIGNUM *e, 268 BN_GENCB *cb)) 269{ 270 meth->rsa_keygen = keygen; 271 return 1; 272} 273 |
274int (*RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth)) 275 (RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb) 276{ 277 return meth->rsa_multi_prime_keygen; 278} 279 280int RSA_meth_set_multi_prime_keygen(RSA_METHOD *meth, 281 int (*keygen) (RSA *rsa, int bits, 282 int primes, BIGNUM *e, 283 BN_GENCB *cb)) 284{ 285 meth->rsa_multi_prime_keygen = keygen; 286 return 1; 287} | |