equal
deleted
inserted
replaced
257 int encrypt, |
257 int encrypt, |
258 const xmlChar* cipherName, |
258 const xmlChar* cipherName, |
259 xmlSecTransformCtxPtr transformCtx) { |
259 xmlSecTransformCtxPtr transformCtx) { |
260 xmlSecSize inSize, outSize; |
260 xmlSecSize inSize, outSize; |
261 int blockLen, outLen = 0; |
261 int blockLen, outLen = 0; |
262 xmlSecByte* inBuf; |
262 //xmlSecByte* inBuf; |
263 xmlSecByte* outBuf; |
263 xmlSecByte* outBuf; |
264 int ret; |
264 int ret; |
265 |
265 |
266 xmlSecAssert2(ctx, -1); |
266 xmlSecAssert2(ctx, -1); |
267 xmlSecAssert2(ctx->cipher != 0, -1); |
267 xmlSecAssert2(ctx->cipher != 0, -1); |
288 "xmlSecBufferSetMaxSize", |
288 "xmlSecBufferSetMaxSize", |
289 XMLSEC_ERRORS_R_XMLSEC_FAILED, |
289 XMLSEC_ERRORS_R_XMLSEC_FAILED, |
290 "size=%d", blockLen); |
290 "size=%d", blockLen); |
291 return(-1); |
291 return(-1); |
292 } |
292 } |
293 inBuf = xmlSecBufferGetData(in); |
293 //inBuf = xmlSecBufferGetData(in); |
294 |
294 |
295 } else { |
295 } else { |
296 if(inSize != (xmlSecSize)blockLen) { |
296 if(inSize != (xmlSecSize)blockLen) { |
297 xmlSecError(XMLSEC_ERRORS_HERE, |
297 xmlSecError(XMLSEC_ERRORS_HERE, |
298 xmlSecErrorsSafeString(cipherName), |
298 xmlSecErrorsSafeString(cipherName), |