verifyRsaPkcs1Signature

fnbool verifyRsaPkcs1Signature(RSAPublicKey key, SignatureScheme sigScheme, const(ubyte)[] message, const(ubyte)[] signature)

Verifies an RSA PKCS#1 v1.5 signature for TLS 1.2 ServerKeyExchange.

Parameters

keyRSA public key extracted from the peer certificate.
sigSchemeSignature scheme advertised in the handshake.
messageRaw handshake bytes covered by the signature.
signatureReceived signature bytes.

Returns

true if the signature is valid for message.

Throws

TlsHandshakeException if sigScheme is not an RSA PKCS#1 v1.5 scheme.