Skip to content

Commit 0645c68

Browse files
Merge branch 'master' of https://bearssl.org/git/BearSSL
2 parents 89454af + 252dba9 commit 0645c68

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

inc/bearssl_ec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ extern "C" {
108108
*
109109
* - The multipliers (integers) MUST be lower than the subgroup order.
110110
* If this property is not met, then the result is indeterminate,
111-
* but an error value is not ncessearily returned.
111+
* but an error value is not necessarily returned.
112112
*
113113
*
114114
* ## ECDSA

inc/bearssl_ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,7 @@ void br_ssl_engine_sendapp_ack(br_ssl_engine_context *cc, size_t len);
21142114
/**
21152115
* \brief Get buffer for received application data.
21162116
*
2117-
* If the engine has received application data from the peer, hen this
2117+
* If the engine has received application data from the peer, then this
21182118
* call returns a pointer to the buffer from where such data shall be
21192119
* read, and its length is written in `*len`. Otherwise, `*len` is set
21202120
* to 0 and `NULL` is returned.

src/ec/ec_c25519_m64.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@ f255_add(uint64_t *d, const uint64_t *a, const uint64_t *b)
158158

159159
/*
160160
* Subtraction.
161-
* On input, limbs must fit on 60 bits each. On output, result is
162-
* partially reduced, with max value 2^255+19456; moreover, all
163-
* limbs will fit on 51 bits, except the low limb, which may have
164-
* value up to 2^51+19455.
165161
*/
166162
static inline void
167163
f255_sub(uint64_t *d, const uint64_t *a, const uint64_t *b)

src/ec/ec_p256_m62.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ f256_final_reduce(uint64_t *a)
580580
w = t[2] - cc;
581581
t[2] = w & MASK52;
582582
cc = w >> 63;
583-
w = t[3] - BIT(36);
583+
w = t[3] - BIT(36) - cc;
584584
t[3] = w & MASK52;
585585
cc = w >> 63;
586586
t[4] -= cc;

src/x509/x509_minimal.t0

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ preamble {
106106
* -- Extensions: extension values are processed in due order.
107107
*
108108
* -- Basic Constraints: for all certificates except EE, must be
109-
* present, indicate a CA, and have a path legnth compatible with
109+
* present, indicate a CA, and have a path length compatible with
110110
* the chain length so far.
111111
*
112112
* -- Key Usage: for the EE, if present, must allow signatures

tools/sslio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ run_ssl_engine(br_ssl_engine_context *cc, unsigned long fd, unsigned flags)
281281
}
282282
if (cc->iaes_ctr != 0) {
283283
fprintf(stderr, " AES/CTR: %s\n",
284-
get_algo_name(cc->iaes_cbcdec, 0));
284+
get_algo_name(cc->iaes_ctr, 0));
285285
}
286286
if (cc->iaes_ctrcbc != 0) {
287287
fprintf(stderr, " AES/CCM: %s\n",

0 commit comments

Comments
 (0)