Lines Matching refs:context
30 + * This context is designed for repositing a block cipher for transform
99 + xmlSecNssBlockCipherCtxPtr context ,
102 + xmlSecAssert2( context != NULL, -1 ) ;
106 + context->cipher = CKM_DES3_CBC ;
107 + context->keyId = xmlSecNssKeyDataDesId ;
113 + context->cipher = CKM_AES_CBC ;
114 + context->keyId = xmlSecNssKeyDataAesId ;
117 + context->cipher = CKM_AES_CBC ;
118 + context->keyId = xmlSecNssKeyDataAesId ;
121 + context->cipher = CKM_AES_CBC ;
122 + context->keyId = xmlSecNssKeyDataAesId ;
150 + xmlSecNssBlockCipherCtxPtr context = NULL ;
155 + context = xmlSecNssBlockCipherGetCtx( transform ) ;
156 + if( context == NULL ) {
165 + if( xmlSecNssBlockCipherFetchCtx( context , transform->id ) < 0 ) {
174 + context->symkey = NULL ;
175 + context->cipherCtx = NULL ;
190 + xmlSecNssBlockCipherCtxPtr context = NULL ;
195 + context = xmlSecNssBlockCipherGetCtx( transform ) ;
196 + if( context == NULL ) {
205 + if( context->cipherCtx != NULL ) {
206 + PK11_DestroyContext( context->cipherCtx, PR_TRUE ) ;
207 + context->cipherCtx = NULL ;
210 + if( context->symkey != NULL ) {
211 + PK11_FreeSymKey( context->symkey ) ;
212 + context->symkey = NULL ;
215 + context->cipher = CKM_INVALID_MECHANISM ;
216 + context->keyId = NULL ;
233 + xmlSecNssBlockCipherCtxPtr context = NULL ;
241 + context = xmlSecNssBlockCipherGetCtx( transform ) ;
242 + if( context == NULL ) {
251 + keyReq->keyId = context->keyId ;
261 + if( context->symkey != NULL )
262 + cipherSize = PK11_GetKeyLength( context->symkey ) ;
284 + xmlSecNssBlockCipherCtxPtr context = NULL ;
295 + context = xmlSecNssBlockCipherGetCtx( transform ) ;
296 + if( context == NULL || context->keyId == NULL || context->symkey != NULL ) {
304 + xmlSecAssert2( xmlSecKeyCheckId( key, context->keyId ), -1 ) ;
325 + context->symkey = symkey ;
968 + * @transformCtx: the pointer to transform context object.
979 + xmlSecNssBlockCipherCtxPtr context = NULL ;
1007 + context = xmlSecNssBlockCipherGetCtx( transform ) ;
1008 + if( context == NULL ) {
1060 + if( context->cipherCtx == NULL ) {
1061 + rtv = xmlSecNssBlockCipherCtxInit( context, inBuf , outBuf , operation , cipherName , transfo…
1073 + if( context->cipherCtx == NULL && last != 0 ) {
1088 + if( context->cipherCtx != NULL ) {
1089 + rtv = xmlSecNssBlockCipherCtxUpdate( context, inBuf , outBuf , operation , cipherName , trans…
1106 + rtv = xmlSecNssBlockCipherCtxFinal( context, inBuf , outBuf , operation , cipherName , transf…