<!--
{
  "availability" : [
    "macOS: 10.2.0 - 10.9.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SSLSetRsaBlinding",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SSLSetRsaBlinding"
  },
  "title" : "SSLSetRsaBlinding"
}
-->

# SSLSetRsaBlinding

Enables or disables RSA blinding.

```
OSStatus SSLSetRsaBlinding(SSLContextRef context, Boolean blinding);
```

## Parameters

`context`

An SSL session context reference.

`blinding`

A Boolean value indicating whether to enable RSA blinding. Pass `true` to enable RSA blinding.

## Return Value

A result code. See [Secure Transport Result Codes](/documentation/Security/secure-transport-result-codes).

## Discussion

This function is used only on the server side of a connection.

This feature thwarts a known attack to which RSA keys are vulnerable: It is possible to guess the RSA key by timing how long it takes the server to calculate the response to certain queries. RSA blinding adds a random calculation to each query response, thus making the attack impossible. Enabling RSA blinding is a trade-off between performance and security.

RSA blinding is enabled by default. Use the [`SSLGetRsaBlinding`](/documentation/Security/SSLGetRsaBlinding) function to determine the current setting.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)