ecp_mont.c (302408) | ecp_mont.c (325337) |
---|---|
1/* crypto/ec/ecp_mont.c */ 2/* 3 * Originally written by Bodo Moeller for the OpenSSL project. 4 */ 5/* ==================================================================== 6 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 233 unchanged lines hidden (view full) --- 242 group->field_data2 = NULL; 243 } 244 245 err: 246 if (new_ctx != NULL) 247 BN_CTX_free(new_ctx); 248 if (mont != NULL) 249 BN_MONT_CTX_free(mont); | 1/* crypto/ec/ecp_mont.c */ 2/* 3 * Originally written by Bodo Moeller for the OpenSSL project. 4 */ 5/* ==================================================================== 6 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 233 unchanged lines hidden (view full) --- 242 group->field_data2 = NULL; 243 } 244 245 err: 246 if (new_ctx != NULL) 247 BN_CTX_free(new_ctx); 248 if (mont != NULL) 249 BN_MONT_CTX_free(mont); |
250 if (one != NULL) 251 BN_free(one); |
|
250 return ret; 251} 252 253int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, 254 const BIGNUM *b, BN_CTX *ctx) 255{ 256 if (group->field_data1 == NULL) { 257 ECerr(EC_F_EC_GFP_MONT_FIELD_MUL, EC_R_NOT_INITIALIZED); --- 51 unchanged lines hidden --- | 252 return ret; 253} 254 255int ec_GFp_mont_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a, 256 const BIGNUM *b, BN_CTX *ctx) 257{ 258 if (group->field_data1 == NULL) { 259 ECerr(EC_F_EC_GFP_MONT_FIELD_MUL, EC_R_NOT_INITIALIZED); --- 51 unchanged lines hidden --- |