Org.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

Пример #1
0
 /**
  * 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());
 }
All Usage Examples Of Org.BouncyCastle.Crypto.Engines.RsaCoreEngine::GetOutputBlockSize