BraintreeEncryption.Library.BouncyCastle.Crypto.Engines.RsaCoreEngine.GetInputBlockSize C# (CSharp) Method

GetInputBlockSize() public method

public GetInputBlockSize ( ) : int
return int
        public int GetInputBlockSize()
        {
            if (forEncryption)
            {
                return (bitSize - 1) / 8;
            }

            return (bitSize + 7) / 8;
        }

Usage Example

 /**
  * Return the maximum size for an input block to this engine.
  * For RSA this is always one byte less than the key size on
  * encryption, and the same length as the key size on decryption.
  *
  * @return maximum size for an input block.
  */
 public int GetInputBlockSize()
 {
     return(core.GetInputBlockSize());
 }