[FFmpeg-devel] [PATCH] use bcrypt instead of the old wincrypt API

Derek Buitenhuis derek.buitenhuis at gmail.com
Sat Mar 31 17:46:23 EEST 2018


On 3/30/2018 1:44 PM, Steve Lhomme wrote:
> +    if (BCRYPT_SUCCESS(ret)) {
> +        NTSTATUS ret = BCryptGenRandom(algo_handle, &seed, sizeof(seed), 0);
> +        BCryptCloseAlgorithmProvider(algo_handle, 0);
> +        if (BCRYPT_SUCCESS(ret))
>              return seed;
>      }

How does this behave in the case of failure?

- Derek


More information about the ffmpeg-devel mailing list