[openssl-users] AES-CMAC digest with EVP

2017-08-30 Thread Daniel Andrade
Hello, I have two buffers, one with a key and one with some data. The objective is to calculate the AES-CMAC of the data with this key. I managed to compute the AES-CMAC using type `EVP_aes_128_cbc()` with the low-level interface: 1. CMAC_CTX *ctx = CMAC_CTX_new() 2. CMAC_Init 3. CMAC_Update

[openssl-users] Fixed-size digest using EVP with algos ECDSA+SHA256

2017-08-07 Thread Daniel Andrade
Hi all, I'm writing functions to create a digest of a data buffer using ECDSA+SHA256. I've been trying to work with only the high-level EVP interface, and not use the low-level interfaces. My understanding is that the resulting digest is an ASN.1 structure. I have to feed this digest to the