Lines Matching refs:transform
1173 xmlSecErrorsSafeString(xmlSecTransformGetName(transform)),
1969 - "transform=%s",
2170 +#define xmlSecNssKeyWrapGetCtx( transform ) \
2171 + ( ( xmlSecNssKeyWrapCtxPtr )( ( ( xmlSecByte* )( transform ) ) + sizeof( xmlSecTransform ) ) )
2180 +static int xmlSecNssKeyWrapInitialize(xmlSecTransformPtr transform);
2181 +static void xmlSecNssKeyWrapFinalize(xmlSecTransformPtr transform);
2182 +static int xmlSecNssKeyWrapSetKeyReq(xmlSecTransformPtr transform,
2184 +static int xmlSecNssKeyWrapSetKey(xmlSecTransformPtr transform,
2186 +static int xmlSecNssKeyWrapExecute(xmlSecTransformPtr transform,
2189 +static xmlSecSize xmlSecNssKeyWrapGetKeySize(xmlSecTransformPtr transform);
2193 + xmlSecTransformPtr transform
2196 + if( xmlSecTransformCheckId( transform, xmlSecNssTransformKWDes3Id ) ) {
2202 + if( xmlSecTransformCheckId( transform, xmlSecNssTransformKWAes128Id ) ||
2203 + xmlSecTransformCheckId( transform, xmlSecNssTransformKWAes192Id ) ||
2204 + xmlSecTransformCheckId( transform, xmlSecNssTransformKWAes256Id ) ) {
2214 +xmlSecNssKeyWrapGetKeySize(xmlSecTransformPtr transform) {
2216 + if( xmlSecTransformCheckId( transform, xmlSecNssTransformKWDes3Id ) ) {
2222 + if(xmlSecTransformCheckId(transform, xmlSecNssTransformKWAes128Id)) {
2224 + } else if(xmlSecTransformCheckId(transform, xmlSecNssTransformKWAes192Id)) {
2226 + } else if(xmlSecTransformCheckId(transform, xmlSecNssTransformKWAes256Id)) {
2228 + } else if(xmlSecTransformCheckId(transform, xmlSecNssTransformKWAes256Id)) {
2239 +xmlSecNssKeyWrapInitialize(xmlSecTransformPtr transform) {
2243 + xmlSecAssert2(xmlSecNssKeyWrapCheckId(transform), -1);
2244 + xmlSecAssert2(xmlSecTransformCheckSize(transform, xmlSecNssKeyWrapSize), -1);
2246 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
2250 + if( transform->id == xmlSecNssTransformKWDes3Id ) {
2257 + if( transform->id == xmlSecNssTransformKWAes128Id ) {
2262 + if( transform->id == xmlSecNssTransformKWAes192Id ) {
2267 + if( transform->id == xmlSecNssTransformKWAes256Id ) {
2277 + xmlSecErrorsSafeString(xmlSecTransformGetName(transform)),
2291 +xmlSecNssKeyWrapFinalize(xmlSecTransformPtr transform) {
2294 + xmlSecAssert(xmlSecNssKeyWrapCheckId(transform));
2295 + xmlSecAssert(xmlSecTransformCheckSize(transform, xmlSecNssKeyWrapSize));
2297 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
2312 +xmlSecNssKeyWrapSetKeyReq(xmlSecTransformPtr transform, xmlSecKeyReqPtr keyReq) {
2317 + xmlSecAssert2(xmlSecNssKeyWrapCheckId(transform), -1);
2318 + xmlSecAssert2(xmlSecTransformCheckSize(transform, xmlSecNssKeyWrapSize), -1);
2319 + xmlSecAssert2((transform->operation == xmlSecTransformOperationEncrypt) || (transform->operati…
2322 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
2327 + if(transform->operation == xmlSecTransformOperationEncrypt) {
2333 + keyReq->keyBitsSize = xmlSecNssKeyWrapGetKeySize( transform ) ;
2339 +xmlSecNssKeyWrapSetKey(xmlSecTransformPtr transform, xmlSecKeyPtr key) {
2344 + xmlSecAssert2(xmlSecNssKeyWrapCheckId(transform), -1);
2345 + xmlSecAssert2(xmlSecTransformCheckSize(transform, xmlSecNssKeyWrapSize), -1);
2346 + xmlSecAssert2((transform->operation == xmlSecTransformOperationEncrypt) || (transform->operati…
2349 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
2352 + xmlSecErrorsSafeString( xmlSecTransformGetName( transform ) ) ,
2385 + * key wrap transform
2452 + * key wrap transform update
2948 + * Block cipher transform final
3053 +xmlSecNssKeyWrapExecute(xmlSecTransformPtr transform, int last, xmlSecTransformCtxPtr transformCtx…
3059 + xmlSecAssert2( xmlSecNssKeyWrapCheckId( transform ), -1 ) ;
3060 + xmlSecAssert2( xmlSecTransformCheckSize( transform, xmlSecNssKeyWrapSize ), -1 ) ;
3061 + xmlSecAssert2( ( transform->operation == xmlSecTransformOperationEncrypt ) || ( transform->ope…
3064 + context = xmlSecNssKeyWrapGetCtx( transform ) ;
3067 + xmlSecErrorsSafeString( xmlSecTransformGetName( transform ) ) ,
3074 + inBuf = &( transform->inBuf ) ;
3075 + outBuf = &( transform->outBuf ) ;
3077 + if( transform->status == xmlSecTransformStatusNone ) {
3078 + transform->status = xmlSecTransformStatusWorking ;
3081 + operation = ( transform->operation == xmlSecTransformOperationEncrypt ) ? 1 : 0 ;
3082 + if( transform->status == xmlSecTransformStatusWorking ) {
3087 + xmlSecErrorsSafeString( xmlSecTransformGetName( transform ) ) ,
3097 + xmlSecErrorsSafeString( xmlSecTransformGetName( transform ) ) ,
3100 + "No enough data to initialize transform" ) ;
3108 + xmlSecErrorsSafeString( xmlSecTransformGetName( transform ) ) ,
3120 + xmlSecErrorsSafeString( xmlSecTransformGetName( transform ) ) ,
3126 + transform->status = xmlSecTransformStatusFinished ;
3128 + } else if( transform->status == xmlSecTransformStatusFinished ) {
3131 + xmlSecErrorsSafeString( xmlSecTransformGetName( transform ) ) ,
3134 + "status=%d", transform->status ) ;
3139 + xmlSecErrorsSafeString( xmlSecTransformGetName( transform ) ) ,
3142 + "status=%d", transform->status ) ;
3248 + * The AES-128 key wrapper transform klass.
3250 + * Returns AES-128 key wrapper transform klass.
3260 + * The AES-192 key wrapper transform klass.
3262 + * Returns AES-192 key wrapper transform klass.
3271 + * The AES-256 key wrapper transform klass.
3273 + * Returns AES-256 key wrapper transform klass.
3319 + * The Triple DES key wrapper transform klass.
3321 + * Returns Triple DES key wrapper transform klass.