public CtVerifier ( byte publicKey ) : System | ||
publicKey | byte | |
return | System |
public CtVerifier(byte[] publicKey)
{
var key = DecodeSubjectPublicKeyInfo(publicKey);
if (key == null)
{
throw new ArgumentException("Could not decode public key.", nameof(publicKey));
}
_key = key;
using (var sha = new SHA256Cng())
{
LogId = sha.ComputeHash(publicKey);
}
}