CryptoSys PKI Pro Manual

Cipher.KeyBytes Method

Return the key size in bytes for a given cipher algorithm.

Syntax

[C#]
public static int KeyBytes(
   CipherAlgorithm alg 
)
[VB]
Public Shared Function KeyBytes (
   alg As CipherAlgorithm 
) As Integer

Parameters

alg  CipherAlgorithm
Cipher algorithm

Return Value

Int32
Key size in bytes

[Contents] [Index]

[PREV: Cipher.FileEncrypt(String, String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts) Method...]   [Contents]   [Index]   
   [NEXT: Cipher.KeyUnwrap Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.