Lines Matching full:out
11 fido_blob_t *out, int encrypt) in aes256_cbc() argument
17 memset(out, 0, sizeof(*out)); in aes256_cbc()
27 out->len = in->len; in aes256_cbc()
28 if ((out->ptr = calloc(1, out->len)) == NULL) { in aes256_cbc()
38 EVP_Cipher(ctx, out->ptr, in->ptr, (u_int)out->len) < 0) { in aes256_cbc()
48 fido_blob_reset(out); in aes256_cbc()
55 fido_blob_t *out, int encrypt) in aes256_cbc_proto1() argument
61 return aes256_cbc(key, iv, in, out, encrypt); in aes256_cbc_proto1()
66 fido_blob_t *out, int encrypt) in aes256_cbc_fips() argument
71 memset(out, 0, sizeof(*out)); in aes256_cbc_fips()
99 (out->ptr = calloc(1, sizeof(iv) + cout.len)) == NULL) { in aes256_cbc_fips()
103 out->len = sizeof(iv) + cout.len; in aes256_cbc_fips()
104 memcpy(out->ptr, iv, sizeof(iv)); in aes256_cbc_fips()
105 memcpy(out->ptr + sizeof(iv), cout.ptr, cout.len); in aes256_cbc_fips()
108 *out = cout; in aes256_cbc_fips()
115 const fido_blob_t *aad, const fido_blob_t *in, fido_blob_t *out, in aes256_gcm() argument
123 memset(out, 0, sizeof(*out)); in aes256_gcm()
135 out->len = encrypt ? in->len + 16 : in->len - 16; in aes256_gcm()
136 if ((out->ptr = calloc(1, out->len)) == NULL) { in aes256_gcm()
163 EVP_Cipher(ctx, out->ptr, in->ptr, (u_int)textlen) < 0 || in aes256_gcm()
171 out->ptr + out->len - 16) == 0) { in aes256_gcm()
182 fido_blob_reset(out); in aes256_gcm()
189 const fido_blob_t *in, fido_blob_t *out) in aes256_cbc_enc() argument
192 in, out, 1) : aes256_cbc_proto1(secret, in, out, 1); in aes256_cbc_enc()
197 const fido_blob_t *in, fido_blob_t *out) in aes256_cbc_dec() argument
200 in, out, 0) : aes256_cbc_proto1(secret, in, out, 0); in aes256_cbc_dec()
205 const fido_blob_t *aad, const fido_blob_t *in, fido_blob_t *out) in aes256_gcm_enc() argument
207 return aes256_gcm(key, nonce, aad, in, out, 1); in aes256_gcm_enc()
212 const fido_blob_t *aad, const fido_blob_t *in, fido_blob_t *out) in aes256_gcm_dec() argument
214 return aes256_gcm(key, nonce, aad, in, out, 0); in aes256_gcm_dec()