| * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. |
| * Licensed under the OpenSSL license (the "License"). You may not use |
| * this file except in compliance with the License. You can obtain a copy |
| * in the file LICENSE in the source distribution or at |
| * https://www.openssl.org/source/license.html |
| #include <openssl/blowfish.h> |
| void BF_set_key(BF_KEY *key, int len, const unsigned char *data) |
| const unsigned char *d, *end; |
| memcpy(key, &bf_init, sizeof(BF_KEY)); |
| if (len > ((BF_ROUNDS + 2) * 4)) |
| len = (BF_ROUNDS + 2) * 4; |
| for (i = 0; i < (BF_ROUNDS + 2); i++) { |
| for (i = 0; i < (BF_ROUNDS + 2); i += 2) { |
| for (i = 0; i < 4 * 256; i += 2) { |