Searched refs:raw_key (Results 1 – 2 of 2) sorted by relevance
/crypto/ |
D | rsa.c | 160 struct rsa_key raw_key = {0}; in rsa_set_pub_key() local 166 ret = rsa_parse_pub_key(&raw_key, key, keylen); in rsa_set_pub_key() 170 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_pub_key() 174 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_pub_key() 194 struct rsa_key raw_key = {0}; in rsa_set_priv_key() local 200 ret = rsa_parse_priv_key(&raw_key, key, keylen); in rsa_set_priv_key() 204 mpi_key->d = mpi_read_raw_data(raw_key.d, raw_key.d_sz); in rsa_set_priv_key() 208 mpi_key->e = mpi_read_raw_data(raw_key.e, raw_key.e_sz); in rsa_set_priv_key() 212 mpi_key->n = mpi_read_raw_data(raw_key.n, raw_key.n_sz); in rsa_set_priv_key()
|
D | poly1305_generic.c | 50 void poly1305_core_setkey(struct poly1305_key *key, const u8 *raw_key) in poly1305_core_setkey() argument 53 key->r[0] = (get_unaligned_le32(raw_key + 0) >> 0) & 0x3ffffff; in poly1305_core_setkey() 54 key->r[1] = (get_unaligned_le32(raw_key + 3) >> 2) & 0x3ffff03; in poly1305_core_setkey() 55 key->r[2] = (get_unaligned_le32(raw_key + 6) >> 4) & 0x3ffc0ff; in poly1305_core_setkey() 56 key->r[3] = (get_unaligned_le32(raw_key + 9) >> 6) & 0x3f03fff; in poly1305_core_setkey() 57 key->r[4] = (get_unaligned_le32(raw_key + 12) >> 8) & 0x00fffff; in poly1305_core_setkey()
|