diff 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
line wrap: on
line diff
--- a/pkcs_1_v15_es_encode.c	Tue Jun 15 14:07:21 2004 +0000
+++ b/pkcs_1_v15_es_encode.c	Sun Dec 19 11:34:45 2004 +0000
@@ -46,7 +46,7 @@
    }
    x += y;
    out[x++] = 0x00;
-   memcpy(out+x, msg, msglen);
+   XMEMCPY(out+x, msg, msglen);
    *outlen = modulus_bytelen;
 
    return CRYPT_OK;