Commit 2d73e1b
committed
crypto: atmel-sha: Add zero length message digest support for hmac
Add softare padding to hmac-sha digest for zero length messages.
Using the atmel_sha_fill_padding() to fill the buffer with a padded
empty message with a length of the block size.
Create a temporary scatter list from the padded buffer to pass into the
data processing functions.
Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>1 parent 2cb8e62 commit 2d73e1b
1 file changed
Lines changed: 30 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1948 | 1948 | | |
1949 | 1949 | | |
1950 | 1950 | | |
| 1951 | + | |
1951 | 1952 | | |
1952 | 1953 | | |
1953 | 1954 | | |
1954 | 1955 | | |
1955 | 1956 | | |
1956 | 1957 | | |
1957 | | - | |
1958 | | - | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
1959 | 1977 | | |
1960 | 1978 | | |
1961 | 1979 | | |
| |||
1985 | 2003 | | |
1986 | 2004 | | |
1987 | 2005 | | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
1988 | 2014 | | |
1989 | 2015 | | |
1990 | | - | |
| 2016 | + | |
1991 | 2017 | | |
1992 | 2018 | | |
1993 | | - | |
| 2019 | + | |
1994 | 2020 | | |
1995 | 2021 | | |
1996 | 2022 | | |
| |||
0 commit comments