Category : cryptoapi

I don’t find some simple exemple using BCryptDeriveKeyPBKDF2 function. I need to get key with PBKDF2 algorithm. I think it is symple action but i find very diffucult ways. I using CryptoApi Windows and i need get key. Show me please how can i use this function to get key BCryptDeriveKeyPBKDF2 ? https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptderivekeypbkdf2 Source: Windows ..

Read more

I’m trying to encode and then decode CERT_AUTHORITY_KEY_ID_INFO structure. But I’m getting an error and I couldn’t find an example online. How to do the round trip properly? CERT_AUTHORITY_KEY_ID_INFO info; info.KeyId.cbData = 10; info.KeyId.pbData = new BYTE[10]{ 1,2,3,4,5,1,2,3,4,5 }; info.CertIssuer.cbData = 10; info.CertIssuer.pbData = new BYTE[10]{ 2,4,6,8,10,2,4,6,8,10 }; info.CertSerialNumber.cbData = 10; info.CertSerialNumber.pbData = new BYTE[10]{ ..

Read more