comparison libtomcrypt/src/pk/dsa/dsa_export.c @ 1711:e9dba7abd939

Merge libtomcrypt v1.18.2
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Jun 2020 23:16:13 +0800
parents 6dba84798cd5
children
comparison
equal deleted inserted replaced
1710:1ff2a1034c52 1711:e9dba7abd939
67 LTC_ASN1_INTEGER, 1UL, key->x, 67 LTC_ASN1_INTEGER, 1UL, key->x,
68 LTC_ASN1_EOL, 0UL, NULL); 68 LTC_ASN1_EOL, 0UL, NULL);
69 } 69 }
70 } else { 70 } else {
71 if (std) { 71 if (std) {
72 unsigned long tmplen = (mp_count_bits(key->y) / 8) + 8; 72 unsigned long tmplen = (unsigned long)(mp_count_bits(key->y) / 8) + 8;
73 unsigned char* tmp = XMALLOC(tmplen); 73 unsigned char* tmp = XMALLOC(tmplen);
74 ltc_asn1_list int_list[3]; 74 ltc_asn1_list int_list[3];
75 75
76 if (tmp == NULL) { 76 if (tmp == NULL) {
77 return CRYPT_MEM; 77 return CRYPT_MEM;