Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
feventura committed Mar 7, 2024
1 parent fb110ef commit 0aed78d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion oqsprov/oqs_encode_key2any.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,8 @@ static int oqsx_pki_priv_to_der(const void *vxkey, unsigned char **pder)
memcpy(buf + oqsxkey->privkeylen_cmp[i],
oqsxkey->comp_pubkey[i], oqsxkey->pubkeylen_cmp[i]);
} else {
memcpy(buf, oqsxkey->comp_privkey[i], oqsxkey->privkeylen_cmp[i]);
memcpy(buf, oqsxkey->comp_privkey[i],
oqsxkey->privkeylen_cmp[i]);
}

if (nid == EVP_PKEY_EC) {
Expand Down
6 changes: 3 additions & 3 deletions oqsprov/oqs_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include <openssl/types.h>

// TBD: Review what we really need/want: For now go with OSSL settings:
#define OSSL_MAX_NAME_SIZE 50
#define OSSL_MAX_PROPQUERY_SIZE 256 /* Property query strings */
#define OSSL_MAX_NAME_SIZE 50
#define OSSL_MAX_PROPQUERY_SIZE 256 /* Property query strings */
#define COMPOSITE_OID_PREFIX_LEN 26

#ifdef NDEBUG
Expand Down Expand Up @@ -254,7 +254,7 @@ static const unsigned char *composite_OID_prefix[] = {
void composite_prefix_conversion(char *out, const unsigned char *in)
{
int temp;
for (int i = 0; i < COMPOSITE_OID_PREFIRX_LEN / 2; i++) {
for (int i = 0; i < COMPOSITE_OID_PREFIX_LEN / 2; i++) {
temp = OPENSSL_hexchar2int(in[2 * i]);
temp = temp * 16;
temp += OPENSSL_hexchar2int(in[2 * i + 1]);
Expand Down

0 comments on commit 0aed78d

Please sign in to comment.