369 if (iState == EExportPublic) |
369 if (iState == EExportPublic) |
370 { |
370 { |
371 Cancel(); |
371 Cancel(); |
372 } |
372 } |
373 } |
373 } |
|
374 |
|
375 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
|
376 void CUnifiedKeyStore::Open(const TCTTokenObjectHandle& aHandle, |
|
377 CryptoSpi::CSigner*& aSigner, |
|
378 TRequestStatus& aStatus) |
|
379 { |
|
380 if (DoOpen(aHandle, aStatus)) |
|
381 { |
|
382 iKeyStore->Open(aHandle, aSigner, iStatus); |
|
383 } |
|
384 } |
|
385 |
|
386 void CUnifiedKeyStore::Open(const TCTTokenObjectHandle& aHandle, |
|
387 CryptoSpi:: CAsymmetricCipher*& asymmetricCipherObj, |
|
388 TRequestStatus& aStatus) |
|
389 { |
|
390 if (DoOpen(aHandle, aStatus)) |
|
391 { |
|
392 iKeyStore->Open(aHandle, asymmetricCipherObj, iStatus); |
|
393 } |
|
394 } |
|
395 |
|
396 void CUnifiedKeyStore::Decrypt(const TCTTokenObjectHandle& aHandle, |
|
397 const TDesC8& aCiphertext, |
|
398 HBufC8*& aPlaintextPtr, |
|
399 TRequestStatus& aStatus) |
|
400 { |
|
401 if (DoOpen(aHandle, aStatus)) |
|
402 { |
|
403 iKeyStore->Decrypt(aHandle, aCiphertext, aPlaintextPtr, iStatus); |
|
404 } |
|
405 } |
|
406 |
|
407 void CUnifiedKeyStore::Sign(const TCTTokenObjectHandle& aHandle, |
|
408 const TDesC8& aPlaintext, |
|
409 CryptoSpi::CCryptoParams*& aSignature, |
|
410 TRequestStatus& aStatus) |
|
411 { |
|
412 if (DoOpen(aHandle, aStatus)) |
|
413 { |
|
414 iKeyStore->Sign(aHandle, aPlaintext, aSignature, iStatus); |
|
415 } |
|
416 } |
|
417 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT |
374 |
418 |
375 // ************************************************************************ |
419 // ************************************************************************ |
376 // MKeyStoreManager |
420 // MKeyStoreManager |
377 // ************************************************************************ |
421 // ************************************************************************ |
378 |
422 |