Skip to content

Commit

Permalink
Merge 36610f8 into d8d7a83
Browse files Browse the repository at this point in the history
  • Loading branch information
pattop committed Jul 22, 2020
2 parents d8d7a83 + 36610f8 commit 07527c5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/headers/tomcrypt_custom.h
Expand Up @@ -585,6 +585,22 @@
#define LTC_PBES
#endif

#if defined(LTC_PBES) && !defined(LTC_PKCS_5)
#error LTC_PBES requires LTC_PKCS_5
#endif

#if defined(LTC_PBES) && !defined(LTC_PKCS_12)
#error LTC_PBES requires LTC_PKCS_12
#endif

#if defined(LTC_PKCS_5) && !defined(LTC_HMAC)
#error LTC_PKCS_5 requires LTC_HMAC
#endif

#if defined(LTC_PKCS_5) && !defined(LTC_HASH_HELPERS)
#error LTC_PKCS_5 requires LTC_HASH_HELPERS
#endif

#if defined(LTC_PELICAN) && !defined(LTC_RIJNDAEL)
#error Pelican-MAC requires LTC_RIJNDAEL
#endif
Expand Down
4 changes: 4 additions & 0 deletions src/pk/asn1/x509/x509_decode_public_key_from_certificate.c
Expand Up @@ -81,7 +81,11 @@ int x509_decode_public_key_from_certificate(const unsigned char *in, unsigned lo
&& (l->data != NULL)
&& LOOKS_LIKE_SPKI(l->child)) {
if (algorithm == PKA_EC) {
#ifdef LTC_MECC
err = ecc_import_subject_public_key_info(l->data, l->size, ctx);
#else
err = CRYPT_ERROR;
#endif
} else {
err = x509_decode_subject_public_key_info(l->data, l->size,
algorithm, tmpbuf, &tmpbuf_len,
Expand Down
3 changes: 3 additions & 0 deletions src/pk/ecc/ecc_ssh_ecdsa_encode_name.c
Expand Up @@ -8,6 +8,8 @@
Russ Williams
*/

#ifdef LTC_SSH

/**
Curve/OID to SSH+ECDSA name string mapping
@param buffer [out] The destination for the name
Expand Down Expand Up @@ -60,3 +62,4 @@ int ecc_ssh_ecdsa_encode_name(char *buffer, unsigned long *buflen, const ecc_key
return err;
}

#endif

0 comments on commit 07527c5

Please sign in to comment.