mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-09 15:20:58 +00:00
Crypt/Base: add getBlockLength() method
This commit is contained in:
parent
bfba3db1a7
commit
8691035228
@ -576,7 +576,7 @@ class Crypt_Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the current key length
|
* Returns the current key length in bits
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return int
|
* @return int
|
||||||
@ -586,6 +586,17 @@ class Crypt_Base
|
|||||||
return $this->key_size << 3;
|
return $this->key_size << 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the current block length in bits
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return int
|
||||||
|
*/
|
||||||
|
function getBlockLength()
|
||||||
|
{
|
||||||
|
return $this->block_size << 3;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the key.
|
* Sets the key.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user