Lines Matching refs:cipher

64 	const struct sshcipher *cipher;  member
241 if (cc == NULL || cc->cipher == NULL) in cipher_warning_message()
248 cipher_init(struct sshcipher_ctx **ccp, const struct sshcipher *cipher, in cipher_init() argument
263 cc->plaintext = (cipher->flags & CFLAG_NONE) != 0; in cipher_init()
266 if (keylen < cipher->key_len || in cipher_init()
267 (iv != NULL && ivlen < cipher_ivlen(cipher))) { in cipher_init()
272 cc->cipher = cipher; in cipher_init()
273 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) { in cipher_init()
278 if ((cc->cipher->flags & CFLAG_NONE) != 0) { in cipher_init()
283 if ((cc->cipher->flags & CFLAG_AESCTR) != 0) { in cipher_init()
292 type = (*cipher->evptype)(); in cipher_init()
302 if (cipher_authlen(cipher) && in cipher_init()
350 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) { in cipher_crypt()
354 if ((cc->cipher->flags & CFLAG_NONE) != 0) { in cipher_crypt()
359 if ((cc->cipher->flags & CFLAG_AESCTR) != 0) { in cipher_crypt()
371 if (authlen != cipher_authlen(cc->cipher)) in cipher_crypt()
389 if (len % cc->cipher->block_size) in cipher_crypt()
413 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) in cipher_get_length()
427 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) { in cipher_free()
430 } else if ((cc->cipher->flags & CFLAG_AESCTR) != 0) in cipher_free()
447 const struct sshcipher *c = cc->cipher; in cipher_get_keyiv_len()
464 const struct sshcipher *c = cc->cipher; in cipher_get_keyiv()
468 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) { in cipher_get_keyiv()
473 if ((cc->cipher->flags & CFLAG_AESCTR) != 0) { in cipher_get_keyiv()
479 if ((cc->cipher->flags & CFLAG_NONE) != 0) in cipher_get_keyiv()
509 const struct sshcipher *c = cc->cipher; in cipher_set_keyiv()
513 if ((cc->cipher->flags & CFLAG_CHACHAPOLY) != 0) in cipher_set_keyiv()
515 if ((cc->cipher->flags & CFLAG_NONE) != 0) in cipher_set_keyiv()