![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to exchange AES keys between MS RSA & AES CSP and my custom CSP. Scenario is as follows: - Create RSA exchange key with custom CSP - Export PUBLICKEYBLOB from custom CSP (as little-endian) - Import exported blob into MS CSP as public RSA key - Generate AES key with MS CSP (as CRYPT_EXPORTABLE) - Export AES key SIMLEBLOB encrypted with public key exported with custom CSP - Trying to import that blob into custom CSP During last step I always got an error that imported key cipher (remaining of blob after removing blob header) is not properly padded (it should be PKCS1 type 2, by MSDN). Does anybody has any idea what could be wrong with this? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |