public static function importEncryptionKeyPair(HiddenString $keyData): EncryptionKeyPair
    {
        return new EncryptionKeyPair(
            new EncryptionSecretKey(
                new HiddenString(
                    self::getKeyDataFromString(
                        Hex::decode($keyData->getString())
                    )
                )
            )
        );
    }
public static function importEncryptionKeyPair(HiddenString $keyData): EncryptionKeyPair
    {
        return new EncryptionKeyPair(
            new EncryptionSecretKey(
                new HiddenString(
                    self::getKeyDataFromString(
                        Hex::decode($keyData->getString())
                    )
                )
            )
        );
    }
public static function importEncryptionKeyPair ( HiddenString $ keyData ) : EncryptionKeyPair { return new EncryptionKeyPair ( new EncryptionSecretKey ( new HiddenString ( self :: getKeyDataFromString ( Hex :: decode ( $ keyData -> getString ( ) ) ) ) ) ) ; }
Load an asymmetric encryption key pair from a string

@param HiddenString $keyData
@return EncryptionKeyPair

@throws InvalidKey
@throws \TypeError
Load an asymmetric encryption key pair from a string