Lines Matching refs:reply_len
103 size_t reply_len; in rsa_private_transform() local
104 int32_t ret = g_keystore_backend->sign(key_id, in, len, &reply, &reply_len); in rsa_private_transform()
111 } else if (reply_len == 0 || reply == nullptr) { in rsa_private_transform()
116 if (reply_len > len) { in rsa_private_transform()
121 ALOGW("Reply len %zu greater than expected %zu", reply_len, len); in rsa_private_transform()
122 memcpy(out, &reply[reply_len - len], len); in rsa_private_transform()
123 } else if (reply_len < len) { in rsa_private_transform()
128 ALOGW("Reply len %zu lesser than expected %zu", reply_len, len); in rsa_private_transform()
130 memcpy(out + len - reply_len, &reply[0], reply_len); in rsa_private_transform()
159 size_t reply_len; in ecdsa_sign() local
161 key_id, digest, digest_len, &reply, &reply_len); in ecdsa_sign()
165 } else if (reply_len == 0 || reply == nullptr) { in ecdsa_sign()
168 } else if (reply_len > ecdsa_size) { in ecdsa_sign()
174 memcpy(sig, &reply[0], reply_len); in ecdsa_sign()
175 *sig_len = reply_len; in ecdsa_sign()