Jump to content

CryptSetProvParam


Val

Recommended Posts

Столкнулся с проблемой.

  param := 'Infotecs Cryptographic Service Provider';
  CryptAcquireContext(hProv, @Container, @param, 2, 0);
  pparam := '1.2.643.2.2.9';
  CryptSetProvParam(phCryptProv, PP_HASHOID {92}, pParam, 0);

Падает с ошибкой что неверный параметр, то есть код 92 не подходит, хотя во все документации где он встречается имеет именно такое значение. В чем может быть проблема?

Почему то дефолтный протокол хеширования по госту 32798 выбирается '1.2.643.2.2.30.1', а в документации указаны другие.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.