1
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
3
* LibTomCrypt is a library that provides various cryptographic
4
* algorithms in a highly modular and flexible manner.
6
* The library is free for all purposes without any express
9
* Tom St Denis, tomstdenis@iahu.ca, http://libtomcrypt.org
14
/* will read multiple DER INTEGER encoded mp_ints from src
15
* of upto [inlen] bytes. It will store the number of bytes
16
* read back into [inlen].
18
int der_get_multi_integer(const unsigned char *src, unsigned long *inlen,
23
unsigned long wrote, len;
27
_ARGCHK(inlen != NULL);
35
while (next != NULL) {
36
if ((err = der_decode_integer(src, inlen, next)) != CRYPT_OK) {
44
next = va_arg(args, mp_int*);