Lines Matching refs:cipher
28 - * Internal Nss Block cipher CTX
30 + * This context is designed for repositing a block cipher for transform
39 CK_MECHANISM_TYPE cipher;
106 + context->cipher = CKM_DES3_CBC ;
113 + context->cipher = CKM_AES_CBC ;
117 + context->cipher = CKM_AES_CBC ;
121 + context->cipher = CKM_AES_CBC ;
215 + context->cipher = CKM_INVALID_MECHANISM ;
347 - xmlSecAssert2(ctx->cipher != 0, -1);
348 + xmlSecAssert2( ctx->cipher != CKM_INVALID_MECHANISM , -1 ) ;
358 ivLen = PK11_GetIVLength(ctx->cipher);
453 - slot = PK11_GetBestSlot(ctx->cipher, NULL);
466 - symKey = PK11_ImportSymKey(slot, ctx->cipher, PK11_OriginDerive,
471 + if( ( secParam = PK11_ParamFromIV( ctx->cipher , &ivItem ) ) == NULL ) {
483 ctx->cipherCtx = PK11_CreateContextBySymKey(ctx->cipher,
510 + * Block cipher transform update
527 - xmlSecAssert2(ctx->cipher != 0, -1);
528 + xmlSecAssert2( ctx->cipher != CKM_INVALID_MECHANISM , -1 ) ;
537 - blockLen = PK11_GetBlockSize(ctx->cipher, NULL);
539 + if( ( blockSize = PK11_GetBlockSize( ctx->cipher , NULL ) ) < 0 ) {
638 - xmlSecAssert2(ctx->cipher != 0, -1);
639 + xmlSecAssert2( ctx->cipher != CKM_INVALID_MECHANISM , -1 ) ;
648 - blockLen = PK11_GetBlockSize(ctx->cipher, NULL);
650 + if( ( blockSize = PK11_GetBlockSize( ctx->cipher , NULL ) ) < 0 ) {
851 - ctx->cipher = CKM_DES3_CBC;
859 - ctx->cipher = CKM_AES_CBC;
863 - ctx->cipher = CKM_AES_CBC;
867 - ctx->cipher = CKM_AES_CBC;
993 - xmlSecAssert2(ctx->cipher != 0, -1);