BraintreeEncryption.Library.BouncyCastle.Crypto.Engines.RsaCoreEngine.GetOutputBlockSize C# (CSharp) Метод

GetOutputBlockSize() публичный Метод

public GetOutputBlockSize ( ) : int
Результат int
        public int GetOutputBlockSize()
        {
            if (forEncryption)
            {
                return (bitSize + 7) / 8;
            }

            return (bitSize - 1) / 8;
        }

Usage Example

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