Lines Matching refs:key
69 mbedtls_ssl_ticket_key *key = ctx->keys + index; in ssl_ticket_gen_key() local
72 key->generation_time = (uint32_t) mbedtls_time( NULL ); in ssl_ticket_gen_key()
75 if( ( ret = ctx->f_rng( ctx->p_rng, key->name, sizeof( key->name ) ) ) != 0 ) in ssl_ticket_gen_key()
82 ret = mbedtls_cipher_setkey( &key->ctx, buf, in ssl_ticket_gen_key()
83 mbedtls_cipher_get_key_bitlen( &key->ctx ), in ssl_ticket_gen_key()
294 mbedtls_ssl_ticket_key *key; in mbedtls_ssl_ticket_write() local
320 key = &ctx->keys[ctx->active]; in mbedtls_ssl_ticket_write()
324 memcpy( key_name, key->name, 4 ); in mbedtls_ssl_ticket_write()
341 if( ( ret = mbedtls_cipher_auth_encrypt( &key->ctx, in mbedtls_ssl_ticket_write()
390 mbedtls_ssl_ticket_key *key; in mbedtls_ssl_ticket_parse() local
423 if( ( key = ssl_ticket_select_key( ctx, key_name ) ) == NULL ) in mbedtls_ssl_ticket_parse()
432 if( ( ret = mbedtls_cipher_auth_decrypt( &key->ctx, iv, 12, in mbedtls_ssl_ticket_parse()