-
Several PSA macros do case analysis on an algorithm, key type or similar value to determine a size, a condition or similar result. In some cases, some of the arguments of the macro are not used. To av…
-
We have test cases that are never executed on our CI because they depend on a particular configuration that we don't test. This is a gap in test coverage: if we wrote those tests, it's presumably beca…
-
Im using version 1.5.0 with carthage. sometime signed with sha 256 makes different result with same value
`
let privateKeyRSA = try PrivateKey(base64Encoded: privateKey)
let hmacData = "test".hma…
-
Hello,
When sending data to a remote URL, the app essentially works as a web-hook. It would be nice if some integrity mechanism was added. Simplest being some kind of `hmac('sha-256', secret, paylo…
-
### Description
In order to qualify for proper key derivation, we will have to run KATs for derivation function used by key manager.
This means we need a mode, where we can supply both a key and a l…
-
Not a bug or feature, but a general question as I've been unable to find an answer online. I have a process that obfuscates some internal data (so the resulting data is clean of PII for analytics typ…
-
## HMAC and the Pseudorandom Function
主要的目的是完整性校验和随机数生成
随机数生成的逻辑有点类似CBC, 前一个的输出就是后一个的输入, 通过迭代生成不同长度的随机数
The TLS record layer uses a keyed Message Authentication Code (MAC)
to protect mes…
-
## IV
> Y coodinate's SHA256 hash will be the 256 bit IV for the AES256 block cipher.
1. AES-256 has 128 bit blocks, so the IV is at most 128 bits. Rijndael supports 256 bit blocks, but that's no lo…
-
Hi, WebCrypto usage will generally require the usage of asynchronous APIs. The `oauth.authorize` function does not support promises for the signature hash function.
I've opened a PR over at #107 wh…
-
Hi folks,
I've been looking through [JCAlgTest](https://www.fi.muni.cz/~xsvenda/jcalgtest/table.html) for a suitable card, but I've yet to find anything suitable (Infineon SLE78 Universal JCard app…