forked from openssh/openssh-portable
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [email protected] 2014/05/02 03:27:54
[chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c] [misc.h poly1305.h ssh-pkcs11.c defines.h] revert __bounded change; it causes way more problems for portable than it solves; pointed out by dtucker@
- Loading branch information
Showing
11 changed files
with
49 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,11 @@ | |
UMAC can use our local fallback implementation of AES when OpenSSL isn't | ||
available. Glue code straight from Ted Krovetz's original umac.c. | ||
ok markus@ | ||
- [email protected] 2014/05/02 03:27:54 | ||
[chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c] | ||
[misc.h poly1305.h ssh-pkcs11.c defines.h] | ||
revert __bounded change; it causes way more problems for portable than | ||
it solves; pointed out by dtucker@ | ||
|
||
20140430 | ||
- (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* $OpenBSD: cipher-chachapoly.h,v 1.2 2014/03/26 04:55:35 djm Exp $ */ | ||
/* $OpenBSD: cipher-chachapoly.h,v 1.3 2014/05/02 03:27:54 djm Exp $ */ | ||
|
||
/* | ||
* Copyright (c) Damien Miller 2013 <[email protected]> | ||
|
@@ -30,12 +30,12 @@ struct chachapoly_ctx { | |
|
||
void chachapoly_init(struct chachapoly_ctx *cpctx, | ||
const u_char *key, u_int keylen) | ||
__bounded((__buffer__, 2, 3)); | ||
__attribute__((__bounded__(__buffer__, 2, 3))); | ||
int chachapoly_crypt(struct chachapoly_ctx *cpctx, u_int seqnr, | ||
u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen, | ||
int do_encrypt); | ||
int chachapoly_get_length(struct chachapoly_ctx *cpctx, | ||
u_int *plenp, u_int seqnr, const u_char *cp, u_int len) | ||
__bounded((__buffer__, 4, 5)); | ||
__attribute__((__bounded__(__buffer__, 4, 5))); | ||
|
||
#endif /* CHACHA_POLY_AEAD_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* $OpenBSD: digest.h,v 1.3 2014/03/26 04:55:35 djm Exp $ */ | ||
/* $OpenBSD: digest.h,v 1.4 2014/05/02 03:27:54 djm Exp $ */ | ||
/* | ||
* Copyright (c) 2013 Damien Miller <[email protected]> | ||
* | ||
|
@@ -45,18 +45,18 @@ int ssh_digest_copy_state(struct ssh_digest_ctx *from, | |
/* One-shot API */ | ||
int ssh_digest_memory(int alg, const void *m, size_t mlen, | ||
u_char *d, size_t dlen) | ||
__bounded((__buffer__, 2, 3)) | ||
__bounded((__buffer__, 4, 5)); | ||
__attribute__((__bounded__(__buffer__, 2, 3))) | ||
__attribute__((__bounded__(__buffer__, 4, 5))); | ||
int ssh_digest_buffer(int alg, const Buffer *b, u_char *d, size_t dlen) | ||
__bounded((__buffer__, 3, 4)); | ||
__attribute__((__bounded__(__buffer__, 3, 4))); | ||
|
||
/* Update API */ | ||
struct ssh_digest_ctx *ssh_digest_start(int alg); | ||
int ssh_digest_update(struct ssh_digest_ctx *ctx, const void *m, size_t mlen) | ||
__bounded((__buffer__, 2, 3)); | ||
__attribute__((__bounded__(__buffer__, 2, 3))); | ||
int ssh_digest_update_buffer(struct ssh_digest_ctx *ctx, const Buffer *b); | ||
int ssh_digest_final(struct ssh_digest_ctx *ctx, u_char *d, size_t dlen) | ||
__bounded((__buffer__, 2, 3)); | ||
__attribute__((__bounded__(__buffer__, 2, 3))); | ||
void ssh_digest_free(struct ssh_digest_ctx *ctx); | ||
|
||
#endif /* _DIGEST_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* $OpenBSD: misc.h,v 1.52 2014/04/20 02:30:25 djm Exp $ */ | ||
/* $OpenBSD: misc.h,v 1.53 2014/05/02 03:27:54 djm Exp $ */ | ||
|
||
/* | ||
* Author: Tatu Ylonen <[email protected]> | ||
|
@@ -70,23 +70,23 @@ int tun_open(int, int); | |
|
||
/* Functions to extract or store big-endian words of various sizes */ | ||
u_int64_t get_u64(const void *) | ||
__bounded(( __minbytes__, 1, 8)); | ||
__attribute__((__bounded__( __minbytes__, 1, 8))); | ||
u_int32_t get_u32(const void *) | ||
__bounded(( __minbytes__, 1, 4)); | ||
__attribute__((__bounded__( __minbytes__, 1, 4))); | ||
u_int16_t get_u16(const void *) | ||
__bounded(( __minbytes__, 1, 2)); | ||
__attribute__((__bounded__( __minbytes__, 1, 2))); | ||
void put_u64(void *, u_int64_t) | ||
__bounded(( __minbytes__, 1, 8)); | ||
__attribute__((__bounded__( __minbytes__, 1, 8))); | ||
void put_u32(void *, u_int32_t) | ||
__bounded(( __minbytes__, 1, 4)); | ||
__attribute__((__bounded__( __minbytes__, 1, 4))); | ||
void put_u16(void *, u_int16_t) | ||
__bounded(( __minbytes__, 1, 2)); | ||
__attribute__((__bounded__( __minbytes__, 1, 2))); | ||
|
||
/* Little-endian store/load, used by umac.c */ | ||
u_int32_t get_u32_le(const void *) | ||
__bounded(( __minbytes__, 1, 4)); | ||
__attribute__((__bounded__(__minbytes__, 1, 4))); | ||
void put_u32_le(void *, u_int32_t) | ||
__bounded(( __minbytes__, 1, 4)); | ||
__attribute__((__bounded__(__minbytes__, 1, 4))); | ||
|
||
struct bwlimit { | ||
size_t buflen; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters