Lines Matching refs:strength
389 init_keysched(crypto_key_t *key, void *newbie, des_strength_t strength) in init_keysched() argument
398 if (strength == DES && key->ck_length != DES_MAXBITS) in init_keysched()
400 if (strength == DES3 && key->ck_length != DES3_MAXBITS) in init_keysched()
414 des_parity_fix(key->ck_data, strength, corrected_key); in init_keysched()
415 des_init_keysched(corrected_key, strength, newbie); in init_keysched()
438 des_strength_t strength; in des_common_init() local
462 strength = DES; in des_common_init()
475 strength = DES3; in des_common_init()
484 strength, kmflag)) != CRYPTO_SUCCESS) { in des_common_init()
793 des_strength_t strength; in des_encrypt_atomic() local
822 strength = DES; in des_encrypt_atomic()
831 strength = DES3; in des_encrypt_atomic()
840 strength, crypto_kmflag(req))) != CRYPTO_SUCCESS) { in des_encrypt_atomic()
896 des_strength_t strength; in des_decrypt_atomic() local
925 strength = DES; in des_decrypt_atomic()
934 strength = DES3; in des_decrypt_atomic()
943 strength, crypto_kmflag(req))) != CRYPTO_SUCCESS) { in des_decrypt_atomic()
999 des_strength_t strength; in des_create_ctx_template() local
1006 strength = DES; in des_create_ctx_template()
1009 strength = DES; in des_create_ctx_template()
1012 strength = DES3; in des_create_ctx_template()
1015 strength = DES3; in des_create_ctx_template()
1021 if ((keysched = des_alloc_keysched(&size, strength, in des_create_ctx_template()
1030 if ((rv = init_keysched(key, keysched, strength)) != CRYPTO_SUCCESS) { in des_create_ctx_template()
1072 des_strength_t strength; in des_key_check() local
1082 strength = DES; in des_key_check()
1087 strength = DES3; in des_key_check()
1101 if (des_keycheck(keydata, strength, key->ck_data) == B_FALSE) in des_key_check()
1110 crypto_mechanism_t *mechanism, crypto_key_t *key, des_strength_t strength, in des_common_init_ctx() argument
1119 if ((keysched = des_alloc_keysched(&size, strength, in des_common_init_ctx()
1127 strength)) != CRYPTO_SUCCESS) in des_common_init_ctx()
1137 if (strength == DES3) { in des_common_init_ctx()