Lines Matching refs:type
23 * The single block cipher API is used with the ciphers of type
24 * CRYPTO_ALG_TYPE_CIPHER (listed as type "cipher" in /proc/crypto).
46 * @type: specifies the type of the cipher
57 u32 type, u32 mask)
59 type &= ~CRYPTO_ALG_TYPE_MASK;
60 type |= CRYPTO_ALG_TYPE_CIPHER;
63 return __crypto_cipher_cast(crypto_alloc_base(alg_name, type, mask));
84 * @type: specifies the type of the cipher
90 static inline int crypto_has_cipher(const char *alg_name, u32 type, u32 mask)
92 type &= ~CRYPTO_ALG_TYPE_MASK;
93 type |= CRYPTO_ALG_TYPE_CIPHER;
96 return crypto_has_alg(alg_name, type, mask);
145 * Note, the key length determines the cipher type. Many block ciphers implement
187 const char *name, u32 type, u32 mask)
189 type &= ~CRYPTO_ALG_TYPE_MASK;
190 type |= CRYPTO_ALG_TYPE_CIPHER;
192 return crypto_grab_spawn(&spawn->base, inst, name, type, mask);
209 u32 type = CRYPTO_ALG_TYPE_CIPHER;
212 return __crypto_cipher_cast(crypto_spawn_tfm(&spawn->base, type, mask));