MESSAGE FROM YONG WONG!

2013-08-02 Thread YONG
Good Day, I appologize for using this medium of internet to reach you, though it has been greatly abused, but I chose to reach you because it is still the fastest means of communication in the world, however this correspondent is unofficial and private. My name is Yong Wong, I work with the hang

[PATCH] drivers/crypto/nx: saves chaining value from co-processor

2013-08-02 Thread Fionnuala Gunter
The chaining value from co-processor was not being saved. This value is needed because it is used as the IV, for example by cts(cbc(aes)). Signed-off-by: Fionnuala Gunter Signed-off-by: Marcelo Cerri --- drivers/crypto/nx/nx-aes-cbc.c |1 + 1 file changed, 1 insertion(+) diff --git a/drive

[PATCH v2 1/2] drivers/crypto/nx: fix physical addresses added to sg lists

2013-08-02 Thread Marcelo Cerri
The co-processor receives data to be hashed through scatter/gather lists pointing to physical addresses. When a vmalloc'ed data is given, the driver must calculate the physical address to each page of the data. However the current version of it just calculates the physical address once and keeps i

[PATCH v2 2/2] drivers/crypto/nx: fix limits to sg lists for SHA-2

2013-08-02 Thread Marcelo Cerri
The co-processor has several limits regarding the length of scatter/gather lists and the total number of bytes in it. These limits are available in the device tree, as following: - "ibm,max-sg-len": maximum number of bytes of each scatter/gather list. - "ibm,max-sync-cop": used for synchrono

[PATCH v2 0/2] drivers/crypto/nx: fixes when input data is too large

2013-08-02 Thread Marcelo Cerri
This series of patches fixes two bugs that are triggered when the input data is too large. The first one is caused by the miscalculation of physical addresses and the second one by some limits that the co-processor has to the input data. Changes in v2: * Replace Signed-Off-By tags with Rev