require '_h2ph_pre.ph';

unless(defined(&__HIFN7751VAR_H__)) {
    eval 'sub __HIFN7751VAR_H__ () {1;}' unless defined(&__HIFN7751VAR_H__);
    eval 'sub HIFN_DES_KEY_LENGTH () {8;}' unless defined(&HIFN_DES_KEY_LENGTH);
    eval 'sub HIFN_3DES_KEY_LENGTH () {24;}' unless defined(&HIFN_3DES_KEY_LENGTH);
    eval 'sub HIFN_MAX_CRYPT_KEY_LENGTH () { &HIFN_3DES_KEY_LENGTH;}' unless defined(&HIFN_MAX_CRYPT_KEY_LENGTH);
    eval 'sub HIFN_IV_LENGTH () {8;}' unless defined(&HIFN_IV_LENGTH);
    eval 'sub HIFN_MAC_KEY_LENGTH () {64;}' unless defined(&HIFN_MAC_KEY_LENGTH);
    eval 'sub HIFN_MD5_LENGTH () {16;}' unless defined(&HIFN_MD5_LENGTH);
    eval 'sub HIFN_SHA1_LENGTH () {20;}' unless defined(&HIFN_SHA1_LENGTH);
    eval 'sub HIFN_MAC_TRUNC_LENGTH () {12;}' unless defined(&HIFN_MAC_TRUNC_LENGTH);
    eval 'sub MAX_SCATTER () {64;}' unless defined(&MAX_SCATTER);
    eval 'sub HIFN_CRYPTO_SUCCESS () {0;}' unless defined(&HIFN_CRYPTO_SUCCESS);
    eval 'sub HIFN_CRYPTO_BAD_INPUT () {(-1);}' unless defined(&HIFN_CRYPTO_BAD_INPUT);
    eval 'sub HIFN_CRYPTO_RINGS_FULL () {(-2);}' unless defined(&HIFN_CRYPTO_RINGS_FULL);
    eval 'sub HIFN_MAC_BAD () {1;}' unless defined(&HIFN_MAC_BAD);
    eval 'sub HIFN_MAC_OK {
        local($r) = @_;
	    eval q((!(($r) &  &HIFN_MAC_BAD)));
    }' unless defined(&HIFN_MAC_OK);
    if(defined(&_KERNEL)) {
	eval 'sub HIFN_CARD {
	    local($sid) = @_;
    	    eval q(((($sid) & 0xf0000000) >> 28));
	}' unless defined(&HIFN_CARD);
	eval 'sub HIFN_SESSION {
	    local($sid) = @_;
    	    eval q((($sid) & 0x000007ff));
	}' unless defined(&HIFN_SESSION);
	eval 'sub HIFN_SID {
	    local($crd,$ses) = @_;
    	    eval q(((($crd) << 28) | (($ses) & 0x7ff)));
	}' unless defined(&HIFN_SID);
    }
}
1;
