Home | History | Annotate | Download | only in ec

Lines Matching defs:mont

81   group->mont = NULL;
87 BN_MONT_CTX_free(group->mont);
88 group->mont = NULL;
95 BN_MONT_CTX_free(group->mont);
96 group->mont = NULL;
103 BN_MONT_CTX_free(dest->mont);
104 dest->mont = NULL;
112 if (src->mont != NULL) {
113 dest->mont = BN_MONT_CTX_new();
114 if (dest->mont == NULL) {
117 if (!BN_MONT_CTX_copy(dest->mont, src->mont)) {
131 BN_MONT_CTX_free(dest->mont);
132 dest->mont = NULL;
139 BN_MONT_CTX *mont = NULL;
143 BN_MONT_CTX_free(group->mont);
144 group->mont = NULL;
155 mont = BN_MONT_CTX_new();
156 if (mont == NULL) {
159 if (!BN_MONT_CTX_set(mont, p, ctx)) {
164 if (one == NULL || !BN_to_montgomery(one, BN_value_one(), mont, ctx)) {
168 group->mont = mont;
169 mont = NULL;
176 BN_MONT_CTX_free(group->mont);
177 group->mont = NULL;
184 BN_MONT_CTX_free(mont);
191 if (group->mont == NULL) {
196 return BN_mod_mul_montgomery(r, a, b, group->mont, ctx);
201 if (group->mont == NULL) {
206 return BN_mod_mul_montgomery(r, a, a, group->mont, ctx);
211 if (group->mont == NULL) {
216 return BN_to_montgomery(r, a, group->mont, ctx);
221 if (group->mont == NULL) {
226 return BN_from_montgomery(r, a, group->mont, ctx);