c# - Does system.security.cryptography.sha1 use OpenSSL library's implementation of SHA1 algorithm? -


or algorithm custom implemented microsoft? tested sha1 computed using openssl on mac equivalent hash computed in c# using system.security.cryptography.sha1.

system.security.cryptography.sha1 abstract class. has 3 implementations:

so, no, none of implementations ship .net framework use openssl internally.

mono ships different implementations these classes. use the same implementation written in pure c#.

the reason why you're getting same result sha1 algorithm deterministic, i.e. produces same result same input.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -