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:
- sha1managed: implementation in pure c#
- sha1cryptoserviceprovider: implementation provided windows
- sha1cng: ("next generation") implementation provided windows
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
Post a Comment