public void VerifySignatureAlgorithm(ITlsContext ctx, SignatureAndHashAlgorithm algorithm) { AssertTls12(ctx); if (!ctx.IsAlgorithmSupported(algorithm)) { throw new TlsException(AlertDescription.IlegalParameter); } }
public void VerifySignatureParameters(ITlsContext ctx, SignatureParameters parameters) { foreach (var algorithm in parameters.SignatureAndHashAlgorithms) { if (!ctx.IsAlgorithmSupported(algorithm)) { throw new TlsException(AlertDescription.IlegalParameter); } } }
public SignatureAndHashAlgorithm SelectSignatureAlgorithm(ITlsContext ctx, SignatureParameters parameters) { AssertTls12(ctx); foreach (var algorithm in parameters.SignatureAndHashAlgorithms) { if (ctx.IsAlgorithmSupported(algorithm)) { return(algorithm); } } throw new TlsException(AlertDescription.IlegalParameter, "No supported signature type available."); }
public void VerifySignatureParameters (ITlsContext ctx, SignatureParameters parameters) { foreach (var algorithm in parameters.SignatureAndHashAlgorithms) { if (!ctx.IsAlgorithmSupported (algorithm)) throw new TlsException (AlertDescription.IlegalParameter); } }
public void VerifySignatureAlgorithm (ITlsContext ctx, SignatureAndHashAlgorithm algorithm) { AssertTls12 (ctx); if (!ctx.IsAlgorithmSupported (algorithm)) throw new TlsException (AlertDescription.IlegalParameter); }
public SignatureAndHashAlgorithm SelectSignatureAlgorithm (ITlsContext ctx, SignatureParameters parameters) { AssertTls12 (ctx); foreach (var algorithm in parameters.SignatureAndHashAlgorithms) { if (ctx.IsAlgorithmSupported (algorithm)) return algorithm; } throw new TlsException (AlertDescription.IlegalParameter, "No supported signature type available."); }