mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-08 14:51:00 +00:00
Merge branch 'getkeylength' into getkeylength-2.0-2
This commit is contained in:
commit
1f47daede7
@ -546,7 +546,7 @@ abstract class Base
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current key length
|
||||
* Returns the current key length in bits
|
||||
*
|
||||
* @access public
|
||||
* @return int
|
||||
@ -556,6 +556,17 @@ abstract class Base
|
||||
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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user