cipher-aes.c (761efaa70c2ed8d35722b7bc234a46bf2457f876) | cipher-aes.c (4a421b6336e5e0c2ff27024c30fe32c6f71dcf3d) |
---|---|
1/* 2 * Copyright (c) 2003 Markus Friedl. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 58 unchanged lines hidden (view full) --- 67 } 68 if (iv != NULL) 69 memcpy(c->r_iv, iv, RIJNDAEL_BLOCKSIZE); 70 return (1); 71} 72 73static int 74ssh_rijndael_cbc(EVP_CIPHER_CTX *ctx, u_char *dest, const u_char *src, | 1/* 2 * Copyright (c) 2003 Markus Friedl. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 58 unchanged lines hidden (view full) --- 67 } 68 if (iv != NULL) 69 memcpy(c->r_iv, iv, RIJNDAEL_BLOCKSIZE); 70 return (1); 71} 72 73static int 74ssh_rijndael_cbc(EVP_CIPHER_CTX *ctx, u_char *dest, const u_char *src, |
75 u_int len) | 75 LIBCRYPTO_EVP_INL_TYPE len) |
76{ 77 struct ssh_rijndael_ctx *c; 78 u_char buf[RIJNDAEL_BLOCKSIZE]; 79 u_char *cprev, *cnow, *plain, *ivp; 80 int i, j, blocks = len / RIJNDAEL_BLOCKSIZE; 81 82 if (len == 0) 83 return (1); --- 81 unchanged lines hidden --- | 76{ 77 struct ssh_rijndael_ctx *c; 78 u_char buf[RIJNDAEL_BLOCKSIZE]; 79 u_char *cprev, *cnow, *plain, *ivp; 80 int i, j, blocks = len / RIJNDAEL_BLOCKSIZE; 81 82 if (len == 0) 83 return (1); --- 81 unchanged lines hidden --- |