@@ -64,7 +64,7 @@ int ecc_import_pkcs8(const unsigned char *in, unsigned long inlen,
6464 if (err != CRYPT_OK ) return err ;
6565
6666
67- if (( err = pkcs8_decode_flexi (in , inlen , pwd , pwdlen , & l ) ) == CRYPT_OK ) {
67+ if (pkcs8_decode_flexi (in , inlen , pwd , pwdlen , & l ) == CRYPT_OK ) {
6868
6969 /* Setup for basic structure */
7070 n = 0 ;
@@ -73,7 +73,7 @@ int ecc_import_pkcs8(const unsigned char *in, unsigned long inlen,
7373 LTC_SET_DER_FLEXI_CHECK (flexi_should , n ++ , LTC_ASN1_OCTET_STRING , & priv_key );
7474 LTC_SET_DER_FLEXI_CHECK (flexi_should , n , LTC_ASN1_EOL , NULL );
7575
76- if ((( err = s_der_flexi_sequence_cmp (l , flexi_should ) ) == CRYPT_OK ) &&
76+ if ((s_der_flexi_sequence_cmp (l , flexi_should ) == CRYPT_OK ) &&
7777 (pk_oid_cmp_with_asn1 (pka_ec_oid , seq -> child ) == CRYPT_OK )) {
7878 ltc_asn1_list * version , * field , * point , * point_g , * order , * p_cofactor ;
7979
@@ -154,7 +154,7 @@ int ecc_import_pkcs8(const unsigned char *in, unsigned long inlen,
154154
155155 /* load private key value 'k' */
156156 len = priv_key -> size ;
157- if (( err = der_decode_sequence_flexi (priv_key -> data , & len , & p ) ) == CRYPT_OK ) {
157+ if (der_decode_sequence_flexi (priv_key -> data , & len , & p ) == CRYPT_OK ) {
158158 if (p -> type == LTC_ASN1_SEQUENCE &&
159159 LTC_ASN1_IS_TYPE (p -> child , LTC_ASN1_INTEGER ) &&
160160 LTC_ASN1_IS_TYPE (p -> child -> next , LTC_ASN1_OCTET_STRING )) {
0 commit comments