PKey.Bits
---------

Queries number of bits of key.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Certificates](component_Certificates.md) | [7.0](newinversion70.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "PKey.Bits"; PKeyRef ) 

**MBS**( **"PKey.Bits";** /\* Queries number of bits of key. \*/  
**$PKeyRef**) /\* The reference to the private key.e.g. $pkey \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PKeyRef | The reference to the private key. | $pkey |

### Result

Returns bits count or error.

### Description

Queries number of bits of key.  
### See also

- [PKey.List](PKeyList.md)

This function checks for a license.

Created 23th December 2016 , last changed 23th December 2016

  
[PKCS7.SignedDataContent](PKCS7SignedDataContent.md) - [PKey.DescriptionPrivateKey](PKeyDescriptionPrivateKey.md)

[HTML Version](PKeyBits.shtml)