Searched refs:noise_encrypted_len (Results 1 – 5 of 5) sorted by relevance
25 #define noise_encrypted_len(plain_len) ((plain_len) + NOISE_AUTHTAG_LEN) macro84 u8 encrypted_static[noise_encrypted_len(NOISE_PUBLIC_KEY_LEN)];85 u8 encrypted_timestamp[noise_encrypted_len(NOISE_TIMESTAMP_LEN)];94 u8 encrypted_nothing[noise_encrypted_len(0)];102 u8 encrypted_cookie[noise_encrypted_len(COOKIE_LEN)];113 (noise_encrypted_len(plain_len) + sizeof(struct message_data))
177 trailer_len = padding_len + noise_encrypted_len(0); in encrypt_packet()214 noise_encrypted_len(plaintext_len)) <= 0) in encrypt_packet()
288 dev->needed_tailroom = noise_encrypted_len(MESSAGE_PADDING_MULTIPLE); in wg_setup()
294 if (pskb_trim(skb, skb->len - noise_encrypted_len(0))) in decrypt_packet()
470 mix_hash(hash, dst_ciphertext, noise_encrypted_len(src_len)); in message_encrypt()