comparison pkcs_1_v15_es_encode.c @ 143:5d99163f7e32 libtomcrypt-orig

import of libtomcrypt 0.99
author Matt Johnston <matt@ucc.asn.au>
date Sun, 19 Dec 2004 11:34:45 +0000
parents 6362d3854bb4
children
comparison
equal deleted inserted replaced
15:6362d3854bb4 143:5d99163f7e32
44 if (prng_descriptor[prng_idx].read(out+x, y, prng) != y) { 44 if (prng_descriptor[prng_idx].read(out+x, y, prng) != y) {
45 return CRYPT_ERROR_READPRNG; 45 return CRYPT_ERROR_READPRNG;
46 } 46 }
47 x += y; 47 x += y;
48 out[x++] = 0x00; 48 out[x++] = 0x00;
49 memcpy(out+x, msg, msglen); 49 XMEMCPY(out+x, msg, msglen);
50 *outlen = modulus_bytelen; 50 *outlen = modulus_bytelen;
51 51
52 return CRYPT_OK; 52 return CRYPT_OK;
53 } 53 }
54 54