| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | Copyright (c) 2011,2012 Intel Corp. |
|---|
| 3 | 4 | |
|---|
| 4 | | - This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - it under the terms of the GNU General Public License version 2 and |
|---|
| 6 | | - only version 2 as published by the Free Software Foundation. |
|---|
| 7 | | - |
|---|
| 8 | | - This program is distributed in the hope that it will be useful, |
|---|
| 9 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - GNU General Public License for more details. |
|---|
| 12 | 5 | */ |
|---|
| 13 | 6 | |
|---|
| 14 | 7 | #include <net/bluetooth/bluetooth.h> |
|---|
| .. | .. |
|---|
| 161 | 154 | } |
|---|
| 162 | 155 | |
|---|
| 163 | 156 | shash->tfm = tfm; |
|---|
| 164 | | - shash->flags = CRYPTO_TFM_REQ_MAY_SLEEP; |
|---|
| 165 | 157 | |
|---|
| 166 | 158 | ret = crypto_shash_digest(shash, plaintext, psize, output); |
|---|
| 167 | 159 | |
|---|