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

Steve Lhomme robux4 at ycbcr.xyz
Tue Apr 3 12:39:15 EEST 2018


Le 31/03/2018 à 16:46, Derek Buitenhuis a écrit :
> 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?

It falls through the rest of the code until something works, like 
get_generic_seed().

>
> - Derek
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel



More information about the ffmpeg-devel mailing list