Lines Matching refs:context
306 + * This context is located after xmlSecPtrList
1268 + * Internal NSS key store context
1271 + * This context is located after xmlSecKeyStore
1306 + xmlSecNssKeysStoreCtxPtr context = NULL ;
1310 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1311 + if( context == NULL ) {
1320 + if( context->slotList == NULL ) {
1321 + if( ( context->slotList = xmlSecPtrListCreate( xmlSecNssKeySlotListId ) ) == NULL )…
1331 + if( !xmlSecPtrListCheckId( context->slotList , xmlSecNssKeySlotListId ) ) {
1340 + if( xmlSecPtrListAdd( context->slotList , keySlot ) < 0 ) {
1367 + xmlSecNssKeysStoreCtxPtr context = NULL ;
1372 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1373 + if( context == NULL ) {
1382 + if( context->keyList == NULL ) {
1383 + if( ( context->keyList = xmlSecPtrListCreate( xmlSecKeyPtrListId ) ) == NULL ) {
1393 + if( !xmlSecPtrListCheckId( context->keyList , xmlSecKeyPtrListId ) ) {
1402 + if( xmlSecPtrListAdd( context->keyList , key ) < 0 ) {
1434 + xmlSecNssKeysStoreCtxPtr context = NULL ;
1439 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1440 + if( context == NULL ) {
1449 + context->keyList = NULL ;
1450 + context->slotList = NULL ;
1478 + xmlSecNssKeysStoreCtxPtr context = NULL ;
1483 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1484 + if( context == NULL ) {
1493 + if( context->keyList != NULL ) {
1494 + xmlSecPtrListDestroy( context->keyList ) ;
1495 + context->keyList = NULL ;
1498 + if( context->slotList != NULL ) {
1499 + xmlSecPtrListDestroy( context->slotList ) ;
1500 + context->slotList = NULL ;
1649 + * @keyInfoCtx: the pointer to key info context.
1662 + xmlSecNssKeysStoreCtxPtr context = NULL ;
1672 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1673 + if( context == NULL ) {
1685 + if( context->keyList != NULL ) {
1686 + size = xmlSecPtrListGetSize( context->keyList ) ;
1688 + key = ( xmlSecKeyPtr )xmlSecPtrListGetItem( context->keyList , pos ) ;
1698 + if( context->slotList != NULL ) {
1701 + size = xmlSecPtrListGetSize( context->slotList ) ;
1703 + keySlot = ( xmlSecNssKeySlotPtr )xmlSecPtrListGetItem( context->slotList , pos…
1777 + xmlSecNssKeysStoreCtxPtr context ;
1806 + context = xmlSecNssKeysStoreGetCtx( store ) ;
1807 + xmlSecAssert2( context != NULL, -1 );
1811 + list = context->keyList ;
2240 + xmlSecNssKeyWrapCtxPtr context ;
2246 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
2247 + xmlSecAssert2( context != NULL , -1 ) ;
2251 + context->cipher = CKM_DES3_CBC ;
2252 + context->keyId = xmlSecNssKeyDataDesId ;
2258 + /* context->cipher = CKM_NETSCAPE_AES_KEY_WRAP ;*/
2259 + context->cipher = CKM_AES_CBC ;
2260 + context->keyId = xmlSecNssKeyDataAesId ;
2263 + /* context->cipher = CKM_NETSCAPE_AES_KEY_WRAP ;*/
2264 + context->cipher = CKM_AES_CBC ;
2265 + context->keyId = xmlSecNssKeyDataAesId ;
2268 + /* context->cipher = CKM_NETSCAPE_AES_KEY_WRAP ;*/
2269 + context->cipher = CKM_AES_CBC ;
2270 + context->keyId = xmlSecNssKeyDataAesId ;
2284 + context->symkey = NULL ;
2285 + context->material = NULL ;
2292 + xmlSecNssKeyWrapCtxPtr context ;
2297 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
2298 + xmlSecAssert( context != NULL ) ;
2300 + if( context->symkey != NULL ) {
2301 + PK11_FreeSymKey( context->symkey ) ;
2302 + context->symkey = NULL ;
2305 + if( context->material != NULL ) {
2306 + xmlSecBufferDestroy(context->material);
2307 + context->material = NULL ;
2313 + xmlSecNssKeyWrapCtxPtr context ;
2322 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
2323 + xmlSecAssert2( context != NULL , -1 ) ;
2325 + keyReq->keyId = context->keyId;
2340 + xmlSecNssKeyWrapCtxPtr context = NULL ;
2349 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
2350 + if( context == NULL || context->keyId == NULL || context->symkey != NULL ) {
2358 + xmlSecAssert2( xmlSecKeyCheckId( key, context->keyId ), -1 ) ;
2379 + context->symkey = symkey ;
2429 + /* read raw key material into context */
2471 + /* read raw key material and append into context */
2515 + PK11Context *context = NULL;
2524 + /* Create a context for hashing (digesting) */
2525 + context = PK11_CreateDigestContext(SEC_OID_SHA1);
2526 + if (context == NULL) {
2535 + s = PK11_DigestBegin(context);
2545 + s = PK11_DigestOp(context, in, inSize);
2555 + s = PK11_DigestFinal(context, out, &len, outSize);
2569 + if (context != NULL) {
2570 + PK11_DestroyContext(context, PR_TRUE);
2894 + /* Get Param for context initialization */
2971 + /* read raw key material and append into context */
3054 + xmlSecNssKeyWrapCtxPtr context = NULL ;
3064 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
3065 + if( context == NULL ) {
3083 + if( context->material == NULL ) {
3084 + rtv = xmlSecNssKeyWrapCtxInit( context, inBuf , outBuf , operation , transformCtx ) ;
3095 + if( context->material == NULL && last != 0 ) {
3104 + if( context->material != NULL ) {
3105 + rtv = xmlSecNssKeyWrapCtxUpdate( context, inBuf , outBuf , operation , transformCtx ) ;
3117 + rtv = xmlSecNssKeyWrapCtxFinal( context, inBuf , outBuf , operation , transformCtx ) ;
3584 + xmlSecNssSymKeyDataCtxPtr context = NULL ;
3590 + context = xmlSecNssSymKeyDataGetCtx( data ) ;
3591 + xmlSecAssert2(context != NULL, -1);
3593 + context->cipher = PK11_GetMechanism( symkey ) ;
3595 + if( context->slot != NULL ) {
3596 + PK11_FreeSlot( context->slot ) ;
3597 + context->slot = NULL ;
3599 + context->slot = PK11_GetSlotFromKey( symkey ) ;
3601 + if( context->symkey != NULL ) {
3602 + PK11_FreeSymKey( context->symkey ) ;
3603 + context->symkey = NULL ;
3605 + context->symkey = PK11_ReferenceSymKey( symkey ) ;
4260 + xmlSecNssSymKeyDataCtxPtr context = NULL ;
4268 + context = xmlSecNssSymKeyDataGetCtx( data ) ;
4269 + if( context == NULL ) {
4279 + if( context->symkey != NULL ) {
4290 + xmlSecNssSymKeyDataCtxPtr context ;
4295 + context = xmlSecNssSymKeyDataGetCtx( data ) ;
4296 + if( context == NULL ) {
4305 + if( context->symkey != NULL ) {
4306 + length = PK11_GetKeyLength( context->symkey ) ;
5013 + /* set base64 lines size from context */
5044 + /* todo: add \n around base64 data - from context */
5084 + /* set base64 lines size from context */
5131 + /* todo: add \n around base64 data - from context */
5151 - /* set base64 lines size from context */
5174 - /* todo: add \n around base64 data - from context */
5446 - /* set base64 lines size from context */
5468 - /* todo: add \n around base64 data - from context */