YKCS11: Change DBG to print to stderr.
This commit is contained in:
@@ -468,7 +468,7 @@ CK_RV do_pkcs_1_t1(CK_BYTE_PTR in, CK_ULONG in_len, CK_BYTE_PTR out, CK_ULONG_PT
|
||||
unsigned char buffer[512];
|
||||
|
||||
key_len /= 8;
|
||||
DBG(("Apply padding to %lu bytes and get %lu\n", in_len, key_len));
|
||||
DBG("Apply padding to %lu bytes and get %lu\n", in_len, key_len);
|
||||
|
||||
// TODO: rand must be seeded first (should be automatic)
|
||||
if (*out_len < key_len)
|
||||
@@ -508,7 +508,7 @@ CK_RV do_pkcs_pss(RSA *key, CK_BYTE_PTR in, CK_ULONG in_len, int nid,
|
||||
if (*out_len < (CK_ULONG)RSA_size(key))
|
||||
return CKR_BUFFER_TOO_SMALL;
|
||||
|
||||
DBG(("Apply PSS padding to %lu bytes and get %d\n", in_len, RSA_size(key)));
|
||||
DBG("Apply PSS padding to %lu bytes and get %d\n", in_len, RSA_size(key));
|
||||
|
||||
if (out != in)
|
||||
memcpy(out, in, in_len);
|
||||
|
||||
Reference in New Issue
Block a user