1497. Class

1497.1. Zend\Crypt\PublicKey\RsaOptions

RSA instance options

1497.1.1. Methods

1497.1.1.1. setPrivateKey

setPrivateKey()

Set private key

Parameters:RsaPrivateKey
Return type:RsaOptions

1497.1.1.2. getPrivateKey

getPrivateKey()

Get private key

Return type:null|RsaPrivateKey

1497.1.1.3. setPublicKey

setPublicKey()

Set public key

Parameters:RsaPublicKey
Return type:RsaOptions

1497.1.1.4. getPublicKey

getPublicKey()

Get public key

Return type:null|RsaPublicKey

1497.1.1.5. setPassPhrase

setPassPhrase()

Set pass phrase

Parameters:string
Return type:RsaOptions

1497.1.1.6. getPassPhrase

getPassPhrase()

Get pass phrase

Return type:string

1497.1.1.7. setHashAlgorithm

setHashAlgorithm()

Set hash algorithm

Parameters:string
Return type:RsaOptions
Throws :RsaExceptionRuntimeException
Throws :RsaExceptionInvalidArgumentException

1497.1.1.8. getHashAlgorithm

getHashAlgorithm()

Get hash algorithm

Return type:string

1497.1.1.9. getOpensslSignatureAlgorithm

getOpensslSignatureAlgorithm()

1497.1.1.10. setBinaryOutput

setBinaryOutput()

Enable/disable the binary output

Parameters:bool
Return type:RsaOptions

1497.1.1.11. getBinaryOutput

getBinaryOutput()

Get the value of binary output

Return type:bool

1497.1.1.12. generateKeys

generateKeys()

Generate new private/public key pair

Parameters:array
Return type:RsaOptions
Throws :RsaExceptionRuntimeException