Lines Matching refs:cipher

61 	const struct sshcipher *cipher;  member
229 if (cc == NULL || cc->cipher == NULL) in cipher_warning_message()
236 cipher_init(struct sshcipher_ctx **ccp, const struct sshcipher *cipher, in cipher_init() argument
251 cc->plaintext = (cipher->flags & CFLAG_NONE) != 0; in cipher_init()
254 if (keylen < cipher->key_len || in cipher_init()
255 (iv != NULL && ivlen < cipher_ivlen(cipher))) { in cipher_init()
260 cc->cipher = cipher; in cipher_init()
261 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) { in cipher_init()
265 if ((cc->cipher->flags & CFLAG_NONE) != 0) { in cipher_init()
270 if ((cc->cipher->flags & CFLAG_AESCTR) != 0) { in cipher_init()
279 type = (*cipher->evptype)(); in cipher_init()
289 if (cipher_authlen(cipher) && in cipher_init()
338 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) { in cipher_crypt()
342 if ((cc->cipher->flags & CFLAG_NONE) != 0) { in cipher_crypt()
347 if ((cc->cipher->flags & CFLAG_AESCTR) != 0) { in cipher_crypt()
359 if (authlen != cipher_authlen(cc->cipher)) in cipher_crypt()
377 if (len % cc->cipher->block_size) in cipher_crypt()
401 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) in cipher_get_length()
415 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) in cipher_free()
417 else if ((cc->cipher->flags & CFLAG_AESCTR) != 0) in cipher_free()
435 const struct sshcipher *c = cc->cipher; in cipher_get_keyiv_len()
452 const struct sshcipher *c = cc->cipher; in cipher_get_keyiv()
456 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) { in cipher_get_keyiv()
461 if ((cc->cipher->flags & CFLAG_AESCTR) != 0) { in cipher_get_keyiv()
467 if ((cc->cipher->flags & CFLAG_NONE) != 0) in cipher_get_keyiv()
497 const struct sshcipher *c = cc->cipher; in cipher_set_keyiv()
501 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) in cipher_set_keyiv()
503 if ((cc->cipher->flags & CFLAG_NONE) != 0) in cipher_set_keyiv()